summaryrefslogtreecommitdiff
path: root/gtk/gtkradiobutton.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-08-14 05:14:36 +0200
committerBenjamin Otte <otte@redhat.com>2014-08-16 16:34:14 +0200
commit1abe9237408e9ae65db91cc0b9593207d548adf6 (patch)
tree1407b2124b5ae288d14e0e3288b95db30137bb20 /gtk/gtkradiobutton.c
parentbb069b781b22cae0101a7a466bb03b460fb5c651 (diff)
downloadgtk+-1abe9237408e9ae65db91cc0b9593207d548adf6.tar.gz
css: Do inconsistent checked states right
In HTML5, both pseudoclasses apply. So we do the same thing in our widgets. https://bugzilla.gnome.org/show_bug.cgi?id=733967
Diffstat (limited to 'gtk/gtkradiobutton.c')
-rw-r--r--gtk/gtkradiobutton.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c
index abf4e3cddd..6d3dec3a24 100644
--- a/gtk/gtkradiobutton.c
+++ b/gtk/gtkradiobutton.c
@@ -873,7 +873,8 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button,
if (gtk_toggle_button_get_inconsistent (toggle_button))
state |= GTK_STATE_FLAG_INCONSISTENT;
- else if (gtk_toggle_button_get_active (toggle_button))
+
+ if (gtk_toggle_button_get_active (toggle_button))
state |= GTK_STATE_FLAG_CHECKED;
if (button->priv->activate_timeout ||