Function

Purplemenu_populate_dynamic_targets

unstable since: 3.0

Declaration [src]

void
purple_menu_populate_dynamic_targets (
  GMenu* menu,
  const gchar* 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 account, you would set the “dynamic-target” attribute of your menu item to “account” and then call purple_menu_populate_dynamic_targets() with a property pair of “account” and purple_contact_info_get_id().

Available since: 3.0

This function is not directly available to language bindings.

The implementation of this function is provided by purple_menu_populate_dynamic_targetsv() in language bindings.

Parameters

menu

Type: GMenu

The menu instance to modify.

The data is owned by the caller of the function.
first_property

Type: const gchar*

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.