r20702 - gnucash/branches/2.4/src/gnome-utils - [20692]Add a gnc_quartz_set_menu call to main_window_new() so that newly

John Ralls jralls at code.gnucash.org
Fri May 27 11:26:18 EDT 2011


Author: jralls
Date: 2011-05-27 11:26:18 -0400 (Fri, 27 May 2011)
New Revision: 20702
Trac: http://svn.gnucash.org/trac/changeset/20702

Modified:
   gnucash/branches/2.4/src/gnome-utils/gnc-main-window.c
Log:
[20692]Add a gnc_quartz_set_menu call to main_window_new() so that newly
created windows get their menus on the mac menu.

Modified: gnucash/branches/2.4/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/branches/2.4/src/gnome-utils/gnc-main-window.c	2011-05-27 08:26:00 UTC (rev 20701)
+++ gnucash/branches/2.4/src/gnome-utils/gnc-main-window.c	2011-05-27 15:26:18 UTC (rev 20702)
@@ -2356,8 +2356,12 @@
     }
     active_windows = g_list_append (active_windows, window);
     gnc_main_window_update_title(window);
+
+#ifdef MAC_INTEGRATION
+    gtk_quartz_set_menu(window);
+#else
     gnc_main_window_update_all_menu_items();
-
+#endif
     gnc_engine_add_commit_error_callback( gnc_main_window_engine_commit_error_callback, window );
 
     return window;



More information about the gnucash-changes mailing list