summaryrefslogtreecommitdiff
path: root/gtk/gtkradiobutton.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-10-19 18:21:56 +0200
committerJavier Jardón <jjardon@gnome.org>2010-10-26 06:07:42 +0200
commit49446ed57c68dc533fd086646f8061c1a41f7ba1 (patch)
treeb13ebb34793a6893021218ae864c97ac60d5f019 /gtk/gtkradiobutton.c
parenta93e79f8d2c4ec609f88330527a53811200578da (diff)
downloadgtk+-49446ed57c68dc533fd086646f8061c1a41f7ba1.tar.gz
gtktogglebutton: Add _gtk_toggle_button_set_active private accessor
It's needed by gtkradiobutton
Diffstat (limited to 'gtk/gtkradiobutton.c')
-rw-r--r--gtk/gtkradiobutton.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c
index 6eb8f845cd..7a51b9525d 100644
--- a/gtk/gtkradiobutton.c
+++ b/gtk/gtkradiobutton.c
@@ -207,7 +207,7 @@ gtk_radio_button_init (GtkRadioButton *radio_button)
gtk_widget_set_has_window (GTK_WIDGET (radio_button), FALSE);
gtk_widget_set_receives_default (GTK_WIDGET (radio_button), FALSE);
- GTK_TOGGLE_BUTTON (radio_button)->active = TRUE;
+ _gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radio_button), TRUE);
GTK_BUTTON (radio_button)->depress_on_activate = FALSE;
@@ -819,14 +819,16 @@ gtk_radio_button_clicked (GtkButton *button)
else
{
toggled = TRUE;
- toggle_button->active = !toggle_button->active;
+ _gtk_toggle_button_set_active (toggle_button,
+ !gtk_toggle_button_get_active (toggle_button));
new_state = (button->in_button ? GTK_STATE_PRELIGHT : GTK_STATE_NORMAL);
}
}
else
{
toggled = TRUE;
- toggle_button->active = !toggle_button->active;
+ _gtk_toggle_button_set_active (toggle_button,
+ !gtk_toggle_button_get_active (toggle_button));
tmp_list = priv->group;
while (tmp_list)