Top |
GType | caja_menu_item_get_type () |
CajaMenuItem * | caja_menu_item_new () |
void | caja_menu_item_activate () |
void | caja_menu_item_set_submenu () |
CajaMenuItem is an object that describes an item in a file manager
menu. Extensions can provide CajaMenuItem objects by registering a
CajaMenuProvider and returning them from
caja_menu_provider_get_file_items()
, or
caja_menu_provider_get_background_items()
, which will be called by the
main application when creating menus.
CajaMenuItem * caja_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
caja_menu_item_activate (CajaMenuItem *item
);
emits the activate signal.
void caja_menu_item_set_submenu (CajaMenuItem *item
,CajaMenu *menu
);
Attachs a menu to the given CajaMenuItem.
“icon”
property “icon” char *
Name of the icon to display in the menu item.
Owner: CajaMenuItem
Flags: Read / Write
Default value: NULL
“label”
property “label” char *
Label to display to the user.
Owner: CajaMenuItem
Flags: Read / Write
Default value: NULL
“menu”
property“menu” CajaMenu *
The menu belonging to this item. May be null.
Owner: CajaMenuItem
Flags: Read / Write
“name”
property “name” char *
Name of the item.
Owner: CajaMenuItem
Flags: Read / Write / Construct Only
Default value: NULL
“priority”
property “priority” gboolean
Show priority text in toolbars.
Owner: CajaMenuItem
Flags: Read / Write
Default value: TRUE
“sensitive”
property “sensitive” gboolean
Whether the menu item is sensitive.
Owner: CajaMenuItem
Flags: Read / Write
Default value: TRUE
“activate”
signalvoid user_function (CajaMenuItem *cajamenuitem, gpointer user_data)
Flags: Run Last