2006-06-05 Matthew Allum <mallum@openedhand.com>
authorMatthew Allum <mallum@openedhand.com>
Mon, 5 Jun 2006 21:49:25 +0000 (21:49 +0000)
committerMatthew Allum <mallum@openedhand.com>
Mon, 5 Jun 2006 21:49:25 +0000 (21:49 +0000)
        * clutter/clutter-group.c: (clutter_group_remove):
        Fix parent check.

ChangeLog
clutter/clutter-group.c

index a75c34d..c3f6b0a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2006-06-05  Matthew Allum  <mallum@openedhand.com>
 
+       * clutter/clutter-group.c: (clutter_group_remove):
+       Fix parent check.
+
+2006-06-05  Matthew Allum  <mallum@openedhand.com>
+
        * clutter/clutter-event.h:
        Remove send_event field. Clutter shouldn't need it.  
 
index 9de908b..7128fcc 100644 (file)
@@ -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 "