summaryrefslogtreecommitdiff
path: root/gtk/gtkstylecontext.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-11-25 03:34:08 +0100
committerBenjamin Otte <otte@redhat.com>2012-11-25 03:43:28 +0100
commitfb643c1c1255a867ec37d5e6d087782295cbba69 (patch)
tree066fd2949ea0b69ecf58ebb296023b41fe49eba8 /gtk/gtkstylecontext.c
parentdf25349d63392718e720f57a0cfdd4974eec2d0d (diff)
downloadgtk+-fb643c1c1255a867ec37d5e6d087782295cbba69.tar.gz
symboliccolor: Deprecate
Symbolic colors are an implementation detail of the CSS engine and have been superceded by GtkCssColorValue. We don't want them clobbering the public API. In particular because the only use I could find in the public API is people using it to shade colors.
Diffstat (limited to 'gtk/gtkstylecontext.c')
-rw-r--r--gtk/gtkstylecontext.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index b74163ea15..46822e27dc 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -2283,6 +2283,8 @@ _gtk_style_context_peek_style_property (GtkStyleContext *context,
widget_path,
state, pspec, &pcache->value))
{
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
/* Resolve symbolic colors to GdkColor/GdkRGBA */
if (G_VALUE_TYPE (&pcache->value) == GTK_TYPE_SYMBOLIC_COLOR)
{
@@ -2319,6 +2321,8 @@ _gtk_style_context_peek_style_property (GtkStyleContext *context,
gtk_symbolic_color_unref (color);
}
+ G_GNUC_END_IGNORE_DEPRECATIONS;
+
if (priv->widget)
gtk_widget_path_free (widget_path);