Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hutchinson <m.j.hutchinson@gmail.com>2011-11-22 00:33:03 +0400
committerMichael Hutchinson <m.j.hutchinson@gmail.com>2011-11-22 01:49:45 +0400
commitefa4c623618abca9ee9020e2af4f010c572d4ec8 (patch)
tree2860e281949bc43d415469385dc82ffd9597b69d /main/src/core/MonoDevelop.Ide/MonoDevelop.Components
parentd72f7439d62ff58b65ccf35d63d44fd30f78d50d (diff)
[Gtk] Better workaround for Mac context menu issues
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components/ContextMenuTreeView.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/ContextMenuTreeView.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/ContextMenuTreeView.cs
index 83c8aadb07..77e3f03e1f 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/ContextMenuTreeView.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/ContextMenuTreeView.cs
@@ -56,9 +56,8 @@ namespace MonoDevelop.Components
if (!res)
res = base.OnButtonPressEvent (evnt);
- //HACK: show context menu in release event instead of show event to work around gtk bug
if (DoPopupMenu != null && evnt.TriggersContextMenu ()) {
- // DoPopupMenu (evnt);
+ DoPopupMenu (evnt);
return true;
}
@@ -69,9 +68,7 @@ namespace MonoDevelop.Components
{
bool res = base.OnButtonReleaseEvent (evnt);
- //HACK: show context menu in release event instead of show event to work around gtk bug
if (DoPopupMenu != null && evnt.IsContextMenuButton ()) {
- DoPopupMenu (evnt);
return true;
}