Method

CallyActoradd_action

Declaration [src]

guint
cally_actor_add_action (
  CallyActor* cally_actor,
  const gchar* action_name,
  const gchar* action_description,
  const gchar* action_keybinding,
  CallyActionFunc action_func
)

Description [src]

Adds a new action to be accessed with the AtkAction interface.

Available since:1.4

Parameters

action_name const gchar*
 

The action name.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
action_description const gchar*
 

The action description.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
action_keybinding const gchar*
 

The action keybinding.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
action_func CallyActionFunc
 

The callback of the action, to be executed with do_action.

Return value

Returns: guint
 

Added action id, or -1 if failure.