summaryrefslogtreecommitdiff
path: root/gtk/gtkentry.c
diff options
context:
space:
mode:
authorMichael Natterer <mitch@gimp.org>2011-01-21 15:38:52 +0100
committerMichael Natterer <mitch@gimp.org>2011-01-21 15:38:52 +0100
commit5d3106275ac65713c49f708a06e0f33a004c3269 (patch)
tree75dd846fc1c1279b276a2e5762fab917e93ca68d /gtk/gtkentry.c
parent6e553324f9081b5ca002f7e26269ee23268245fe (diff)
downloadgtk+-5d3106275ac65713c49f708a06e0f33a004c3269.tar.gz
gtk: no need to add GTK_STYLE_FLAG_FOCUSED to the widget's state flags
because they correctly contain that flag now if the widget has focus.
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r--gtk/gtkentry.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index f05cc2c6fc..b21146c723 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -3500,9 +3500,6 @@ gtk_entry_draw (GtkWidget *widget,
context = gtk_widget_get_style_context (widget);
state = gtk_widget_get_state_flags (widget);
- if (gtk_widget_has_focus (widget))
- state |= GTK_STATE_FLAG_FOCUSED;
-
gtk_style_context_save (context);
gtk_style_context_set_state (context, state);