NemoMenuItem

NemoMenuItem

Functions

Types and Values

Description

Functions

NEMO_MENU_ITEM()

#define NEMO_MENU_ITEM(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), NEMO_TYPE_MENU_ITEM, NemoMenuItem))

NEMO_MENU_ITEM_CLASS()

#define NEMO_MENU_ITEM_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), NEMO_TYPE_MENU_ITEM, NemoMenuItemClass))

NEMO_MENU_IS_ITEM()

#define NEMO_MENU_IS_ITEM(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NEMO_TYPE_MENU_ITEM))

NEMO_MENU_IS_ITEM_CLASS()

#define NEMO_MENU_IS_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NEMO_TYPE_MENU_ITEM))

NEMO_MENU_ITEM_GET_CLASS()

#define NEMO_MENU_ITEM_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), NEMO_TYPE_MENU_ITEM, NemoMenuItemClass))

nemo_menu_new ()

NemoMenu *
nemo_menu_new (void);

nemo_menu_append_item ()

void
nemo_menu_append_item (NemoMenu *menu,
                       NemoMenuItem *item);

nemo_menu_get_items ()

GList *
nemo_menu_get_items (NemoMenu *menu);

Parameters

menu

a NemoMenu

 

Returns

the provided NemoMenuItem list.

[element-type NemoMenuItem][transfer full]


nemo_menu_item_list_free ()

void
nemo_menu_item_list_free (GList *item_list);

Parameters

item_list

a list of NemoMenuItem.

[element-type NemoMenuItem]

nemo_menu_item_get_type ()

GType
nemo_menu_item_get_type (void);

nemo_menu_item_new ()

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.

Parameters

name

the identifier for the menu item

 

label

the user-visible label of the menu item

 

tip

the tooltip of the menu item

 

icon

the name of the icon to display in the menu item

 

Returns

a newly create NemoMenuItem


nemo_menu_item_activate ()

void
nemo_menu_item_activate (NemoMenuItem *item);

emits the activate signal.

Parameters

item

pointer to a NemoMenuItem

 

nemo_menu_item_set_submenu ()

void
nemo_menu_item_set_submenu (NemoMenuItem *item,
                            NemoMenu *menu);

Attachs a menu to the given NemoMenuItem.

Parameters

item

pointer to a NemoMenuItem

 

menu

pointer to a NemoMenu to attach to the button

 

Types and Values

NEMO_TYPE_MENU_ITEM

#define NEMO_TYPE_MENU_ITEM            (nemo_menu_item_get_type())

NemoMenuPrivate

typedef struct _NemoMenuPrivate NemoMenuPrivate;

NemoMenuItemDetails

typedef struct _NemoMenuItemDetails NemoMenuItemDetails;

struct NemoMenu

struct NemoMenu {
	GObject parent;
	NemoMenuPrivate *priv;
};

struct NemoMenuItem

struct NemoMenuItem {
	GObject parent;

	NemoMenuItemDetails *details;
};