[Gnucash-changes] r13650 - gnucash/trunk - Make register ui update unconditionally if in a GncEmbeddedWindow.

Andreas Koehler andi5 at cvs.gnucash.org
Thu Mar 16 17:03:59 EST 2006


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

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/gnome/gnc-plugin-page-register.c
Log:
Make register ui update unconditionally if in a GncEmbeddedWindow.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-03-16 20:26:53 UTC (rev 13649)
+++ gnucash/trunk/ChangeLog	2006-03-16 22:03:58 UTC (rev 13650)
@@ -1,3 +1,8 @@
+2006-03-16  Andreas Köhler  <andi5.py at gmx.net>
+
+	* src/gnome/gnc-plugin-page-register.c: Make register ui update
+	  unconditionally if in a GncEmbeddedWindow.
+
 2006-03-16  David Hampton  <hampton at employees.org>
 
 	* src/gnome-utils/gnc-tree-view-commodity.c:

Modified: gnucash/trunk/src/gnome/gnc-plugin-page-register.c
===================================================================
--- gnucash/trunk/src/gnome/gnc-plugin-page-register.c	2006-03-16 20:26:53 UTC (rev 13649)
+++ gnucash/trunk/src/gnome/gnc-plugin-page-register.c	2006-03-16 22:03:58 UTC (rev 13650)
@@ -2910,10 +2910,12 @@
   }
 
   window = gnc_plugin_page_get_window(GNC_PLUGIN_PAGE(page));
-  visible_page = gnc_main_window_get_current_page(GNC_MAIN_WINDOW(window));
-  if (GNC_PLUGIN_PAGE(page) != visible_page) {
-    LEAVE("page not visible");
-    return;
+  if (GNC_IS_MAIN_WINDOW(window)) {
+    visible_page = gnc_main_window_get_current_page(GNC_MAIN_WINDOW(window));
+    if (visible_page != GNC_PLUGIN_PAGE(page)) {
+      LEAVE("page not visible");
+      return;
+    }
   }
 
   gnc_plugin_page_register_ui_update(NULL, page);



More information about the gnucash-changes mailing list