#include <glib.h>
#include <glib-object.h>
#include "gntmenu.h"
Include dependency graph for gntmenuitem.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | _GntMenuItemPriv |
| struct | _GntMenuItem |
| struct | _GntMenuItemClass |
Defines | |
| #define | GNT_TYPE_MENU_ITEM (gnt_menuitem_get_gtype()) |
| #define | GNT_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_MENU_ITEM, GntMenuItem)) |
| #define | GNT_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_MENU_ITEM, GntMenuItemClass)) |
| #define | GNT_IS_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_MENU_ITEM)) |
| #define | GNT_IS_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_MENU_ITEM)) |
| #define | GNT_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_MENU_ITEM, GntMenuItemClass)) |
| #define | GNT_MENU_ITEM_FLAGS(obj) (GNT_MENU_ITEM(obj)->priv.flags) |
| #define | GNT_MENU_ITEM_SET_FLAGS(obj, flags) (GNT_MENU_ITEM_FLAGS(obj) |= flags) |
| #define | GNT_MENU_ITEM_UNSET_FLAGS(obj, flags) (GNT_MENU_ITEM_FLAGS(obj) &= ~(flags)) |
Typedefs | |
| typedef _GntMenuItem | GntMenuItem |
| typedef _GntMenuItemPriv | GntMenuItemPriv |
| typedef _GntMenuItemClass | GntMenuItemClass |
| typedef void(* | GntMenuItemCallback )(GntMenuItem *item, gpointer data) |
Functions | |
| G_BEGIN_DECLS GType | gnt_menuitem_get_gtype (void) |
| GntMenuItem * | gnt_menuitem_new (const char *text) |
| Create a new menuitem. | |
| void | gnt_menuitem_set_callback (GntMenuItem *item, GntMenuItemCallback callback, gpointer data) |
| Set a callback function for a menuitem. | |
| void | gnt_menuitem_set_submenu (GntMenuItem *item, GntMenu *menu) |
| Set a submenu for a menuitem. | |
| GntMenu * | gnt_menuitem_get_submenu (GntMenuItem *item) |
| Get the submenu for a menuitem. | |
| void | gnt_menuitem_set_trigger (GntMenuItem *item, char trigger) |
| Set a trigger key for the item. | |
| char | gnt_menuitem_get_trigger (GntMenuItem *item) |
| Get the trigger key for a menuitem. | |
| void | gnt_menuitem_set_id (GntMenuItem *item, const char *id) |
| Set an ID for the menuitem. | |
| const char * | gnt_menuitem_get_id (GntMenuItem *item) |
| Get the ID of the menuitem. | |
| gboolean | gnt_menuitem_activate (GntMenuItem *item) |
| Activate a menuitem. | |
Definition in file gntmenuitem.h.
|
|
Activate a menuitem. Activating the menuitem will first trigger the 'activate' signal for the menuitem. Then the callback for the menuitem is triggered, if there is one.
|
|
|
|
|
|
Get the ID of the menuitem.
|
|
|
Get the submenu for a menuitem.
|
|
|
Get the trigger key for a menuitem.
|
|
|
Create a new menuitem.
|
|
||||||||||||||||
|
Set a callback function for a menuitem.
|
|
||||||||||||
|
Set an ID for the menuitem.
|
|
||||||||||||
|
Set a submenu for a menuitem. A menuitem with a submenu cannot have a callback.
|
|
||||||||||||
|
Set a trigger key for the item.
|