]> Pileus Git - ~andy/gtk/commitdiff
shorthand: Don't require pack/unpack functions
authorBenjamin Otte <otte@redhat.com>
Wed, 4 Jan 2012 03:04:15 +0000 (04:04 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 9 Jan 2012 17:37:57 +0000 (18:37 +0100)
When using G_TYPE_NONE as the shorthand's type, the property is not
gettable/settable using regular APIs, so it essentially doesn't exist.
As it should be.

gtk/gtkcssshorthandpropertyimpl.c

index b1f4bac52c92bb3703483b5bd11cac5a78415358..c394ffb18cbf19716f3fde49f5d8ef5bd810065a 100644 (file)
@@ -616,9 +616,6 @@ _gtk_css_shorthand_property_register (const char                        *name,
 {
   GtkStyleProperty *node;
 
-  g_return_if_fail (pack_func != NULL);
-  g_return_if_fail (unpack_func != NULL);
-
   node = g_object_new (GTK_TYPE_CSS_SHORTHAND_PROPERTY,
                        "name", name,
                        "value-type", value_type,