diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2011-01-17 03:54:58 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2011-01-17 04:43:23 +0100 |
commit | 0e77486e91fe5b0c3cdc2688a6323bb0a27b9641 (patch) | |
tree | 47a9bbecdfbfe0d49169184b6ab082e0553b2be0 /gtk/gtkentry.c | |
parent | e28a2695acdbbe7f6118b402a20b79e789d14873 (diff) | |
download | gtk+-0e77486e91fe5b0c3cdc2688a6323bb0a27b9641.tar.gz |
Make GtkEntry set the style context state.
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r-- | gtk/gtkentry.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index bb207310f1..0b905db13f 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -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; } |