[glade/gbinding] Assert that the GladeBinding's "target" property is non-NULL
- From: Denis Washington <denisw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/gbinding] Assert that the GladeBinding's "target" property is non-NULL
- Date: Tue, 7 Jun 2011 18:57:41 +0000 (UTC)
commit 086e0e09eee88246332d156ef47db366cae267d7
Author: Denis Washington <denisw src gnome org>
Date: Tue Jun 7 20:06:35 2011 +0200
Assert that the GladeBinding's "target" property is non-NULL
gladeui/glade-binding.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gladeui/glade-binding.c b/gladeui/glade-binding.c
index c48c973..ad71251 100644
--- a/gladeui/glade-binding.c
+++ b/gladeui/glade-binding.c
@@ -127,8 +127,8 @@ glade_binding_set_property (GObject *object,
break;
case PROP_TARGET:
priv->target = g_value_get_object (value);
- if (priv->target)
- glade_property_set_binding (priv->target, GLADE_BINDING (object));
+ g_assert (priv->target != NULL);
+ glade_property_set_binding (priv->target, GLADE_BINDING (object));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]