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-03 16:07:44 +0400
committerMichael Hutchinson <m.j.hutchinson@gmail.com>2011-11-03 16:07:44 +0400
commit8d66f84a35d7154ca10861d25768a812af4adb9b (patch)
tree1e2477ecf67a4dc4576a94e7aa8763aad79b5f6a /main/src/addins/VersionControl
parentbd1555cf2f4921c8368578e1bb4297d06e65dcf7 (diff)
Port DropDownBox to context menu API
Diffstat (limited to 'main/src/addins/VersionControl')
-rw-r--r--main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/DropDownBox.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/DropDownBox.cs b/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/DropDownBox.cs
index 82f4d4f98c..d6c6b7d84e 100644
--- a/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/DropDownBox.cs
+++ b/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/DropDownBox.cs
@@ -31,6 +31,7 @@ using Gtk;
namespace MonoDevelop.VersionControl.Views
{
+ //FIXME: re-merge this with MonoDevelop.Components.DropDownBox
[Category ("Widgets")]
[ToolboxItem (true)]
public class DropDownBox : Gtk.Button
@@ -193,8 +194,7 @@ namespace MonoDevelop.VersionControl.Views
protected override bool OnButtonPressEvent (Gdk.EventButton e)
{
- if (e.Button == 3) {
-// StatusBox.ShowNavigationBarContextMenu ();
+ if (Mono.TextEditor.GtkWorkarounds.ButtonEventTriggersContextMenu (e)) {
return base.OnButtonPressEvent (e);
}
if (e.Type == Gdk.EventType.ButtonPress) {