- gMenuModel
GMenuModel* gMenuModel;
- getMenuModelStruct
GMenuModel* getMenuModelStruct(bool transferOwnership)
- getStruct
void* getStruct()
the main Gtk struct as a void*
- setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
- getType
GType getType()
- getItemAttributeValue
Variant getItemAttributeValue(int itemIndex, string attribute, VariantType expectedType)
Queries the item at position @item_index in @model for the attribute
specified by @attribute.
- getItemLink
MenuModel getItemLink(int itemIndex, string link)
Queries the item at position @item_index in @model for the link
specified by @link.
- getNItems
int getNItems()
Query the number of items in @model.
- isMutable
bool isMutable()
Queries if @model is mutable.
- itemsChanged
void itemsChanged(int position, int removed, int added)
Requests emission of the #GMenuModel::items-changed signal on @model.
- iterateItemAttributes
MenuAttributeIter iterateItemAttributes(int itemIndex)
Creates a #GMenuAttributeIter to iterate over the attributes of
the item at position @item_index in @model.
- iterateItemLinks
MenuLinkIter iterateItemLinks(int itemIndex)
Creates a #GMenuLinkIter to iterate over the links of the item at
position @item_index in @model.
- OnItemsChangedDelegateWrapper
class OnItemsChangedDelegateWrapper
Undocumented in source.
- onItemsChangedListeners
OnItemsChangedDelegateWrapper[] onItemsChangedListeners;
Undocumented in source.
- addOnItemsChanged
gulong addOnItemsChanged(void delegate(int, int, int, MenuModel) dlg, ConnectFlags connectFlags)
Emitted when a change has occured to the menu.
- callBackItemsChanged
void callBackItemsChanged(GMenuModel* menumodelStruct, int position, int removed, int added, OnItemsChangedDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
- callBackItemsChangedDestroy
void callBackItemsChangedDestroy(OnItemsChangedDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
#GDBusMenuModel is an implementation of #GMenuModel that can be used as a proxy for a menu model that is exported over D-Bus with g_dbus_connection_export_menu_model().