[PATCH] Fix annoying startup srcbar bug
Keith Seitz
keiths@cygnus.com
Mon Jun 4 10:19:00 GMT 2001
Hi,
When Insight is started, the srcbar has all the target control buttons
and menus enabled. Obviously, this is wrong.
The following patch fixes that problem and disables the buttons/menus. I
have verified that this does not interfere with attaching to a process
from the command-line.
Keith
ChangeLog:
2001-06-04 Keith Seitz <keiths@redhat.com>
* library/srcbar.itcl (constructor): Set the toolbar's initial
state.
Patch:
Index: library/srcbar.itcl
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/srcbar.itcl,v
retrieving revision 1.9
diff -u -p -r1.9 srcbar.itcl
--- srcbar.itcl 2001/05/31 20:32:58 1.9
+++ srcbar.itcl 2001/06/04 17:15:19
@@ -64,6 +64,9 @@ class SrcBar {
# Pack the toolbar
pack $Tool -expand 1 -fill both
+ # Set the srcbar's initial state
+ enable_ui 2
+
eval itk_initialize $args
add_hook gdb_no_inferior_hook "$this enable_ui 2"
add_hook gdb_trace_find_hook "$this handle_trace_find_hook"
More information about the Insight
mailing list