r20691 - gnucash/trunk/src/gnome-utils - Disable updates of (no longer extant) window menu items when using MAC_INTEGRATION
John Ralls
jralls at code.gnucash.org
Thu May 26 19:13:54 EDT 2011
Author: jralls
Date: 2011-05-26 19:13:53 -0400 (Thu, 26 May 2011)
New Revision: 20691
Trac: http://svn.gnucash.org/trac/changeset/20691
Modified:
gnucash/trunk/src/gnome-utils/gnc-main-window.c
Log:
Disable updates of (no longer extant) window menu items when using MAC_INTEGRATION
Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c 2011-05-26 23:13:45 UTC (rev 20690)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c 2011-05-26 23:13:53 UTC (rev 20691)
@@ -2306,10 +2306,10 @@
if (gnc_window_get_progressbar_window() == GNC_WINDOW(window))
gnc_window_set_progressbar_window(NULL);
-
+#ifndef MAC_INTEGRATION
/* Update the "Windows" menu in all other windows */
gnc_main_window_update_all_menu_items();
-
+#endif
gnc_gconf_remove_notification(G_OBJECT(window), DESKTOP_GNOME_INTERFACE,
GNC_MAIN_WINDOW_NAME);
gnc_gconf_remove_notification(G_OBJECT(window), GCONF_GENERAL,
@@ -2356,8 +2356,9 @@
}
active_windows = g_list_append (active_windows, window);
gnc_main_window_update_title(window);
+#ifndef MAC_INTEGRATION
gnc_main_window_update_all_menu_items();
-
+#endif
gnc_engine_add_commit_error_callback( gnc_main_window_engine_commit_error_callback, window );
return window;
@@ -3587,8 +3588,9 @@
g_list_length(priv->installed_pages) > 1);
gnc_main_window_update_title(window);
+#ifndef MAC_INTEGRATION
gnc_main_window_update_menu_item(window);
-
+#endif
g_signal_emit (window, main_window_signals[PAGE_CHANGED], 0, page);
LEAVE(" ");
}
@@ -3946,10 +3948,11 @@
value = gtk_radio_action_get_current_value(current);
new_window = g_list_nth_data(active_windows, value);
gtk_window_present(GTK_WINDOW(new_window));
-
+#ifndef MAC_INTEGRATION
/* revert the change in the radio group
* impossible while handling "changed" (G_SIGNAL_NO_RECURSE) */
g_idle_add((GSourceFunc)gnc_main_window_update_radio_button, old_window);
+#endif
LEAVE(" ");
}
More information about the gnucash-changes
mailing list