![]() |
![]() |
![]() |
hildon-extras Reference Manual | ![]() |
---|---|---|---|---|
HeMenuStoreHeMenuStore — A GtkTreeModel based on a GtkMenu |
HeMenuStorePrivate; HeMenuStore; GtkTreeModel* he_menu_store_new (GtkMenu *menu); enum HeMenuStoreColumn;
"deep" gboolean : Read / Write / Construct Only "menu" GtkMenu* : Read / Write / Construct Only
HeMenuStore implements the GtkTreeModel interface, allowing you to display the items from a GtkMenu in a GtkTreeView.
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
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 |