diff options
author | Benjamin Otte <otte@redhat.com> | 2014-10-03 05:52:49 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2014-10-03 06:18:06 +0200 |
commit | 91467a45fc57d429b6d3eb91b6f8c2f3fa6c9654 (patch) | |
tree | 7637079c55d521809b8e3d7b505c77be14492bdb /gtk/gtktextdisplay.c | |
parent | 39453478abc5aafe3801471d8efe5b800fa7f5cf (diff) | |
download | gtk+-91467a45fc57d429b6d3eb91b6f8c2f3fa6c9654.tar.gz |
stylecontext: Deprecate functions
- gtk_style_context_get_background_color()
- gtk_style_context_get_border_color()
Those functions shouldn't be used anymore, because they don't represent
anything from the CSS styling we support. The background color often
isn't used due to background images and there are actually 4 different
border colors (1 for each side) - if there isn't also a border image in
use.
Diffstat (limited to 'gtk/gtktextdisplay.c')
-rw-r--r-- | gtk/gtktextdisplay.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtktextdisplay.c b/gtk/gtktextdisplay.c index 9e8fceac5b..420db81fff 100644 --- a/gtk/gtktextdisplay.c +++ b/gtk/gtktextdisplay.c @@ -591,7 +591,9 @@ render_para (GtkTextRenderer *text_renderer, state |= GTK_STATE_FLAG_SELECTED; +G_GNUC_BEGIN_IGNORE_DEPRECATIONS gtk_style_context_get_background_color (context, state, &selection); +G_GNUC_END_IGNORE_DEPRECATIONS do { @@ -783,7 +785,9 @@ render_para (GtkTextRenderer *text_renderer, GdkRGBA color; state = gtk_widget_get_state_flags (text_renderer->widget); +G_GNUC_BEGIN_IGNORE_DEPRECATIONS gtk_style_context_get_background_color (context, state, &color); +G_GNUC_END_IGNORE_DEPRECATIONS gdk_cairo_set_source_rgba (cr, &color); |