Function
Birbmenu_populate_dynamic_targets
since: 0.6
Declaration [src]
void
birb_menu_populate_dynamic_targets (
GMenu* menu,
const char* first_property,
...
)
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 the passed in parameters.
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_targets() with a property pair of “id” and the
id to set.
Available since: 0.6
This function is not directly available to language bindings.
The implementation of this function is provided by birb_menu_populate_dynamic_targetsv() in language bindings.
Parameters
menu-
Type:
GMenuThe menu instance to modify.
The data is owned by the caller of the function. first_property-
Type:
const char*The name of the first property of dynamic targets to replace.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. ...-
Type:
The value of the first property, followed optionally by more name/value pairs, followed by
NULL.