Method

GtkActionGroupadd_actions

deprecated: 3.10 since: 2.4

Declaration [src]

void
gtk_action_group_add_actions (
  GtkActionGroup* action_group,
  const GtkActionEntry* entries,
  guint n_entries,
  gpointer user_data
)

Description [src]

This is a convenience function to create a number of actions and add them to the action group.

The “activate” signals of the actions are connected to the callbacks and their 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.

This method is not directly available to language bindings.

Parameters

entries

Type: An array of GtkActionEntry

An array of action descriptions.

The length of the array is specified in the n_entries argument.
The data is owned by the caller of the method.
n_entries

Type: guint

The number of entries.

user_data

Type: gpointer

Data to pass to the action callbacks.

The argument can be NULL.
The data is owned by the caller of the method.