From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fernando Nasser To: insight@sourceware.cygnus.com Subject: RFC/RFA: Save Preferences (on Registers window)? Date: Thu, 08 Jun 2000 12:47:00 -0000 Message-id: <393FF807.6487DA70@cygnus.com> X-SW-Source: 2000-q2/msg00241.html 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