summaryrefslogtreecommitdiff
path: root/gtk/gtkradiobutton.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-08-17 00:58:04 +0200
committerBenjamin Otte <otte@redhat.com>2014-08-17 00:58:04 +0200
commitc1a063e1a43b20fe516b044e3a6a43812d7dd18b (patch)
tree5b4b23dd42b4d363993702c840d01b61e394e79e /gtk/gtkradiobutton.c
parentb1ac4f91d39f1863f54ba2269ed03e45f90f7a3d (diff)
downloadgtk+-c1a063e1a43b20fe516b044e3a6a43812d7dd18b.tar.gz
checkbutton: Draw background unconditionally
We want to draw backgrounds always, not just on prelight. Themes can decide to only set a background during prelight themselves.
Diffstat (limited to 'gtk/gtkradiobutton.c')
-rw-r--r--gtk/gtkradiobutton.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c
index ec15635018..69aab76f54 100644
--- a/gtk/gtkradiobutton.c
+++ b/gtk/gtkradiobutton.c
@@ -871,11 +871,10 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button,
gtk_style_context_save (context);
gtk_style_context_set_state (context, state);
- if (state & GTK_STATE_FLAG_PRELIGHT)
- gtk_render_background (context, cr,
- border_width, border_width,
- allocation.width - (2 * border_width),
- allocation.height - (2 * border_width));
+ gtk_render_background (context, cr,
+ border_width, border_width,
+ allocation.width - (2 * border_width),
+ allocation.height - (2 * border_width));
gtk_style_context_add_class (context, GTK_STYLE_CLASS_RADIO);