Make GtkEntry set the style context state.

This commit is contained in:
Carlos Garnacho 2011-01-17 03:54:58 +01:00
parent e28a2695ac
commit 0e77486e91

View File

@ -3506,6 +3506,9 @@ gtk_entry_draw (GtkWidget *widget,
if (gtk_widget_has_focus (widget))
state |= GTK_STATE_FLAG_FOCUSED;
gtk_style_context_save (context);
gtk_style_context_set_state (context, state);
if (gtk_cairo_should_draw_window (cr, gtk_widget_get_window (widget)))
{
/* Draw entry_bg, shadow, progress and focus */
@ -3547,6 +3550,8 @@ gtk_entry_draw (GtkWidget *widget,
}
}
gtk_style_context_restore (context);
return FALSE;
}