Top |
#define | GNT_MENU_FLAGS() |
#define | GNT_MENU_SET_FLAGS() |
#define | GNT_MENU_UNSET_FLAGS() |
GType | gnt_menu_get_gtype () |
GntWidget * | gnt_menu_new () |
void | gnt_menu_add_item () |
GntMenuItem * | gnt_menu_get_item () |
#define GNT_MENU_FLAGS(obj) (GNT_MENU(obj)->priv.flags)
GNT_MENU_FLAGS
has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.
#define GNT_MENU_SET_FLAGS(obj, flags) (GNT_MENU_FLAGS(obj) |= flags)
GNT_MENU_SET_FLAGS
has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.
#define GNT_MENU_UNSET_FLAGS(obj, flags) (GNT_MENU_FLAGS(obj) &= ~(flags))
GNT_MENU_UNSET_FLAGS
has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.
void gnt_menu_add_item (GntMenu *menu
,GntMenuItem *item
);
Add an item to the menu.
GntMenuItem * gnt_menu_get_item (GntMenu *menu
,const char *id
);
Return the GntMenuItem with the given ID.
Since: 2.3.0
A toplevel-menu is displayed at the top of the screen, and it spans accross the entire width of the screen. A popup-menu could be displayed, for example, as a context menu for widgets.
struct GntMenu { GntTree parent; GntMenuType GNTSEAL(type); GList *GNTSEAL(list); int GNTSEAL(selected); /* This will keep track of its immediate submenu which is visible so that * keystrokes can be passed to it. */ GntMenu *GNTSEAL(submenu); GntMenu *GNTSEAL(parentmenu); };
Access to any fields is deprecated. See inline comments for replacements.