summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk/gtkcssstyleproperty.c16
-rw-r--r--gtk/gtkcssstylepropertyimpl.c4
2 files changed, 4 insertions, 16 deletions
diff --git a/gtk/gtkcssstyleproperty.c b/gtk/gtkcssstyleproperty.c
index 9a3959d582..df8dc09c76 100644
--- a/gtk/gtkcssstyleproperty.c
+++ b/gtk/gtkcssstyleproperty.c
@@ -274,20 +274,8 @@ gtk_css_style_property_real_parse_value (GtkCssStyleProperty *property,
GtkCssParser *parser,
GFile *base)
{
- GValue value = G_VALUE_INIT;
- GtkCssValue *result;
-
- g_value_init (&value, _gtk_css_style_property_get_specified_type (property));
- if (!_gtk_css_style_parse_value (&value, parser, base))
- {
- g_value_unset (&value);
- return NULL;
- }
-
- result = _gtk_css_value_new_from_gvalue (&value);
- g_value_unset (&value);
-
- return result;
+ g_assert_not_reached ();
+ return NULL;
}
static void
diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c
index 6303de58a1..66d40d5b50 100644
--- a/gtk/gtkcssstylepropertyimpl.c
+++ b/gtk/gtkcssstylepropertyimpl.c
@@ -65,6 +65,7 @@ gtk_css_style_property_register (const char * name,
GtkCssStyleProperty *node;
g_assert (initial_value != NULL);
+ g_assert (parse_value != NULL);
node = g_object_new (GTK_TYPE_CSS_STYLE_PROPERTY,
"value-type", value_type,
@@ -74,8 +75,7 @@ gtk_css_style_property_register (const char * name,
"name", name,
NULL);
- if (parse_value)
- node->parse_value = parse_value;
+ node->parse_value = parse_value;
if (print_value)
node->print_value = print_value;
if (compute_value)