diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-03-31 15:03:57 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-03-31 15:35:20 -0400 |
commit | 6f5675ef3c60275af8ac62f4ce26fcfedf3c32e4 (patch) | |
tree | 8fe240ed4687ed7b4c058e5b3b783f19351aaf34 /gtk/gtktextdisplay.c | |
parent | 396513183b5ef531a97fea0c72e2c280e07b83cc (diff) | |
download | gtk+-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/gtktextdisplay.c')
-rw-r--r-- | gtk/gtktextdisplay.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gtk/gtktextdisplay.c b/gtk/gtktextdisplay.c index 4e6c49fd16..3f38112c88 100644 --- a/gtk/gtktextdisplay.c +++ b/gtk/gtktextdisplay.c @@ -580,11 +580,9 @@ render_para (GtkTextRenderer *text_renderer, selection_node = gtk_text_view_get_selection_node ((GtkTextView*)text_renderer->widget); gtk_style_context_save_to_node (context, selection_node); -G_GNUC_BEGIN_IGNORE_DEPRECATIONS - gtk_style_context_get_background_color (context, &selection); -G_GNUC_END_IGNORE_DEPRECATIONS + gtk_style_context_get (context, "background-color", &selection, NULL); - gtk_style_context_restore (context); + gtk_style_context_restore (context); do { @@ -775,9 +773,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS { GdkRGBA color; -G_GNUC_BEGIN_IGNORE_DEPRECATIONS - gtk_style_context_get_background_color (context, &color); -G_GNUC_END_IGNORE_DEPRECATIONS + gtk_style_context_get (context, "background-color", &color, NULL); gdk_cairo_set_source_rgba (cr, &color); |