diff options
author | Benjamin Otte <otte@redhat.com> | 2012-11-25 03:34:08 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-11-25 03:43:28 +0100 |
commit | fb643c1c1255a867ec37d5e6d087782295cbba69 (patch) | |
tree | 066fd2949ea0b69ecf58ebb296023b41fe49eba8 /gtk/gtkmodifierstyle.c | |
parent | df25349d63392718e720f57a0cfdd4974eec2d0d (diff) | |
download | gtk+-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/gtkmodifierstyle.c')
-rw-r--r-- | gtk/gtkmodifierstyle.c | 4 |
1 files changed, 4 insertions, 0 deletions
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)); } |