This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[PATCH] Fix annoying startup srcbar bug
- To: Insight Maling List <insight at sources dot redhat dot com>
- Subject: [PATCH] Fix annoying startup srcbar bug
- From: Keith Seitz <keiths at cygnus dot com>
- Date: Mon, 4 Jun 2001 10:17:56 -0700 (PDT)
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"