summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2012-05-15 20:45:01 +0200
committerNick Schermer <nick@xfce.org>2012-05-15 20:45:01 +0200
commit643a73f8436c884de50c3527286a8d381bb63308 (patch)
tree34da8811ca0f650a0fb562c29701820b7eaec7bf
parent2f9b32103fea0bd0a9b98eca3f4b187ff6f0cb2e (diff)
downloadexo-stephan/gtk3.tar.gz
Add missing property warnings.stephan/gtk3
-rw-r--r--exo/exo-binding.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/exo/exo-binding.c b/exo/exo-binding.c
index 8d5e116..89ab570 100644
--- a/exo/exo-binding.c
+++ b/exo/exo-binding.c
@@ -354,7 +354,20 @@ exo_binding_new_full (GObject *src_object,
g_return_val_if_fail (G_IS_OBJECT (dst_object), NULL);
src_pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (src_object), src_property);
+ if (G_UNLIKELY (src_pspec == NULL))
+ {
+ g_critical ("Object of type '%s' has no property named '%s'",
+ G_OBJECT_TYPE_NAME (src_object), src_property);
+ return NULL;
+ }
+
dst_pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (dst_object), dst_property);
+ if (G_UNLIKELY (dst_pspec == NULL))
+ {
+ g_critical ("Object of type '%s' has no property named '%s'",
+ G_OBJECT_TYPE_NAME (dst_object), dst_property);
+ return NULL;
+ }
if (transform == NULL)
transform = (ExoBindingTransform) g_value_transform;