[Gnucash-changes] r13574 - gnucash/trunk - Move retrieval of private data of main window after the creation of the window.

Andreas Köhler andi5 at cvs.gnucash.org
Thu Mar 9 17:58:36 EST 2006


Author: andi5
Date: 2006-03-09 17:58:36 -0500 (Thu, 09 Mar 2006)
New Revision: 13574
Trac: http://svn.gnucash.org/trac/changeset/13574

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/gnome-utils/gnc-main-window.c
Log:
Move retrieval of private data of main window after the creation of the window.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-03-09 21:57:42 UTC (rev 13573)
+++ gnucash/trunk/ChangeLog	2006-03-09 22:58:36 UTC (rev 13574)
@@ -1,3 +1,8 @@
+2006-03-09  Andreas Köhler  <andi5.py at gmx.net>
+
+	* src/gnome-utils/gnc-main-window.c: Move retrieval of private
+	  data of main window after the creation of the window.
+
 2006-03-09  David Hampton  <hampton at employees.org>
 
 	* src/gnome-utils/gnc-tree-model-commodity.c:

Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c	2006-03-09 21:57:42 UTC (rev 13573)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c	2006-03-09 22:58:36 UTC (rev 13574)
@@ -513,7 +513,6 @@
   /* Setup */
   ENTER("window %p, data %p (key file %p, window %d)",
 	window, data, data->key_file, data->window_num);
-  priv = GNC_MAIN_WINDOW_GET_PRIVATE(window);
   window_group = g_strdup_printf(WINDOW_STRING, data->window_num + 1);
 
   /* Get this window's notebook info */
@@ -546,6 +545,8 @@
     window = gnc_main_window_new();
   }
 
+  priv = GNC_MAIN_WINDOW_GET_PRIVATE(window);
+
   /* Get the window coordinates, etc. */
   pos = g_key_file_get_integer_list(data->key_file, window_group,
 				    WINDOW_POSITION, &length, &error);



More information about the gnucash-changes mailing list