Commit 5d310627 authored by Michael Natterer's avatar Michael Natterer 😴

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.
parent 6e553324
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment