Function

Purplemenu_populate_dynamic_targetsv

Declaration [src]

void
purple_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 account, you would set the “dynamic-target” attribute of your menu item to “account” and then call purple_menu_populate_dynamic_targetsv() with a hash table containing the key "account" and value from purple_account_get_id().

Available since:3.0.0
This function is renamed to purple_menu_populate_dynamic_targets() in language bindings

Parameters

menu GMenu
 

The menu instance to modify.

 The data is owned by the caller of the function.
properties GHashTable
 

A 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.