r15174 - gnucash/branches/2.0 - Save window size and position of the transfer dialog.

Derek Atkins warlord at cvs.gnucash.org
Sat Dec 2 21:02:44 EST 2006


Author: warlord
Date: 2006-12-02 21:02:43 -0500 (Sat, 02 Dec 2006)
New Revision: 15174
Trac: http://svn.gnucash.org/trac/changeset/15174

Modified:
   gnucash/branches/2.0/
   gnucash/branches/2.0/ChangeLog
   gnucash/branches/2.0/src/gnome-utils/dialog-transfer.c
Log:
	Save window size and position of the transfer dialog.

Merge from r15166



Property changes on: gnucash/branches/2.0
___________________________________________________________________
Name: svk:merge
   - 3889ce50-311e-0410-a464-f059747ec5d1:/local/gnucash/branches/2.0:697
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/branches/2.0:13658
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk:13282
   + 3889ce50-311e-0410-a464-f059747ec5d1:/local/gnucash/branches/2.0:697
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/branches/2.0:13659
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk:13282

Modified: gnucash/branches/2.0/ChangeLog
===================================================================
--- gnucash/branches/2.0/ChangeLog	2006-12-03 02:02:28 UTC (rev 15173)
+++ gnucash/branches/2.0/ChangeLog	2006-12-03 02:02:43 UTC (rev 15174)
@@ -1,3 +1,7 @@
+2006-12-01  Andreas Köhler  <andi5.py at gmx.net>
+
+	Save window size and position of the transfer dialog.
+
 2006-11-29  Andreas Köhler  <andi5.py at gmx.net>
 
 	When progress bar is showing, do not make menus and toolbars

Modified: gnucash/branches/2.0/src/gnome-utils/dialog-transfer.c
===================================================================
--- gnucash/branches/2.0/src/gnome-utils/dialog-transfer.c	2006-12-03 02:02:28 UTC (rev 15173)
+++ gnucash/branches/2.0/src/gnome-utils/dialog-transfer.c	2006-12-03 02:02:43 UTC (rev 15174)
@@ -47,6 +47,7 @@
 
 
 #define DIALOG_TRANSFER_CM_CLASS "dialog-transfer"
+#define GCONF_SECTION "dialogs/transfer"
 
 #define PRECISION 1000000
 
@@ -1648,6 +1649,7 @@
 
   dialog = glade_xml_get_widget (xml, "Transfer Dialog");
   xferData->dialog = dialog;
+  g_object_set_data_full (G_OBJECT (dialog), "xml", xml, g_object_unref);
 
   /* parent */
   if (parent != NULL)
@@ -1824,6 +1826,7 @@
 			 _("To Amount:"));
     }
   }
+  gnc_restore_window_size (GCONF_SECTION, GTK_WINDOW (dialog));
   LEAVE(" ");
 }
 
@@ -1836,6 +1839,7 @@
   ENTER(" ");
   dialog = GTK_WIDGET (xferData->dialog);
 
+  gnc_save_window_size (GCONF_SECTION, GTK_WINDOW (dialog));
   gtk_widget_hide (dialog);
   gnc_xfer_dialog_close_cb(GTK_DIALOG(dialog), xferData);
   gtk_widget_destroy (dialog);



More information about the gnucash-changes mailing list