Method

GtkActionGroupadd_action_with_accel

deprecated: 3.10 since: 2.4

Declaration [src]

void
gtk_action_group_add_action_with_accel (
  GtkActionGroup* action_group,
  GtkAction* action,
  const gchar* accelerator
)

Description [src]

Adds an action object to the action group and sets up the accelerator.

If accelerator is NULL, attempts to use the accelerator associated with the stock_id of the action.

Accel paths are set to <Actions>/group-name/action-name.

Available since: 2.4

Deprecated since: 3.10

Please do not use it in newly written code.

Parameters

action

Type: GtkAction

The action to add.

The data is owned by the caller of the method.
accelerator

Type: const gchar*

The accelerator for the action, in the format understood by gtk_accelerator_parse(), or “” for no accelerator, or NULL to use the stock accelerator.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.