Top | ![]() |
![]() |
![]() |
![]() |
NemoMenu * | nemo_menu_new () |
void | nemo_menu_append_item () |
GList * | nemo_menu_get_items () |
void | nemo_menu_item_list_free () |
NemoMenuItem * | nemo_menu_item_new () |
void | nemo_menu_item_activate () |
void | nemo_menu_item_set_submenu () |
char * | icon | Read / Write |
char * | label | Read / Write |
NemoMenu * | menu | Read / Write |
char * | name | Read / Write / Construct Only |
gboolean | priority | Read / Write |
gboolean | sensitive | Read / Write |
gboolean | separator | Read / Write |
char * | tip | Read / Write |
GtkWidget * | widget-a | Read / Write |
GtkWidget * | widget-b | Read / Write |
Menu items and submenus can be added to Nemo's selected item and background context menus by a NemoMenuProvider. Separators and embedded widgets are also possible (see NemoSimpleButton.)
NemoMenuItem * nemo_menu_item_new (const char *name
,const char *label
,const char *tip
,const char *icon
);
Creates a new menu item that can be added to the toolbar or to a contextual menu.
void
nemo_menu_item_activate (NemoMenuItem *item
);
emits the activate signal.
void nemo_menu_item_set_submenu (NemoMenuItem *item
,NemoMenu *menu
);
Attachs a menu to the given NemoMenuItem.
“icon”
property “icon” char *
Name of the icon to display in the menu item.
Owner: NemoMenuItem
Flags: Read / Write
Default value: NULL
“label”
property “label” char *
Label to display to the user.
Owner: NemoMenuItem
Flags: Read / Write
Default value: NULL
“menu”
property“menu” NemoMenu *
The menu belonging to this item. May be null.
Owner: NemoMenuItem
Flags: Read / Write
“name”
property “name” char *
Name of the item.
Owner: NemoMenuItem
Flags: Read / Write / Construct Only
Default value: NULL
“priority”
property “priority” gboolean
Show priority text in toolbars.
Owner: NemoMenuItem
Flags: Read / Write
Default value: TRUE
“sensitive”
property “sensitive” gboolean
Whether the menu item is sensitive.
Owner: NemoMenuItem
Flags: Read / Write
Default value: TRUE
“separator”
property “separator” gboolean
Is a separator.
Owner: NemoMenuItem
Flags: Read / Write
Default value: FALSE
“tip”
property “tip” char *
Tooltip for the menu item.
Owner: NemoMenuItem
Flags: Read / Write
Default value: NULL
“widget-a”
property “widget-a” GtkWidget *
The custom widget to use in place of text.
Owner: NemoMenuItem
Flags: Read / Write
“activate”
signalvoid user_function (NemoMenuItem *nemomenuitem, gpointer user_data)
Flags: Run Last