libeek: add parent property to EekElement

This commit is contained in:
Daiki Ueno
2010-06-17 10:15:17 +09:00
parent 353c99e700
commit b92520c488
3 changed files with 75 additions and 8 deletions

View File

@ -61,6 +61,7 @@ eek_container_real_add_child (EekContainer *self,
g_object_ref_sink (child);
priv->children = g_slist_prepend (priv->children, child);
eek_element_set_parent (child, self);
}
static void
@ -75,6 +76,7 @@ eek_container_real_remove_child (EekContainer *self,
g_return_if_fail (head);
g_object_unref (child);
priv->children = g_slist_remove_link (priv->children, head);
eek_element_set_parent (child, NULL);
}
static void