![]() |
![]() |
![]() |
Nemo Extension Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
#define NEMO_TYPE_MENU_ITEM #define NEMO_MENU_ITEM (obj) #define NEMO_MENU_ITEM_CLASS (klass) #define NEMO_MENU_IS_ITEM (obj) #define NEMO_MENU_IS_ITEM_CLASS (klass) #define NEMO_MENU_ITEM_GET_CLASS (obj) NemoMenuPrivate; NemoMenuItemDetails; struct NemoMenu; struct NemoMenuItem; NemoMenu * nemo_menu_new (void
); void nemo_menu_append_item (NemoMenu *menu
,NemoMenuItem *item
); GList * nemo_menu_get_items (NemoMenu *menu
); void nemo_menu_item_list_free (GList *item_list
); GType nemo_menu_item_get_type (void
); NemoMenuItem * nemo_menu_item_new (const char *name
,const char *label
,const char *tip
,const char *icon
); void nemo_menu_item_activate (NemoMenuItem *item
); void nemo_menu_item_set_submenu (NemoMenuItem *item
,NemoMenu *menu
);
"icon" gchar* : Read / Write "label" gchar* : Read / Write "menu" NemoMenu* : Read / Write "name" gchar* : Read / Write / Construct Only "priority" gboolean : Read / Write "sensitive" gboolean : Read / Write "tip" gchar* : Read / Write
#define NEMO_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NEMO_TYPE_MENU_ITEM, NemoMenuItem))
#define NEMO_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NEMO_TYPE_MENU_ITEM, NemoMenuItemClass))
#define NEMO_MENU_IS_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NEMO_TYPE_MENU_ITEM))
#define NEMO_MENU_IS_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NEMO_TYPE_MENU_ITEM))
#define NEMO_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), NEMO_TYPE_MENU_ITEM, NemoMenuItemClass))
GList * nemo_menu_get_items (NemoMenu *menu
);
|
a NemoMenu |
Returns : |
the provided NemoMenuItem list. [element-type NemoMenuItem][transfer full] |
void nemo_menu_item_list_free (GList *item_list
);
|
a list of NemoMenuItem. [element-type NemoMenuItem] |
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.
|
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 NemoMenuItem |
void nemo_menu_item_activate (NemoMenuItem *item
);
emits the activate signal.
|
pointer to a NemoMenuItem |
void nemo_menu_item_set_submenu (NemoMenuItem *item
,NemoMenu *menu
);
Attachs a menu to the given NemoMenuItem.
|
pointer to a NemoMenuItem |
|
pointer to a NemoMenu 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
"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 (NemoMenuItem *nemomenuitem,
gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |