From f040e5b0da8f01cccd9262d2d7a3c29f9603c2bb Mon Sep 17 00:00:00 2001 From: Matthew Allum Date: Mon, 5 Jun 2006 21:49:25 +0000 Subject: [PATCH] 2006-06-05 Matthew Allum * clutter/clutter-group.c: (clutter_group_remove): Fix parent check. --- ChangeLog | 5 +++++ clutter/clutter-group.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a75c34dbb..c3f6b0a4e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-06-05 Matthew Allum + + * clutter/clutter-group.c: (clutter_group_remove): + Fix parent check. + 2006-06-05 Matthew Allum * clutter/clutter-event.h: diff --git a/clutter/clutter-group.c b/clutter/clutter-group.c index 9de908b99..7128fcc57 100644 --- a/clutter/clutter-group.c +++ b/clutter/clutter-group.c @@ -438,7 +438,7 @@ clutter_group_remove (ClutterGroup *self, g_return_if_fail (CLUTTER_IS_ELEMENT (element)); parent = clutter_element_get_parent (element); - if (element != CLUTTER_ELEMENT (self)) + if (parent != CLUTTER_ELEMENT (self)) { g_warning ("Attempting to remove element of type `%s' from " "group of class `%s', but the group is not the "