This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[RFA] variable window menu fix


If you open a variable window, the pulldown menu entry "Format" is enabled.  
You can then set the format although you haven't selected anything.  This 
causes an error dialog, of course.  The patch disables the pulldown menu until
something is selected.

2001-07-21  Martin M. Hunt  <hunt@redhat.com>

	* library/variables.tcl (build_menu_helper): Set
	the Format menu option to "disabled" initially.

Index: variables.tcl
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/variables.tcl,v
retrieving revision 1.12
diff -u -p -r1.12 variables.tcl
--- variables.tcl	2001/06/04 15:49:53	1.12
+++ variables.tcl	2001/07/21 07:19:56
@@ -203,7 +203,7 @@ class VariableWin {
 		    %s editEntry [%s getSelection]
 		} $this $this]
 	}
-	[namespace tail $this].mmenu.var add cascade -label Format -underline 0 \
+	[namespace tail $this].mmenu.var add cascade -label Format -underline 0 
-state disabled \
 	    -menu [namespace tail $this].mmenu.var.format
 
 	menu [namespace tail $this].mmenu.var.format
ÿÿÿ


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]