summaryrefslogtreecommitdiff
path: root/gtk
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
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')
-rw-r--r--gtk/gtkentry.c3
-rw-r--r--gtk/gtkspinbutton.c3
-rw-r--r--gtk/gtktextdisplay.c3
3 files changed, 0 insertions, 9 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);
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);
diff --git a/gtk/gtktextdisplay.c b/gtk/gtktextdisplay.c
index a145c0346a..7ea85f7d72 100644
--- a/gtk/gtktextdisplay.c
+++ b/gtk/gtktextdisplay.c
@@ -210,9 +210,6 @@ gtk_text_renderer_prepare_run (PangoRenderer *renderer,
{
state |= GTK_STATE_FLAG_SELECTED;
- if (gtk_widget_has_focus (text_renderer->widget))
- state |= GTK_STATE_FLAG_FOCUSED;
-
gtk_style_context_get (context, state,
"color", &fg_rgba,
NULL);