r15627 - gnucash/trunk/src - Save/restore SLR window pos/size.

Josh Sled jsled at cvs.gnucash.org
Mon Feb 19 14:24:23 EST 2007


Author: jsled
Date: 2007-02-19 14:24:23 -0500 (Mon, 19 Feb 2007)
New Revision: 15627
Trac: http://svn.gnucash.org/trac/changeset/15627

Modified:
   gnucash/trunk/src/doc/sx.rst
   gnucash/trunk/src/gnome/dialog-sx-since-last-run.c
Log:
Save/restore SLR window pos/size.

Modified: gnucash/trunk/src/doc/sx.rst
===================================================================
--- gnucash/trunk/src/doc/sx.rst	2007-02-19 19:08:23 UTC (rev 15626)
+++ gnucash/trunk/src/doc/sx.rst	2007-02-19 19:24:23 UTC (rev 15627)
@@ -143,9 +143,9 @@
     - [ ] src/gnome/druid-acct-period.c
 
 - since-last-run
-! - [ ] save/restore dialog window size
   - [ ] "reminder" instances show number of days until due
   - [ ] "Find unfinished" button; count; sensitize Ok as function of unfinished.
+! - [x] save/restore dialog window size
   - [x] remove split pane
   - [x] "auto" scrollbars
 ! - [x] rewrite adapter (re-)population logic

Modified: gnucash/trunk/src/gnome/dialog-sx-since-last-run.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-sx-since-last-run.c	2007-02-19 19:08:23 UTC (rev 15626)
+++ gnucash/trunk/src/gnome/dialog-sx-since-last-run.c	2007-02-19 19:24:23 UTC (rev 15627)
@@ -990,6 +990,8 @@
     }
 
     g_signal_connect(G_OBJECT(dialog->dialog), "response", G_CALLBACK(dialog_response_cb), dialog);
+
+    gnc_restore_window_size(GCONF_SECTION, GTK_WINDOW(dialog->dialog));
      
     gtk_widget_show_all(dialog->dialog);
 
@@ -1080,6 +1082,7 @@
     /* FALLTHROUGH */
     case GTK_RESPONSE_CANCEL: 
     case GTK_RESPONSE_DELETE_EVENT:
+        gnc_save_window_size(GCONF_SECTION, GTK_WINDOW(app_dialog->dialog));
         gtk_widget_destroy(GTK_WIDGET(dialog));
         g_object_unref(G_OBJECT(app_dialog->editing_model));
         app_dialog->editing_model = NULL;



More information about the gnucash-changes mailing list