Constructor
GtkRadioActionnew
deprecated: 3.10 since: 2.4
Declaration [src]
GtkRadioAction*
gtk_radio_action_new (
const gchar* name,
const gchar* label,
const gchar* tooltip,
const gchar* stock_id,
gint value
)
Description [src]
Creates a new GtkRadioAction
object. To add the action to
a GtkActionGroup
and set the accelerator for the action,
call gtk_action_group_add_action_with_accel().
Available since: 2.4
Deprecated since: 3.10
Please do not use it in newly written code.
Parameters
name
-
Type:
const gchar*
A unique name for the action.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. label
-
Type:
const gchar*
The label displayed in menu items and on buttons, or
NULL
.The argument can be NULL
.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. tooltip
-
Type:
const gchar*
A tooltip for this action, or
NULL
.The argument can be NULL
.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. stock_id
-
Type:
const gchar*
The stock icon to display in widgets representing this action, or
NULL
.The argument can be NULL
.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. value
-
Type:
gint
The value which
gtk_radio_action_get_current_value()
should return if this action is selected.
Return value
Type: GtkRadioAction
A new GtkRadioAction
.
The caller of the function takes ownership of the data, and is responsible for freeing it. |