From 016a6569238412add67e6e8992f2f8cc42faa644 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 17 Nov 2010 01:04:14 -0500 Subject: [PATCH] Fix prelighting of inconsistent radio and check buttons --- gtk/gtkcheckbutton.c | 2 +- gtk/gtkradiobutton.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c index f07ecf1282..ac565f4367 100644 --- a/gtk/gtkcheckbutton.c +++ b/gtk/gtkcheckbutton.c @@ -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, diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c index 33479503ab..6a5e2095d9 100644 --- a/gtk/gtkradiobutton.c +++ b/gtk/gtkradiobutton.c @@ -947,7 +947,7 @@ gtk_radio_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,