r16094 - gnucash/trunk/src/gnome-utils - Update the main window titles and the window list on HOOK_BOOK_OPENED.

Andreas Köhler andi5 at cvs.gnucash.org
Fri May 18 10:54:17 EDT 2007


Author: andi5
Date: 2007-05-18 10:54:14 -0400 (Fri, 18 May 2007)
New Revision: 16094
Trac: http://svn.gnucash.org/trac/changeset/16094

Modified:
   gnucash/trunk/src/gnome-utils/gnc-main-window.c
Log:
Update the main window titles and the window list on HOOK_BOOK_OPENED.


Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c	2007-05-18 14:54:08 UTC (rev 16093)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c	2007-05-18 14:54:14 UTC (rev 16094)
@@ -108,6 +108,7 @@
 
 static void gnc_main_window_setup_window (GncMainWindow *window);
 static void gnc_window_main_window_init (GncWindowIface *iface);
+static void gnc_main_window_update_all_menu_items (void);
 
 /* Callbacks */
 static void gnc_main_window_add_widget (GtkUIManager *merge, GtkWidget *widget, GncMainWindow *window);
@@ -1287,6 +1288,8 @@
 
   book = qof_session_get_book(session);
   qof_book_set_dirty_cb(book, gnc_main_window_book_dirty_cb, NULL);
+  gnc_main_window_update_all_titles();
+  gnc_main_window_update_all_menu_items();
 }
 
 



More information about the gnucash-changes mailing list