Skip to content
Permalink
Browse files

eel-editable-label: avoid deprecated gtk_style_context_set_background

  • Loading branch information...
sc0w authored and raveit65 committed May 10, 2018
1 parent c4777b0 commit 1aff6ea8460ff0bf962d30299fa50335d0b5e170
Showing with 0 additions and 15 deletions.
  1. +0 −15 eel/eel-editable-label.c
@@ -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
@@ -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);
@@ -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));
}

0 comments on commit 1aff6ea

Please sign in to comment.
You can’t perform that action at this time.