summaryrefslogtreecommitdiff
path: root/gtk/gtkradiobutton.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-08-15 16:58:39 +0200
committerBenjamin Otte <otte@redhat.com>2014-08-16 16:34:15 +0200
commitcd349dcd48c9e71d81e56a0810d0f4f5cf5e9cd7 (patch)
treeaf768300671f2ff55b937a29b69ae7d280e7d09b /gtk/gtkradiobutton.c
parent65cc3630c883ef2945d5067d39b440763a379822 (diff)
downloadgtk+-cd349dcd48c9e71d81e56a0810d0f4f5cf5e9cd7.tar.gz
button: Handle :checked in gtktogglebutton.c
Don't try to handle it elsewhere.
Diffstat (limited to 'gtk/gtkradiobutton.c')
-rw-r--r--gtk/gtkradiobutton.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c
index 131348a939..e4a01a59c9 100644
--- a/gtk/gtkradiobutton.c
+++ b/gtk/gtkradiobutton.c
@@ -209,8 +209,6 @@ gtk_radio_button_init (GtkRadioButton *radio_button)
_gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radio_button), TRUE);
priv->group = g_slist_prepend (NULL, radio_button);
-
- gtk_widget_set_state_flags (GTK_WIDGET (radio_button), GTK_STATE_FLAG_CHECKED, TRUE);
}
static void
@@ -815,11 +813,6 @@ gtk_radio_button_clicked (GtkButton *button)
if (toggled)
{
- if (gtk_toggle_button_get_active (toggle_button))
- gtk_widget_set_state_flags (GTK_WIDGET (button), GTK_STATE_FLAG_CHECKED, FALSE);
- else
- gtk_widget_unset_state_flags (GTK_WIDGET (button), GTK_STATE_FLAG_CHECKED);
-
gtk_toggle_button_toggled (toggle_button);
g_object_notify (G_OBJECT (toggle_button), "active");
@@ -866,15 +859,11 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button,
state &= ~(GTK_STATE_FLAG_INCONSISTENT |
GTK_STATE_FLAG_ACTIVE |
- GTK_STATE_FLAG_CHECKED |
GTK_STATE_FLAG_PRELIGHT);
if (gtk_toggle_button_get_inconsistent (toggle_button))
state |= GTK_STATE_FLAG_INCONSISTENT;
- if (gtk_toggle_button_get_active (toggle_button))
- state |= GTK_STATE_FLAG_CHECKED;
-
if (button->priv->activate_timeout ||
(button->priv->button_down && button->priv->in_button))
state |= GTK_STATE_FLAG_ACTIVE;