[gtk+] styleproperty: Allow 'transparent' keyword for background-color
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] styleproperty: Allow 'transparent' keyword for background-color
- Date: Mon, 26 Sep 2011 14:00:39 +0000 (UTC)
commit 1e36e40e29ed41ba944e2e5c0a5bb98ee3e03e14
Author: Benjamin Otte <otte redhat com>
Date: Mon Sep 26 15:56:46 2011 +0200
styleproperty: Allow 'transparent' keyword for background-color
gtk/gtkstyleproperty.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c
index a27d077..3528078 100644
--- a/gtk/gtkstyleproperty.c
+++ b/gtk/gtkstyleproperty.c
@@ -1662,9 +1662,9 @@ border_radius_value_print (const GValue *value,
}
static gboolean
-border_color_value_parse (GtkCssParser *parser,
- GFile *base,
- GValue *value)
+transparent_color_value_parse (GtkCssParser *parser,
+ GFile *base,
+ GValue *value)
{
if (_gtk_css_parser_try (parser, "transparent", TRUE))
{
@@ -2569,7 +2569,7 @@ gtk_style_property_init (void)
NULL,
NULL,
NULL,
- NULL,
+ transparent_color_value_parse,
NULL,
background_color_default_value,
NULL);
@@ -2854,7 +2854,7 @@ gtk_style_property_init (void)
NULL,
NULL,
NULL,
- border_color_value_parse,
+ transparent_color_value_parse,
NULL,
border_color_default_value,
NULL);
@@ -2866,7 +2866,7 @@ gtk_style_property_init (void)
NULL,
NULL,
NULL,
- border_color_value_parse,
+ transparent_color_value_parse,
NULL,
border_color_default_value,
NULL);
@@ -2878,7 +2878,7 @@ gtk_style_property_init (void)
NULL,
NULL,
NULL,
- border_color_value_parse,
+ transparent_color_value_parse,
NULL,
border_color_default_value,
NULL);
@@ -2890,7 +2890,7 @@ gtk_style_property_init (void)
NULL,
NULL,
NULL,
- border_color_value_parse,
+ transparent_color_value_parse,
NULL,
border_color_default_value,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]