| Top |
| GApplication * | rb_application_new () |
| int | rb_application_run () |
| void | rb_application_link_shared_menus () |
| void | rb_application_add_shared_menu () |
| GMenuModel * | rb_application_get_shared_menu () |
| GMenuModel * | rb_application_get_plugin_menu () |
| void | rb_application_add_plugin_menu_item () |
| void | rb_application_remove_plugin_menu_item () |
RBApplication contains some interactions with the desktop environment, such as the app menu and processing of files specified on the command line.
int rb_application_run (RBApplication *app,int argc,char **argv);
Runs the application
void rb_application_link_shared_menus (RBApplication *app,GMenu *menu);
Processes shared menu links in the given menu. Menu links take the form of items with "rb-menu-link" or "rb-plugin-menu-link" and "rb-menu-link-type" attributes. "rb-menu-link" specifies the name of a shared menu to link in, "rb-plugin-menu-link" specifies the name of a plugin menu to link in, "rb-menu-link-type" specifies the link type, either "section" or "submenu". A link item must have "rb-menu-link-type" and one of "rb-menu-link" or "rb-plugin-menu-link".
void rb_application_add_shared_menu (RBApplication *app,const char *name,GMenuModel *menu);
Adds a menu model to the set of shared menus available for linking into other menus.
GMenuModel * rb_application_get_shared_menu (RBApplication *app,const char *name);
Returns a shared menu instance added with rb_application_add_shared_menu
GMenuModel * rb_application_get_plugin_menu (RBApplication *app,const char *menu);
Returns a plugin menu instance. Plugin menus are like shared menus except
they are created empty on first access, and they consist solely of entries
added through rb_application_add_plugin_item
.
void rb_application_add_plugin_menu_item (RBApplication *app,const char *menu,const char *id,GMenuItem *item);
Adds an item to a plugin menu. The id can be used to remove the item.
void rb_application_remove_plugin_menu_item (RBApplication *app,const char *menu,const char *id);