| Top |  |  |  |  | 
| GtkToggleAction * | gtk_toggle_action_new () | 
| void | gtk_toggle_action_toggled () | 
| void | gtk_toggle_action_set_active () | 
| gboolean | gtk_toggle_action_get_active () | 
| void | gtk_toggle_action_set_draw_as_radio () | 
| gboolean | gtk_toggle_action_get_draw_as_radio () | 
GtkToggleAction * gtk_toggle_action_new (const gchar *name,const gchar *label,const gchar *tooltip,const gchar *stock_id);
Creates a new GtkToggleAction object. To add the action to
a GtkActionGroup and set the accelerator for the action,
call gtk_action_group_add_action_with_accel().
| name | A unique name for the action | |
| label | The label displayed in menu items and on buttons, or  | [allow-none] | 
| tooltip | A tooltip for the action, or  | [allow-none] | 
| stock_id | The stock icon to display in widgets representing the
action, or  | 
Since: 2.4
void
gtk_toggle_action_toggled (GtkToggleAction *action);
Emits the "toggled" signal on the toggle action.
Since: 2.4
void gtk_toggle_action_set_active (GtkToggleAction *action,gboolean is_active);
Sets the checked state on the toggle action.
Since: 2.4
gboolean
gtk_toggle_action_get_active (GtkToggleAction *action);
Returns the checked state of the toggle action.
Since: 2.4
void gtk_toggle_action_set_draw_as_radio (GtkToggleAction *action,gboolean draw_as_radio);
Sets whether the action should have proxies like a radio action.
| action | the action object | |
| draw_as_radio | whether the action should have proxies like a radio action | 
Since: 2.4
gboolean
gtk_toggle_action_get_draw_as_radio (GtkToggleAction *action);
Returns whether the action should have proxies like a radio action.
Since: 2.4
“active” property  “active”                   gboolean
If the toggle action should be active in or not.
Owner: GtkToggleAction
Flags: Read / Write
Default value: FALSE
Since: 2.10
“draw-as-radio” property  “draw-as-radio”            gboolean
Whether the proxies for this action look like radio action proxies.
This is an appearance property and thus only applies if
“use-action-appearance” is TRUE.
Owner: GtkToggleAction
Flags: Read / Write
Default value: FALSE
“toggled” signalvoid user_function (GtkToggleAction *toggleaction, gpointer user_data)
Flags: Run First