Method

GtkActionGroupadd_radio_actions

deprecated: 3.10 since: 2.4

Declaration [src]

void
gtk_action_group_add_radio_actions (
  GtkActionGroup* action_group,
  const GtkRadioActionEntry* entries,
  guint n_entries,
  gint value,
  GCallback on_change,
  gpointer user_data
)

Description [src]

This is a convenience routine to create a group of radio actions and add them to the action group.

The “changed” signal of the first radio action is connected to the on_change callback and the accel paths of the actions 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 GtkRadioActionEntry

An array of radio 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.

value

Type: gint

The value of the action to activate initially, or -1 if no action should be activated.

on_change

Type: GCallback

The callback to connect to the changed signal.

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.