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.
This commit is contained in:
Benjamin Otte 2010-09-03 17:09:00 +02:00
parent 7e78999034
commit d8f3a162c8

View File

@ -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