Function

Purplemenu_populate_dynamic_targets

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_account_get_id().

Available since:3.0.0
This function is not directly available to language bindings

Parameters

menu GMenu
 

The menu instance to modify.

 The data is owned by the caller of the function.
first_property 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.
...
 

The value of the first property, followed optionally by more name/value pairs, followed by NULL.