nemiver r745 - in trunk: . src/persp/dbgperspective



Author: jjongsma
Date: Sun Feb 10 16:38:20 2008
New Revision: 745
URL: http://svn.gnome.org/viewvc/nemiver?rev=745&view=rev

Log:
Disable 'Global Variables' menu item when not debugging anything

	* src/persp/dbgperspective/nmv-dbg-perspective.cc: Move the 'Show Global
	Variables' action into the 'Debugger ready' action group so that it is
	disabled when there is no program being debugged (Bug #515541)


Modified:
   trunk/ChangeLog
   trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc

Modified: trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc
==============================================================================
--- trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc	(original)
+++ trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc	Sun Feb 10 16:38:20 2008
@@ -2553,7 +2553,15 @@
             ActionEntry::DEFAULT,
             "F12"
         },
-
+        {
+            "ActivateGlobalVariablesDialogMenuAction",
+            nil_stock_id,
+            _("Show Global Variables"),
+            _("Display all global variables"),
+            sigc::mem_fun(*this, &DBGPerspective::on_activate_global_variables),
+            ActionEntry::DEFAULT,
+            "<control>G"
+        },
         {
             "RefreshLocalVariablesMenuItemAction",
             nil_stock_id,
@@ -2644,15 +2652,6 @@
         },
 #endif // WITH_MEMORYVIEW
         {
-            "ActivateGlobalVariablesDialogMenuAction",
-            nil_stock_id,
-            _("Show Global Variables"),
-            _("Display all global variables"),
-            sigc::mem_fun(*this, &DBGPerspective::on_activate_global_variables),
-            ActionEntry::DEFAULT,
-            "<control>G"
-        },
-        {
             "ShowCommandsMenuAction",
             nil_stock_id,
             _("Show Commands"),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]