Function
Birbmenu_populate_dynamic_targetsv
since: 0.6
Declaration [src]
void
birb_menu_populate_dynamic_targetsv (
GMenu* menu,
GHashTable* properties
)
Description [src]
Updates menu by adding a target property when an item with an attribute
named “dynamic-target” is found.
The value for the target is set to the matching value from properties.
For example, if you need to set the target to an identifier, you would set
the “dynamic-target” attribute of your menu item to “id” and then call
birb_menu_populate_dynamic_targetsv() with a hash table containing the
key "id" and a value of the specific id.
Available since: 0.6
This function is renamed to birb_menu_populate_dynamic_targets() in language bindings.
Parameters
menu-
Type:
GMenuThe menu instance to modify.
The data is owned by the caller of the function. properties-
Type:
GHashTableA hash table where the keys are the names of the properties of dynamic targets to be replaced, and the values are the replacements.
The data is owned by the caller of the function.