clouseau: Avoid checking children for non-smart object

Signed-off-by: Aharon Hillel <a.hillel@samsung.com>

SVN revision: 72355
This commit is contained in:
Aharon Hillel 2012-06-18 07:23:15 +00:00 committed by Tom Hacohen
parent dddca2b897
commit 71854d3809
1 changed files with 9 additions and 6 deletions

View File

@ -33,13 +33,16 @@ libclouseau_item_add(Evas_Object *o, Tree_Item *parent)
parent->children = eina_list_append(parent->children, treeit);
children = evas_object_smart_members_get(o);
EINA_LIST_FOREACH(children, tmp, child)
{
libclouseau_item_add(child, treeit);
}
if (evas_object_smart_data_get(o))
{ /* Do this only for smart object */
children = evas_object_smart_members_get(o);
EINA_LIST_FOREACH(children, tmp, child)
{
libclouseau_item_add(child, treeit);
}
eina_list_free(children);
eina_list_free(children);
}
}
static void *