Goes through the GTK structures and turns them into the appropraite Dbusmenu structures along with setting up all the relationships between the objects. It also stores the dbusmenu items as a cache on the GTK items so that they'll be reused if necissary.
This function looks on the menu item for a property by the
name of property
. If one exists it tries to turn it into
a #GdkPixbuf. It assumes that the property is a base64 encoded
PNG file like the one created by #dbusmenu_menuite_property_set_image.
The #DbusmenuMenuitem to look for the property on
The name of the property to look for.
This function gets a GTK shortcut as a key and a mask for use to set the accelerators.
The #DbusmenuMenuitem to get the shortcut off
This function takes the pixbuf that is stored in data
and
turns it into a base64 encoded PNG so that it can be placed
onto a standard #DbusmenuMenuitem property.
The #DbusmenuMenuitem to set the property on.
Name of the property to set.
The image to place on the property.
Takes the modifer described by key
and modifier
and places that into
the format sending across Dbus for shortcuts.
The #DbusmenuMenuitem to set the shortcut on
The keycode of the key to send
A bitmask of modifiers used to activate the item
Takes the shortcut that is installed on a menu item and calls #dbusmenu_menuitem_property_set_shortcut with it. It also sets up listeners to watch it change.
The #DbusmenuMenuitem to set the shortcut on
A menu item to steal the shortcut off of
This function takes a GTK shortcut string as defined in #gtk_accelerator_parse and turns that into the information required to send it over DBusmenu.
The #DbusmenuMenuitem to set the shortcut on
String describing the shortcut
The Dbusmenu GTK parser adds cached items on the various menu items throughout the tree. Sometimes it can be useful to get that cached item to use directly. This function will retrieve it for you.