Top |
ThunarxMenuItem * | thunarx_menu_item_new () |
gboolean | thunarx_menu_item_activate () |
gboolean | thunarx_menu_item_get_sensitive () |
void | thunarx_menu_item_set_sensitive () |
void | thunarx_menu_item_set_menu () |
void | thunarx_menu_item_list_free () |
The class for menu items that can be added to Thunar's context menus by extensions implementing the ThunarxMenuProvider, ThunarxPreferencesProvider or ThunarxRenamerProvider interfaces. The items returned by extensions from *_get_menu_items() methods are instances of this class or a derived class.
ThunarxMenuItem * thunarx_menu_item_new (const gchar *name
,const gchar *label
,const gchar *tooltip
,const gchar *icon
);
Creates a new menu item that can be added to the toolbar or to a contextual menu.
gboolean
thunarx_menu_item_activate (ThunarxMenuItem *item
);
Emits the activate signal.
gboolean
thunarx_menu_item_get_sensitive (ThunarxMenuItem *item
);
Returns whether the menu item is sensitive.
void thunarx_menu_item_set_sensitive (ThunarxMenuItem *item
,gboolean sensitive
);
Sets the ::sensitive property of the menu item to sensitive
.
item |
pointer to a ThunarxMenuItem instance |
|
sensitive |
|
void thunarx_menu_item_set_menu (ThunarxMenuItem *item
,ThunarxMenu *menu
);
Attaches menu
to menu item.
“icon”
property “icon” char *
Textual representation of the icon (as returned by g_icon_to_string()) to display in the menu item.
Owner: ThunarxMenuItem
Flags: Read / Write
Default value: NULL
“label”
property “label” char *
Label to display to the user.
Owner: ThunarxMenuItem
Flags: Read / Write
Default value: NULL
“menu”
property“menu” ThunarxMenu *
The menu belonging to this item. May be null.
Owner: ThunarxMenuItem
Flags: Read / Write
“name”
property “name” char *
Name of the item.
Owner: ThunarxMenuItem
Flags: Read / Write / Construct Only
Default value: NULL
“priority”
property “priority” gboolean
Show priority text in toolbars.
Owner: ThunarxMenuItem
Flags: Read / Write
Default value: TRUE
“sensitive”
property “sensitive” gboolean
Whether the menu item is sensitive.
Owner: ThunarxMenuItem
Flags: Read / Write
Default value: TRUE
“activate”
signalvoid user_function (ThunarxMenuItem *thunarxmenuitem, gpointer user_data)
Flags: Run Last