X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmaemo%2Fmodest-maemo-utils.h;h=d8ce63d61b441262cca355346f95baf29353cbd3;hb=25883ee2440d813f0b8adaf1a030c43e2afc075e;hp=80229daa75edb535172a4f695e1b45be41832605;hpb=7929406e046ed92142ff337bd9161e6a16e1d04e;p=modest diff --git a/src/maemo/modest-maemo-utils.h b/src/maemo/modest-maemo-utils.h index 80229da..d8ce63d 100644 --- a/src/maemo/modest-maemo-utils.h +++ b/src/maemo/modest-maemo-utils.h @@ -111,4 +111,16 @@ osso_context_t* modest_maemo_utils_get_osso_context (void); */ void modest_maemo_utils_set_osso_context (osso_context_t *osso_context); +/** + * modest_maemo_utils_get_manager_menubar_as_menu: + * @manager: a #GtkUIManager + * @item_name: a string + * + * obtains the node with name @item_name in @manager (which happens to be a menubar) as a + * #GtkMenu. + * + * Returns: a #GtkMenu + */ +GtkWidget *modest_maemo_utils_get_manager_menubar_as_menu (GtkUIManager *manager, const gchar *item_name); + #endif /*__MODEST_MAEMO_UTILS_H__*/