From d8f3a162c84269e08256993e2c82796a9d37145f Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 3 Sep 2010 17:09:00 +0200 Subject: [PATCH] style: Use gtk_widget_get_state() for the entry background New code sets the entry background to GTK_STATE_ACTIVE when it has focus and the active color in the default theme looks rather bad. --- gtk/gtkstyle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c index e8b13f372e..d4fa6594a9 100644 --- a/gtk/gtkstyle.c +++ b/gtk/gtkstyle.c @@ -2746,7 +2746,7 @@ gtk_default_draw_flat_box (GtkStyle *style, if (!strcmp ("viewportbin", detail)) gc1 = &style->bg[GTK_STATE_NORMAL]; else if (!strcmp ("entry_bg", detail)) - gc1 = &style->base[state_type]; + gc1 = &style->base[gtk_widget_get_state (widget)]; /* For trees: even rows are base color, odd rows are a shade of * the base color, the sort column is a shade of the original color