|
Beaver
0.4.1
|
Functions | |
| gint | beaver_ui_item_submenu_add_impl (enum BeaverMenuSection section, const gchar *name, const gchar *text) |
| gint | beaver_ui_item_add_impl (enum BeaverMenuSection section, const gchar *name, const gchar *stock_id, const gchar *text, void(*callback)(void)) |
| gint | beaver_ui_item_seperator_add_impl (enum BeaverMenuSection section) |
| void | beaver_ui_item_remove_impl (gint id, const gchar *name) |
Variables | |
| GtkUIManager * | MenuManager |
Implementation for menu manipulations for plugins.
| gint beaver_ui_item_add_impl | ( | enum BeaverMenuSection | section, |
| const gchar * | name, | ||
| const gchar * | stock_id, | ||
| const gchar * | text, | ||
| void(*)(void) | callback | ||
| ) |
Adds a menu item into specified menu section.
| section | the section in which to create the new item |
| name | internal name of the item |
| stock_id | The stock id for the action, or the name of an icon from the icon theme. |
| text | text on the label of the item |
| callback | the function that get's called when user clicks on this menu item. |
| void beaver_ui_item_remove_impl | ( | gint | id, |
| const gchar * | name | ||
| ) |
Removes a previously added menu item.
| id | integer id as returned by beaver_menu_add_* functions |
| name | internal name of menu item (as passed in beaver_menu_add_item) if NULL then action will not be removed. |
| gint beaver_ui_item_seperator_add_impl | ( | enum BeaverMenuSection | section | ) |
Adds a menu seperator.
| gint beaver_ui_item_submenu_add_impl | ( | enum BeaverMenuSection | section, |
| const gchar * | name, | ||
| const gchar * | text | ||
| ) |
Adds a submenu into the specified section. The submenu has to be populated with calls to beaver_menu_add_menu. To add items the text field in this call has to have the form <name>/<text> where name is the name you provided here and text is the label of the new submenuentry.
| section | the section in which to create the new item |
| name | internal name of menu item |
| text | text on the label of the menu item |
1.8.14