summaryrefslogtreecommitdiff
path: root/gtk/gtktextutil.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-10-03 05:52:49 +0200
committerBenjamin Otte <otte@redhat.com>2014-10-03 06:18:06 +0200
commit91467a45fc57d429b6d3eb91b6f8c2f3fa6c9654 (patch)
tree7637079c55d521809b8e3d7b505c77be14492bdb /gtk/gtktextutil.c
parent39453478abc5aafe3801471d8efe5b800fa7f5cf (diff)
downloadgtk+-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/gtktextutil.c')
-rw-r--r--gtk/gtktextutil.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtktextutil.c b/gtk/gtktextutil.c
index 32b41ae37b..2ccd48c080 100644
--- a/gtk/gtktextutil.c
+++ b/gtk/gtktextutil.c
@@ -270,7 +270,9 @@ gtk_text_view_set_attributes_from_style (GtkTextView *text_view,
context = gtk_widget_get_style_context (GTK_WIDGET (text_view));
state = gtk_widget_get_state_flags (GTK_WIDGET (text_view));
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_style_context_get_background_color (context, state, &bg_color);
+G_GNUC_END_IGNORE_DEPRECATIONS
gtk_style_context_get_color (context, state, &fg_color);
values->appearance.bg_color.red = CLAMP (bg_color.red * 65535. + 0.5, 0, 65535);