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,6 +33,8 @@ libclouseau_item_add(Evas_Object *o, Tree_Item *parent)
parent->children = eina_list_append(parent->children, 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)
{
@ -41,6 +43,7 @@ libclouseau_item_add(Evas_Object *o, Tree_Item *parent)
eina_list_free(children);
}
}
static void *
_canvas_bmp_get(Ecore_Evas *ee, Evas_Coord *w_out, Evas_Coord *h_out)