Nautilus Extension Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
#define NAUTILUS_TYPE_MENU_ITEM #define NAUTILUS_MENU_ITEM (obj) #define NAUTILUS_MENU_ITEM_CLASS (klass) #define NAUTILUS_MENU_IS_ITEM (obj) #define NAUTILUS_MENU_IS_ITEM_CLASS (klass) #define NAUTILUS_MENU_ITEM_GET_CLASS (obj) NautilusMenuPrivate; NautilusMenuItemDetails; NautilusMenu; NautilusMenuItem; NautilusMenu * nautilus_menu_new (void); void nautilus_menu_append_item (NautilusMenu *this, NautilusMenuItem *item); GList* nautilus_menu_get_items (NautilusMenu *this); void nautilus_menu_item_list_free (GList *item_list); GType nautilus_menu_item_get_type (void); NautilusMenuItem * nautilus_menu_item_new (const char *name, const char *label, const char *tip, const char *icon); void nautilus_menu_item_activate (NautilusMenuItem *item); void nautilus_menu_item_set_submenu (NautilusMenuItem *item, NautilusMenu *menu);
"icon" gchar* : Read / Write "label" gchar* : Read / Write "menu" NautilusMenu* : Read / Write "name" gchar* : Read / Write / Construct Only "priority" gboolean : Read / Write "sensitive" gboolean : Read / Write "tip" gchar* : Read / Write
#define NAUTILUS_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_MENU_ITEM, NautilusMenuItem))
|
#define NAUTILUS_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_MENU_ITEM, NautilusMenuItemClass))
|
#define NAUTILUS_MENU_IS_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NAUTILUS_TYPE_MENU_ITEM))
|
#define NAUTILUS_MENU_IS_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NAUTILUS_TYPE_MENU_ITEM))
|
#define NAUTILUS_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), NAUTILUS_TYPE_MENU_ITEM, NautilusMenuItemClass))
|
void nautilus_menu_append_item (NautilusMenu *this, NautilusMenuItem *item);
|
|
|
NautilusMenuItem * nautilus_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.
|
the identifier for the menu item |
|
the user-visible label of the menu item |
|
the tooltip of the menu item |
|
the name of the icon to display in the menu item |
Returns : |
a newly create NautilusMenuItem |
void nautilus_menu_item_activate (NautilusMenuItem *item);
emits the activate signal.
|
pointer to a NautilusMenuItem |
void nautilus_menu_item_set_submenu (NautilusMenuItem *item, NautilusMenu *menu);
Attachs a menu to the given NautilusMenuItem.
|
pointer to a NautilusMenuItem |
|
pointer to a NautilusMenu to attach to the button |
"icon"
property"icon" gchar* : Read / Write
Name of the icon to display in the menu item.
Default value: NULL
"label"
property"label" gchar* : Read / Write
Label to display to the user.
Default value: NULL
"menu"
property"menu" NautilusMenu* : Read / Write
The menu belonging to this item. May be null.
"name"
property"name" gchar* : Read / Write / Construct Only
Name of the item.
Default value: NULL
"priority"
property"priority" gboolean : Read / Write
Show priority text in toolbars.
Default value: TRUE
"sensitive"
property"sensitive" gboolean : Read / Write
Whether the menu item is sensitive.
Default value: TRUE
"activate"
signalvoid user_function (NautilusMenuItem *nautilusmenuitem, gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |