[Monodevelop-patches-list] r2706 - in trunk/MonoDevelop/Extras/NUnit: . Gui

Lluis Sanchez <lluis@ximian.com> lluis at mono-cvs.ximian.com
Wed Aug 3 05:45:09 EDT 2005


Author: lluis
Date: 2005-08-03 05:45:09 -0400 (Wed, 03 Aug 2005)
New Revision: 2706

Modified:
   trunk/MonoDevelop/Extras/NUnit/ChangeLog
   trunk/MonoDevelop/Extras/NUnit/Gui/TestPad.cs
   trunk/MonoDevelop/Extras/NUnit/Gui/TestResultsPad.cs
Log:
2005-08-03  Lluis Sanchez Gual  <lluis at novell.com>

	* Gui/TestPad.cs:
	* Gui/TestResultsPad.cs: Use the new command service to show
	context menus.



Modified: trunk/MonoDevelop/Extras/NUnit/ChangeLog
===================================================================
--- trunk/MonoDevelop/Extras/NUnit/ChangeLog	2005-08-03 09:43:55 UTC (rev 2705)
+++ trunk/MonoDevelop/Extras/NUnit/ChangeLog	2005-08-03 09:45:09 UTC (rev 2706)
@@ -1,3 +1,9 @@
+2005-08-03  Lluis Sanchez Gual  <lluis at novell.com>
+
+	* Gui/TestPad.cs:
+	* Gui/TestResultsPad.cs: Use the new command service to show
+	context menus.
+
 2005-07-27  Lluis Sanchez Gual  <lluis at novell.com> 
 
 	* Project/NUnitAssemblyGroupProject.cs: Track api changes.

Modified: trunk/MonoDevelop/Extras/NUnit/Gui/TestPad.cs
===================================================================
--- trunk/MonoDevelop/Extras/NUnit/Gui/TestPad.cs	2005-08-03 09:43:55 UTC (rev 2705)
+++ trunk/MonoDevelop/Extras/NUnit/Gui/TestPad.cs	2005-08-03 09:45:09 UTC (rev 2706)
@@ -609,9 +609,7 @@
 		void OnChartPopupMenu (object o, Gtk.ButtonReleaseEventArgs args)
 		{
 			if (args.Event.Button == 3) {
-				CommandEntrySet eset = Runtime.Gui.CommandService.CreateCommandEntrySet ("/SharpDevelop/Views/TestChart/ContextMenu");
-				Gtk.Menu menu = Runtime.Gui.CommandService.CreateMenu (eset);
-				Runtime.Gui.Menus.ShowContextMenu (menu);
+				Runtime.Gui.CommandService.ShowContextMenu ("/SharpDevelop/Views/TestChart/ContextMenu");
 			}
 		}
 		

Modified: trunk/MonoDevelop/Extras/NUnit/Gui/TestResultsPad.cs
===================================================================
--- trunk/MonoDevelop/Extras/NUnit/Gui/TestResultsPad.cs	2005-08-03 09:43:55 UTC (rev 2705)
+++ trunk/MonoDevelop/Extras/NUnit/Gui/TestResultsPad.cs	2005-08-03 09:45:09 UTC (rev 2706)
@@ -357,9 +357,7 @@
 		void OnPopupMenu (object o, Gtk.ButtonReleaseEventArgs args)
 		{
 			if (args.Event.Button == 3) {
-				CommandEntrySet eset = Runtime.Gui.CommandService.CreateCommandEntrySet ("/SharpDevelop/Views/TestResultsPad/ContextMenu");
-				Gtk.Menu menu = Runtime.Gui.CommandService.CreateMenu (eset);
-				Runtime.Gui.Menus.ShowContextMenu (menu);
+				Runtime.Gui.CommandService.ShowContextMenu ("/SharpDevelop/Views/TestChart/ContextMenu");
 			}
 		}
 		




More information about the Monodevelop-patches-list mailing list