[gtk+/wip/css: 85/97] styleproperty: Don't register a property parse func
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/css: 85/97] styleproperty: Don't register a property parse func
- Date: Mon, 2 Jan 2012 15:00:36 +0000 (UTC)
commit f41bd1c93fcfd7995c6e1c1e34878a0a524f1bcc
Author: Benjamin Otte <otte redhat com>
Date: Mon Jan 2 10:29:13 2012 +0100
styleproperty: Don't register a property parse func
Nobody does that anymore.
gtk/gtkcssstylepropertyimpl.c | 21 ---------------------
1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c
index 61ab4d5..de5ec4e 100644
--- a/gtk/gtkcssstylepropertyimpl.c
+++ b/gtk/gtkcssstylepropertyimpl.c
@@ -46,7 +46,6 @@
static void
_gtk_style_property_register (GParamSpec *pspec,
GtkStylePropertyFlags flags,
- GtkStylePropertyParser property_parse_func,
GtkStyleParseFunc parse_func,
GtkStylePrintFunc print_func,
const GValue * initial_value)
@@ -85,7 +84,6 @@ _gtk_style_property_register (GParamSpec *pspec,
NULL);
g_assert (node->value_type == pspec->value_type);
GTK_CSS_STYLE_PROPERTY (node)->pspec = pspec;
- node->property_parse_func = property_parse_func;
node->parse_func = parse_func;
node->print_func = print_func;
@@ -349,7 +347,6 @@ _gtk_css_style_property_init_properties (void)
GTK_STYLE_PROPERTY_INHERIT,
NULL,
NULL,
- NULL,
&value);
rgba_init (&rgba, 0, 0, 0, 0);
g_value_set_boxed (&value, &rgba);
@@ -360,7 +357,6 @@ _gtk_css_style_property_init_properties (void)
0,
NULL,
NULL,
- NULL,
&value);
g_value_unset (&value);
@@ -371,7 +367,6 @@ _gtk_css_style_property_init_properties (void)
"Font family",
G_TYPE_STRV, 0),
GTK_STYLE_PROPERTY_INHERIT,
- NULL,
font_family_parse,
font_family_value_print,
&value);
@@ -384,7 +379,6 @@ _gtk_css_style_property_init_properties (void)
GTK_STYLE_PROPERTY_INHERIT,
NULL,
NULL,
- NULL,
NULL);
_gtk_style_property_register (g_param_spec_enum ("font-variant",
"Font variant",
@@ -394,7 +388,6 @@ _gtk_css_style_property_init_properties (void)
GTK_STYLE_PROPERTY_INHERIT,
NULL,
NULL,
- NULL,
NULL);
/* xxx: need to parse this properly, ie parse the numbers */
_gtk_style_property_register (g_param_spec_enum ("font-weight",
@@ -405,7 +398,6 @@ _gtk_css_style_property_init_properties (void)
GTK_STYLE_PROPERTY_INHERIT,
NULL,
NULL,
- NULL,
NULL);
g_value_init (&value, G_TYPE_DOUBLE);
g_value_set_double (&value, 10);
@@ -416,7 +408,6 @@ _gtk_css_style_property_init_properties (void)
GTK_STYLE_PROPERTY_INHERIT,
NULL,
NULL,
- NULL,
&value);
g_value_unset (&value);
@@ -427,7 +418,6 @@ _gtk_css_style_property_init_properties (void)
GTK_STYLE_PROPERTY_INHERIT,
NULL,
NULL,
- NULL,
NULL);
_gtk_style_property_register (g_param_spec_boxed ("icon-shadow",
@@ -437,7 +427,6 @@ _gtk_css_style_property_init_properties (void)
GTK_STYLE_PROPERTY_INHERIT,
NULL,
NULL,
- NULL,
NULL);
gtk_style_properties_register_property (NULL,
@@ -513,7 +502,6 @@ _gtk_css_style_property_init_properties (void)
"Border radius of top left corner, in pixels",
GTK_TYPE_CSS_BORDER_CORNER_RADIUS, 0),
0,
- NULL,
border_corner_radius_value_parse,
border_corner_radius_value_print,
&value);
@@ -522,7 +510,6 @@ _gtk_css_style_property_init_properties (void)
"Border radius of top right corner, in pixels",
GTK_TYPE_CSS_BORDER_CORNER_RADIUS, 0),
0,
- NULL,
border_corner_radius_value_parse,
border_corner_radius_value_print,
&value);
@@ -531,7 +518,6 @@ _gtk_css_style_property_init_properties (void)
"Border radius of bottom right corner, in pixels",
GTK_TYPE_CSS_BORDER_CORNER_RADIUS, 0),
0,
- NULL,
border_corner_radius_value_parse,
border_corner_radius_value_print,
&value);
@@ -540,7 +526,6 @@ _gtk_css_style_property_init_properties (void)
"Border radius of bottom left corner, in pixels",
GTK_TYPE_CSS_BORDER_CORNER_RADIUS, 0),
0,
- NULL,
border_corner_radius_value_parse,
border_corner_radius_value_print,
&value);
@@ -573,7 +558,6 @@ _gtk_css_style_property_init_properties (void)
0,
NULL,
NULL,
- NULL,
&value);
_gtk_style_property_register (g_param_spec_boxed ("border-right-color",
"Border right color",
@@ -582,7 +566,6 @@ _gtk_css_style_property_init_properties (void)
0,
NULL,
NULL,
- NULL,
&value);
_gtk_style_property_register (g_param_spec_boxed ("border-bottom-color",
"Border bottom color",
@@ -591,7 +574,6 @@ _gtk_css_style_property_init_properties (void)
0,
NULL,
NULL,
- NULL,
&value);
_gtk_style_property_register (g_param_spec_boxed ("border-left-color",
"Border left color",
@@ -600,7 +582,6 @@ _gtk_css_style_property_init_properties (void)
0,
NULL,
NULL,
- NULL,
&value);
g_value_unset (&value);
@@ -638,7 +619,6 @@ _gtk_css_style_property_init_properties (void)
0,
NULL,
NULL,
- NULL,
&value);
g_value_unset (&value);
gtk_style_properties_register_property (NULL,
@@ -658,7 +638,6 @@ _gtk_css_style_property_init_properties (void)
"Key bindings",
G_TYPE_PTR_ARRAY, 0),
0,
- NULL,
bindings_value_parse,
bindings_value_print,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]