| RhythmCat Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#include <rc-ui-menu.h> guint rc_ui_menu_add_menu_action (GtkAction *action,const gchar *path,const gchar *name,const gchar *action_name,gboolean top); GtkUIManager * rc_ui_menu_get_ui_manager (); void rc_ui_menu_remove_menu_action (GtkAction *action,guint id);
This module provides the menus in the player, including main window, status icon, popup menus, etc. Plug-ins can also add their own menu items into the player.
guint rc_ui_menu_add_menu_action (GtkAction *action,const gchar *path,const gchar *name,const gchar *action_name,gboolean top);
Add a menu item to the main menu of the player.
|
the GtkAction for the menu item |
|
the path to append to |
|
the name for the added UI element |
|
the name of the action to be proxied |
|
if TRUE, the UI element is added before its siblings, otherwise it is added after its siblings |
Returns : |
The merge ID of the menu item. (Should be used to remove the menu when you do not need it.) |
GtkUIManager * rc_ui_menu_get_ui_manager ();
Get the UI Manager of the menus. If it is not initialized yet, it will be initialized.
Returns : |
The UI Manager object. [transfer none] |