r20302 - gnucash/trunk/src/gnome-utils - Add accessor of GtkUIManager in GncMainWindow.

Christian Stimming cstim at code.gnucash.org
Mon Feb 14 16:15:09 EST 2011


Author: cstim
Date: 2011-02-14 16:15:08 -0500 (Mon, 14 Feb 2011)
New Revision: 20302
Trac: http://svn.gnucash.org/trac/changeset/20302

Modified:
   gnucash/trunk/src/gnome-utils/gnc-main-window.c
   gnucash/trunk/src/gnome-utils/gnc-main-window.h
Log:
Add accessor of GtkUIManager in GncMainWindow.

Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c	2011-02-14 19:34:52 UTC (rev 20301)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c	2011-02-14 21:15:08 UTC (rev 20302)
@@ -4304,5 +4304,11 @@
     }
 }
 
+GtkUIManager *gnc_main_window_get_uimanager (GncMainWindow *window)
+{
+    g_assert(window);
+    return window->ui_merge;
+}
+
 /** @} */
 /** @} */

Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.h
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.h	2011-02-14 19:34:52 UTC (rev 20301)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.h	2011-02-14 21:15:08 UTC (rev 20302)
@@ -159,6 +159,11 @@
 GncPluginPage *gnc_main_window_get_current_page (GncMainWindow *window);
 
 
+/** Returns the pointer to the GtkUIManager which is used for the menu
+ * item merging. */
+GtkUIManager *gnc_main_window_get_uimanager (GncMainWindow *window);
+
+
 /** Update the name of the page in the main window.
  *
  *  @param page The page to be updated.



More information about the gnucash-changes mailing list