This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[RFA] variable window menu fix
- To: insight at sources dot redhat dot com
- Subject: [RFA] variable window menu fix
- From: "Martin M. Hunt" <hunt at redhat dot com>
- Date: Sat, 21 Jul 2001 00:21:44 -0700
- Organization: Red Hat Inc
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
ÿÿÿ