summaryrefslogtreecommitdiff
path: root/gtk/gtkspinbutton.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/gtkspinbutton.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/gtkspinbutton.c')
-rw-r--r--gtk/gtkspinbutton.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 1d357e38ae..729cc8933e 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -928,9 +928,6 @@ gtk_spin_button_draw (GtkWidget *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);
gtk_style_context_remove_class (context, GTK_STYLE_CLASS_ENTRY);