summaryrefslogtreecommitdiff
path: root/gtk/gtktextutil.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-03-31 15:03:57 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-03-31 15:35:20 -0400
commit6f5675ef3c60275af8ac62f4ce26fcfedf3c32e4 (patch)
tree8fe240ed4687ed7b4c058e5b3b783f19351aaf34 /gtk/gtktextutil.c
parent396513183b5ef531a97fea0c72e2c280e07b83cc (diff)
downloadgtk+-6f5675ef3c60275af8ac62f4ce26fcfedf3c32e4.tar.gz
Stop using deprecated style context api
Use the non-deprecated one it wraps, instead. Yes, this is cheating...
Diffstat (limited to 'gtk/gtktextutil.c')
-rw-r--r--gtk/gtktextutil.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtktextutil.c b/gtk/gtktextutil.c
index 9858bec5ad..651b92abd9 100644
--- a/gtk/gtktextutil.c
+++ b/gtk/gtktextutil.c
@@ -250,9 +250,7 @@ set_attributes_from_style (GtkStyleContext *context,
if (!values->appearance.fg_rgba)
values->appearance.fg_rgba = gdk_rgba_copy (&black);
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
- gtk_style_context_get_background_color (context, values->appearance.bg_rgba);
-G_GNUC_END_IGNORE_DEPRECATIONS
+ gtk_style_context_get (context, "background-color", values->appearance.bg_rgba, NULL);
gtk_style_context_get_color (context, values->appearance.fg_rgba);
if (values->font)