[gtk+/wip/css: 131/154] shorthand: Don't require pack/unpack functions
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/css: 131/154] shorthand: Don't require pack/unpack functions
- Date: Sat, 7 Jan 2012 02:32:07 +0000 (UTC)
commit fa41c2abe3ad37d135b9fe4e37f17cd0525e2973
Author: Benjamin Otte <otte redhat com>
Date: Wed Jan 4 04:04:15 2012 +0100
shorthand: Don't require pack/unpack functions
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 | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcssshorthandpropertyimpl.c b/gtk/gtkcssshorthandpropertyimpl.c
index b1f4bac..c394ffb 100644
--- a/gtk/gtkcssshorthandpropertyimpl.c
+++ b/gtk/gtkcssshorthandpropertyimpl.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]