Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
eel-editable-label: avoid deprecated gtk_style_context_set_background
  • Loading branch information
sc0w authored and raveit65 committed May 13, 2018
1 parent c4777b0 commit 1aff6ea
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions eel/eel-editable-label.c
Expand Up @@ -1230,17 +1230,6 @@ eel_editable_label_style_updated (GtkWidget *widget)

/* We have to clear the layout, fonts etc. may have changed */
eel_editable_label_recompute (label);

/* Set the background, foreground and cursor colors based on
* the new theme selected.
*/
if (gtk_widget_get_realized (widget))
{
GtkStyleContext *style;

style = gtk_widget_get_style_context (widget);
gtk_style_context_set_background (style, gtk_widget_get_window (widget));
}
}

static void
Expand Down Expand Up @@ -1667,7 +1656,6 @@ eel_editable_label_realize (GtkWidget *widget)
gint attributes_mask;
GtkAllocation allocation;
GdkWindow *window;
GtkStyleContext *style;

gtk_widget_set_realized (widget, TRUE);
label = EEL_EDITABLE_LABEL (widget);
Expand Down Expand Up @@ -1702,9 +1690,6 @@ eel_editable_label_realize (GtkWidget *widget)

g_object_unref (attributes.cursor);

style = gtk_widget_get_style_context (widget);
gtk_style_context_set_background (style, gtk_widget_get_window (widget));

gtk_im_context_set_client_window (label->im_context, gtk_widget_get_window (widget));
}

Expand Down

0 comments on commit 1aff6ea

Please sign in to comment.