* RFC/RFA: Save Preferences (on Registers window)?
@ 2000-06-08 12:47 Fernando Nasser
0 siblings, 0 replies; only message in thread
From: Fernando Nasser @ 2000-06-08 12:47 UTC (permalink / raw)
To: insight
If for some reason your Registers windows do not get closed properly,
all your settings are lost.
Yes, I know, it should never happen... But lets be pragmatic, it does
happen sometimes. And I hate when I have to get everything the way I like
again.
There is a trick, which is close and reopen the register window, that I do
often, so often that I would like to have a menu entry "Save Preferences"
in the Register menu.
Here is the patch.
--
Fernando Nasser
Cygnus Solutions (a Red Hat company) E-Mail: fnasser@cygnus.com
2323 Yonge Street, Suite #300 Tel: 416-482-2661 ext. 311
Toronto, Ontario M4P 2C9 Fax: 416-482-6299
Index: regwin.itb
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/gdbtk/library/regwin.itb,v
retrieving revision 1.3.8.1
diff -c -p -r1.3.8.1 regwin.itb
*** regwin.itb 2000/06/08 19:18:14 1.3.8.1
--- regwin.itb 2000/06/08 19:21:29
*************** body RegWin::build_win {} {
*** 192,197 ****
--- 192,199 ----
$m add command -label "Display All Registers" -underline 0 -state disabled \
-command "$this display_all"
set disp_all_menu_item [$m index last]
+ $m add command -label "Save Preferences" -underline 0 -state normal \
+ -command "RegWin::save_reg_display_vars"
if {!$all_regs_shown} {
$m entryconfigure $disp_all_menu_item -state normal
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-06-08 12:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-08 12:47 RFC/RFA: Save Preferences (on Registers window)? Fernando Nasser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).