summaryrefslogtreecommitdiff
path: root/gtk/gtkcssstyleproperty.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-03-27 15:58:22 +0200
committerBenjamin Otte <otte@redhat.com>2012-04-17 08:59:13 +0200
commit75a5f043526dc3023c2501b6c3e818a6e387c502 (patch)
tree36bb0d773d2ffee6ce171aedd9bcb2ffc4c2e8e9 /gtk/gtkcssstyleproperty.c
parenta5d001b2ba0a3fb43219944e0f8afa193e573693 (diff)
downloadgtk+-75a5f043526dc3023c2501b6c3e818a6e387c502.tar.gz
styleproperty: Remove default parse function
... and assert every style property brings its own.
Diffstat (limited to 'gtk/gtkcssstyleproperty.c')
-rw-r--r--gtk/gtkcssstyleproperty.c16
1 files changed, 2 insertions, 14 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