summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2011-12-29 12:45:15 +0100
committerNick Schermer <nick@xfce.org>2011-12-29 17:33:47 +0100
commite835c3b533d7c15e4329d83a767660b6079f147d (patch)
tree1359c4cd3af8b37b14eef332088711aab224289a /common
parent8139a4c5532a50b1f73893bd7842e309e6022ffc (diff)
downloadxfce4-panel-e835c3b533d7c15e4329d83a767660b6079f147d.tar.gz
Common: Improve Xfconf property mismatch warning.
Diffstat (limited to 'common')
-rw-r--r--common/panel-xfconf.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/common/panel-xfconf.c b/common/panel-xfconf.c
index 0aee653b..3916014c 100644
--- a/common/panel-xfconf.c
+++ b/common/panel-xfconf.c
@@ -49,7 +49,13 @@ panel_properties_store_value (XfconfChannel *channel,
/* check if the types match */
pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (object), object_property);
panel_assert (pspec != NULL);
- panel_assert (G_PARAM_SPEC_VALUE_TYPE (pspec) == xfconf_property_type);
+ if (G_PARAM_SPEC_VALUE_TYPE (pspec) != xfconf_property_type)
+ {
+ g_critical ("Object and Xfconf properties don't match! %s::%s. %s != %s",
+ G_OBJECT_TYPE_NAME (object), xfconf_property,
+ g_type_name (xfconf_property_type),
+ g_type_name (G_PARAM_SPEC_VALUE_TYPE (pspec)));
+ }
#endif
/* write the property to the xfconf channel */