diff options
author | Benjamin Otte <otte@redhat.com> | 2011-12-31 23:20:44 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-01-09 18:37:53 +0100 |
commit | f5fafb18c994106362b33ac990dde9030a67cd26 (patch) | |
tree | 5c053a420f973739c3be0f995ebc3ee52d5941a2 /gtk/gtkstyleproperty.c | |
parent | 36e1bcac3c1479a2327b5420124fe59fb2fec8b6 (diff) | |
download | gtk+-f5fafb18c994106362b33ac990dde9030a67cd26.tar.gz |
css: 'transparent' is a valid color everywhere
Diffstat (limited to 'gtk/gtkstyleproperty.c')
-rw-r--r-- | gtk/gtkstyleproperty.c | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c index 3543952fa9..acc8f91601 100644 --- a/gtk/gtkstyleproperty.c +++ b/gtk/gtkstyleproperty.c @@ -1593,23 +1593,6 @@ border_corner_radius_value_print (const GValue *value, } } -static gboolean -transparent_color_value_parse (GtkCssParser *parser, - GFile *base, - GValue *value) -{ - if (_gtk_css_parser_try (parser, "transparent", TRUE)) - { - GdkRGBA transparent = { 0, 0, 0, 0 }; - - g_value_set_boxed (value, &transparent); - - return TRUE; - } - - return rgba_value_parse (parser, base, value); -} - /*** API ***/ static void @@ -2121,7 +2104,7 @@ gtk_style_property_init_properties (void) GDK_TYPE_RGBA, 0), 0, NULL, - transparent_color_value_parse, + NULL, NULL, &value); g_value_unset (&value); @@ -2331,7 +2314,7 @@ gtk_style_property_init_properties (void) GDK_TYPE_RGBA, 0), 0, NULL, - transparent_color_value_parse, + NULL, NULL, &value); _gtk_style_property_register (g_param_spec_boxed ("border-right-color", @@ -2340,7 +2323,7 @@ gtk_style_property_init_properties (void) GDK_TYPE_RGBA, 0), 0, NULL, - transparent_color_value_parse, + NULL, NULL, &value); _gtk_style_property_register (g_param_spec_boxed ("border-bottom-color", @@ -2349,7 +2332,7 @@ gtk_style_property_init_properties (void) GDK_TYPE_RGBA, 0), 0, NULL, - transparent_color_value_parse, + NULL, NULL, &value); _gtk_style_property_register (g_param_spec_boxed ("border-left-color", @@ -2358,7 +2341,7 @@ gtk_style_property_init_properties (void) GDK_TYPE_RGBA, 0), 0, NULL, - transparent_color_value_parse, + NULL, NULL, &value); g_value_unset (&value); |