From fb643c1c1255a867ec37d5e6d087782295cbba69 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 25 Nov 2012 03:34:08 +0100 Subject: 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. --- gtk/gtkmodifierstyle.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gtk/gtkmodifierstyle.c') diff --git a/gtk/gtkmodifierstyle.c b/gtk/gtkmodifierstyle.c index 9c12191566..4d3cc35194 100644 --- a/gtk/gtkmodifierstyle.c +++ b/gtk/gtkmodifierstyle.c @@ -256,12 +256,16 @@ _gtk_modifier_style_map_color (GtkModifierStyle *style, priv = style->priv; + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; + if (color) symbolic_color = gtk_symbolic_color_new_literal (color); gtk_style_properties_map_color (priv->style, name, symbolic_color); + G_GNUC_END_IGNORE_DEPRECATIONS; + g_signal_emit (style, signals[CHANGED], 0); _gtk_style_provider_private_changed (GTK_STYLE_PROVIDER_PRIVATE (style)); } -- cgit v1.2.1