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.
This commit is contained in:
parent
b1ac4f91d3
commit
c1a063e1a4
@ -572,7 +572,6 @@ gtk_real_check_button_draw_indicator (GtkCheckButton *check_button,
|
|||||||
gtk_style_context_save (context);
|
gtk_style_context_save (context);
|
||||||
gtk_style_context_set_state (context, state);
|
gtk_style_context_set_state (context, state);
|
||||||
|
|
||||||
if (state & GTK_STATE_FLAG_PRELIGHT)
|
|
||||||
gtk_render_background (context, cr,
|
gtk_render_background (context, cr,
|
||||||
border_width, border_width,
|
border_width, border_width,
|
||||||
allocation.width - (2 * border_width),
|
allocation.width - (2 * border_width),
|
||||||
|
@ -871,7 +871,6 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button,
|
|||||||
gtk_style_context_save (context);
|
gtk_style_context_save (context);
|
||||||
gtk_style_context_set_state (context, state);
|
gtk_style_context_set_state (context, state);
|
||||||
|
|
||||||
if (state & GTK_STATE_FLAG_PRELIGHT)
|
|
||||||
gtk_render_background (context, cr,
|
gtk_render_background (context, cr,
|
||||||
border_width, border_width,
|
border_width, border_width,
|
||||||
allocation.width - (2 * border_width),
|
allocation.width - (2 * border_width),
|
||||||
|
Loading…
Reference in New Issue
Block a user