From 5d3106275ac65713c49f708a06e0f33a004c3269 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Fri, 21 Jan 2011 15:38:52 +0100 Subject: 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. --- gtk/gtkentry.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'gtk/gtkentry.c') 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); -- cgit v1.2.1