r19377 - gnucash/trunk/src/gnome - Bug 612337: Add file save to hierarchy druid when the new file druid completes.

Christian Stimming cstim at code.gnucash.org
Tue Jul 20 16:37:39 EDT 2010


Author: cstim
Date: 2010-07-20 16:37:39 -0400 (Tue, 20 Jul 2010)
New Revision: 19377
Trac: http://svn.gnucash.org/trac/changeset/19377

Modified:
   gnucash/trunk/src/gnome/druid-hierarchy.c
   gnucash/trunk/src/gnome/glade/account.glade
Log:
Bug 612337: Add file save to hierarchy druid when the new file druid completes.

Patch by "Bob": I thought I would give this a try and come up with a patch to use the file save
as function after the after pressing the apply button. Not sure if it is the
best way but seems to work on my linux box and on windows without any errors.

I have changed the text in the account.glade file to reflect the firing of the
save as and also increased the size of the window to give more room for the
'Category Description' to stop scroll bars.

Modified: gnucash/trunk/src/gnome/druid-hierarchy.c
===================================================================
--- gnucash/trunk/src/gnome/druid-hierarchy.c	2010-07-18 14:29:50 UTC (rev 19376)
+++ gnucash/trunk/src/gnome/druid-hierarchy.c	2010-07-20 20:37:39 UTC (rev 19377)
@@ -33,6 +33,7 @@
 #include "gnc-account-merge.h"
 #include "dialog-new-user.h"
 #include "dialog-utils.h"
+#include "dialog-file-access.h"
 #include "druid-hierarchy.h"
 #include "druid-utils.h"
 #include "gnc-amount-edit.h"
@@ -1037,6 +1038,7 @@
         (*when_completed)();
     }
 
+    gnc_ui_file_access_for_save_as();
     LEAVE (" ");
 }
 

Modified: gnucash/trunk/src/gnome/glade/account.glade
===================================================================
--- gnucash/trunk/src/gnome/glade/account.glade	2010-07-18 14:29:50 UTC (rev 19376)
+++ gnucash/trunk/src/gnome/glade/account.glade	2010-07-20 20:37:39 UTC (rev 19377)
@@ -825,7 +825,7 @@
     <property name="title" translatable="yes">New Account Hierarchy Setup</property>
     <property name="window_position">center-on-parent</property>
     <property name="default_width">640</property>
-    <property name="default_height">500</property>
+    <property name="default_height">550</property>
     <property name="type_hint">dialog</property>
     <child>
       <widget class="GnomeDruid" id="hierarchy_druid">
@@ -1216,7 +1216,7 @@
             <property name="visible">True</property>
             <property name="position">GNOME_EDGE_FINISH</property>
             <property name="title" translatable="yes">Finish Account Setup</property>
-            <property name="text" translatable="yes">Press `Apply' to create your new accounts.
+            <property name="text" translatable="yes">Press `Apply' to create your new accounts.  You will then be able to save them to a file or database.
 
 Press `Back' to review your selections.
 



More information about the gnucash-changes mailing list