diff options
author | Keith Seitz <keiths@redhat.com> | 2001-05-22 18:24:18 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2001-05-22 18:24:18 +0000 |
commit | 414d070d09cd2e0c33a1b7b927061437b446059e (patch) | |
tree | 20dc3c49672a9cf070705d225a589b0a58f9514a /gdb/gdbtk/library/srcbar.itcl | |
parent | b1f6cb770dda88419e5c808d167cbfb75a9c5d15 (diff) | |
download | gdb-414d070d09cd2e0c33a1b7b927061437b446059e.tar.gz |
* library/interface.tcl (gdbtk_tcl_file_changed): Handle
the case of empty-string files, sent by gdb when the
user requests to reset the file.
(_close_file): New proc to deal with closing an exe.
* library/srcbar.itcl (create_file_menu): Add "Close" menu
option.
(create_view_menu): Change key binding for Watch Window to
Ctrl+T to accomodate "Close" going to Ctrl+W.
* library/srctextwin.itb (config_win): Update key binding
for Watch Window.
Add key binding for Close.
(do_key): Add "close".
(_clear_cache): Finally implement. I think this works now.
Diffstat (limited to 'gdb/gdbtk/library/srcbar.itcl')
-rw-r--r-- | gdb/gdbtk/library/srcbar.itcl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/gdbtk/library/srcbar.itcl b/gdb/gdbtk/library/srcbar.itcl index 880a31ba6c5..337ef142318 100644 --- a/gdb/gdbtk/library/srcbar.itcl +++ b/gdb/gdbtk/library/srcbar.itcl @@ -139,6 +139,9 @@ class SrcBar { $Menu add command Other "Open..." \ "_open_file" -underline 0 -accelerator "Ctrl+O" + $Menu add command Other "Close" \ + "_close_file" -underline 0 -accelerator "Ctrl+W" + $Menu add command Other "Source..." \ "source_file" -underline 0 @@ -266,7 +269,7 @@ class SrcBar { $Menu add command Other "Watch Expressions" \ {ManagedWin::open WatchWin} \ - -underline 0 -accelerator "Ctrl+W" + -underline 0 -accelerator "Ctrl+T" $Menu add command Other "Local Variables" \ {ManagedWin::open LocalsWin} \ -underline 0 -accelerator "Ctrl+L" |