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/gtkcssstylefuncs.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/gtkcssstylefuncs.c')
-rw-r--r-- | gtk/gtkcssstylefuncs.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/gtkcssstylefuncs.c b/gtk/gtkcssstylefuncs.c index b19a3e60c0..5b2b5db7b9 100644 --- a/gtk/gtkcssstylefuncs.c +++ b/gtk/gtkcssstylefuncs.c @@ -172,6 +172,8 @@ rgba_value_parse (GtkCssParser *parser, GtkSymbolicColor *symbolic; GdkRGBA rgba; + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; + symbolic = _gtk_css_symbolic_value_new (parser); if (symbolic == NULL) return FALSE; @@ -188,6 +190,8 @@ rgba_value_parse (GtkCssParser *parser, g_value_take_boxed (value, symbolic); } + G_GNUC_END_IGNORE_DEPRECATIONS; + return TRUE; } @@ -254,6 +258,8 @@ color_value_parse (GtkCssParser *parser, GtkSymbolicColor *symbolic; GdkRGBA rgba; + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; + symbolic = _gtk_css_symbolic_value_new (parser); if (symbolic == NULL) return FALSE; @@ -275,6 +281,8 @@ color_value_parse (GtkCssParser *parser, g_value_take_boxed (value, symbolic); } + G_GNUC_END_IGNORE_DEPRECATIONS; + return TRUE; } @@ -353,6 +361,8 @@ symbolic_color_value_print (const GValue *value, { GtkSymbolicColor *symbolic = g_value_get_boxed (value); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; + if (symbolic == NULL) g_string_append (string, "none"); else @@ -361,6 +371,8 @@ symbolic_color_value_print (const GValue *value, g_string_append (string, s); g_free (s); } + + G_GNUC_END_IGNORE_DEPRECATIONS; } static gboolean |