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/gtkflowbox.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/gtkflowbox.c')
-rw-r--r-- | gtk/gtkflowbox.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c index e8374e9031..9e9e840145 100644 --- a/gtk/gtkflowbox.c +++ b/gtk/gtkflowbox.c @@ -2614,7 +2614,9 @@ gtk_flow_box_draw (GtkWidget *widget, cairo_path_destroy (path); state = gtk_widget_get_state_flags (widget); +G_GNUC_BEGIN_IGNORE_DEPRECATIONS gtk_style_context_get_border_color (context, state, &border_color); +G_GNUC_END_IGNORE_DEPRECATIONS gtk_style_context_get_border (context, state, &border); cairo_set_line_width (cr, border.left); |