Add accessor of GtkUIManager in GncMainWindow.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20302 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2011-02-14 21:15:08 +00:00
parent fe58851549
commit 8650eec61c
2 changed files with 11 additions and 0 deletions

View File

@ -4304,5 +4304,11 @@ gnc_main_window_all_action_set_sensitive (const gchar *action_name,
}
}
GtkUIManager *gnc_main_window_get_uimanager (GncMainWindow *window)
{
g_assert(window);
return window->ui_merge;
}
/** @} */
/** @} */

View File

@ -159,6 +159,11 @@ void gnc_main_window_foreach_page (GncMainWindowPageFunc fn,
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.