Fix prelighting of inconsistent radio and check buttons

This commit is contained in:
Matthias Clasen
2010-11-17 01:04:14 -05:00
committed by Carlos Garnacho
parent b6776dc116
commit 016a656923
2 changed files with 2 additions and 2 deletions

View File

@ -465,7 +465,7 @@ gtk_real_check_button_draw_indicator (GtkCheckButton *check_button,
if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
x = allocation.width - (indicator_size + x);
if (gtk_widget_get_state (widget) == GTK_STATE_PRELIGHT)
if (gtk_widget_get_state_flags (widget) & GTK_STATE_FLAG_PRELIGHT)
{
gtk_paint_flat_box (style, cr, GTK_STATE_PRELIGHT,