summaryrefslogtreecommitdiff
path: root/eel/eel-editable-label.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-05-10 17:06:45 +0200
committerraveit65 <[email protected]>2018-05-13 10:39:31 +0200
commit1aff6ea8460ff0bf962d30299fa50335d0b5e170 (patch)
treee6d9769b1688b5a89d532d0e7ec1a0a34d24a672 /eel/eel-editable-label.c
parentc4777b09e3e2b2184895c828c05cb9f1e290fd31 (diff)
downloadcaja-1aff6ea8460ff0bf962d30299fa50335d0b5e170.tar.bz2
caja-1aff6ea8460ff0bf962d30299fa50335d0b5e170.tar.xz
eel-editable-label: avoid deprecated gtk_style_context_set_background
Diffstat (limited to 'eel/eel-editable-label.c')
-rw-r--r--eel/eel-editable-label.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c
index c3f84376..3f14745f 100644
--- a/eel/eel-editable-label.c
+++ b/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));
}