diff options
author | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2011-11-04 05:01:00 +0400 |
---|---|---|
committer | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2011-11-04 05:03:35 +0400 |
commit | 1a6613183e73b4ec7ae716b2f7d766c8de97ec22 (patch) | |
tree | e1764e3c75554710b4fd0718d8438a91b9cf9331 /main/src/addins/NUnit | |
parent | 605c166247e79889fea9c24933bf1ee4df0e663e (diff) |
Make context menu trigger API more concise
Diffstat (limited to 'main/src/addins/NUnit')
-rw-r--r-- | main/src/addins/NUnit/Gui/TestPad.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/addins/NUnit/Gui/TestPad.cs b/main/src/addins/NUnit/Gui/TestPad.cs index 63c1a7ece9..5642b7d20a 100644 --- a/main/src/addins/NUnit/Gui/TestPad.cs +++ b/main/src/addins/NUnit/Gui/TestPad.cs @@ -41,6 +41,7 @@ using MonoDevelop.Ide.Execution; using MonoDevelop.Components.Docking; using MonoDevelop.Ide; using MonoDevelop.Projects; +using Mono.TextEditor; namespace MonoDevelop.NUnit { @@ -714,7 +715,7 @@ namespace MonoDevelop.NUnit void OnChartButtonPress (object o, Gtk.ButtonPressEventArgs args) { - if (Mono.TextEditor.GtkWorkarounds.ButtonEventTriggersContextMenu (args.Event)) { + if (args.Event.TriggersContextMenu ()) { IdeApp.CommandService.ShowContextMenu ("/MonoDevelop/NUnit/ContextMenu/TestChart"); args.RetVal = true; } |