Only call smart members get on smart objects.
This commit is contained in:
parent
79bfcef585
commit
450b8bf916
|
@ -46,10 +46,13 @@ libclouseau_item_add(Evas_Object *o, Clouseau_Tree_Item *parent)
|
|||
/* if (!evas_object_smart_data_get(o)) return ; */
|
||||
|
||||
/* Do this only for smart object */
|
||||
if (eo_isa(o, EVAS_OBJ_SMART_CLASS))
|
||||
{
|
||||
children = evas_object_smart_members_get(o);
|
||||
EINA_LIST_FREE(children, child)
|
||||
libclouseau_item_add(child, treeit);
|
||||
}
|
||||
}
|
||||
|
||||
static void *
|
||||
_canvas_bmp_get(Ecore_Evas *ee, Evas_Coord *w_out, Evas_Coord *h_out)
|
||||
|
@ -185,6 +188,8 @@ _clouseau_verify_e_children(Evas_Object *obj, Evas_Object *ptr)
|
|||
if (ptr == obj)
|
||||
return ptr;
|
||||
|
||||
if (eo_isa(obj, EVAS_OBJ_SMART_CLASS))
|
||||
{
|
||||
children = evas_object_smart_members_get(obj);
|
||||
EINA_LIST_FREE(children, child)
|
||||
{
|
||||
|
@ -192,6 +197,7 @@ _clouseau_verify_e_children(Evas_Object *obj, Evas_Object *ptr)
|
|||
if (p) break;
|
||||
}
|
||||
eina_list_free(children);
|
||||
}
|
||||
|
||||
return p;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue