HeMenuStore

HeMenuStore — A GtkTreeModel based on a GtkMenu

Synopsis

                    HeMenuStorePrivate;
                    HeMenuStore;
GtkTreeModel*       he_menu_store_new                   (GtkMenu *menu);
enum                HeMenuStoreColumn;

Object Hierarchy

  GObject
   +----HeMenuStore

Implemented Interfaces

HeMenuStore implements GtkTreeModel.

Properties

  "deep"                     gboolean              : Read / Write / Construct Only
  "menu"                     GtkMenu*              : Read / Write / Construct Only

Description

HeMenuStore implements the GtkTreeModel interface, allowing you to display the items from a GtkMenu in a GtkTreeView.

Details

HeMenuStorePrivate

typedef struct _HeMenuStorePrivate HeMenuStorePrivate;


HeMenuStore

typedef struct _HeMenuStore HeMenuStore;


he_menu_store_new ()

GtkTreeModel*       he_menu_store_new                   (GtkMenu *menu);

Creates a new HeMenuStore from the given GtkMenu.

menu : The GtkMenu to wrap
Returns : A new HeMenuStore based on the given GtkMenu

Since 0.9.1


enum HeMenuStoreColumn

typedef enum {
	HE_MENU_STORE_IMAGE_PIXBUF,
	HE_MENU_STORE_IS_IMAGE_ITEM,
	HE_MENU_STORE_IS_CHECK_ITEM,
	HE_MENU_STORE_IS_RADIO_ITEM,
	HE_MENU_STORE_TEXT,
	HE_MENU_STORE_VISIBLE,
	HE_MENU_STORE_SENSITIVE,
	HE_MENU_STORE_ACTIVE,
	HE_MENU_STORE_INCONSISTENT,
	HE_MENU_STORE_MENU_WIDGET,
	HE_MENU_STORE_HAS_CHILDREN,
	HE_MENU_STORE_MARKUP,
	HE_MENU_STORE_N_COLUMNS
} HeMenuStoreColumn;

These are the column indices and the column count of a HeMenuStore.

HE_MENU_STORE_IMAGE_PIXBUF Index of the column containing the GtkImageMenuItem's GdkPixbuf
HE_MENU_STORE_IS_IMAGE_ITEM Index of the column indicating whether this is a GtkImageMenuItem
HE_MENU_STORE_IS_CHECK_ITEM Index of the column indicating whether this is a GtkCheckMenuItem
HE_MENU_STORE_IS_RADIO_ITEM Index of the column indicating wheather this is a GtkRadioMenuItem
HE_MENU_STORE_TEXT Index of the column containing the GtkMenuItem's text (Note: Mnemonic underscores are removed)
HE_MENU_STORE_VISIBLE Index of the column indicating wheather this GtkMenuItem is visible
HE_MENU_STORE_SENSITIVE Index of the column indicating wheather this GtkMenuItem is sensitive
HE_MENU_STORE_ACTIVE Index of the column indicating wheather this GtkCheckMenuItem is active
HE_MENU_STORE_INCONSISTENT Index of the column indicating wheather this GtkCheckMenuItem is inconsistent
HE_MENU_STORE_MENU_WIDGET Index of the column containing the GtkMenuItem
HE_MENU_STORE_HAS_CHILDREN Index of the column indicating wheather this GtkCheckMenuItem has a submenu
HE_MENU_STORE_MARKUP Index of the column where the markup is stored. If the menu item has no markup then this column contains the same text as HE_MENU_STORE_TEXT
HE_MENU_STORE_N_COLUMNS Number of columns in a HeMenuStore

Property Details

The "deep" property

  "deep"                     gboolean              : Read / Write / Construct Only

Whether this model reveals submenus as children.

Default value: FALSE


The "menu" property

  "menu"                     GtkMenu*              : Read / Write / Construct Only

The menu widget.