forked from enlightenment/enlightenment
fix sub object add for e widgets... will be happy to let elm do this
in future :) SVN revision: 65644
This commit is contained in:
parent
63708082d1
commit
83dbefaf87
|
@ -141,7 +141,7 @@ e_widget_sub_object_add(Evas_Object *obj, Evas_Object *sobj)
|
||||||
{
|
{
|
||||||
API_ENTRY return;
|
API_ENTRY return;
|
||||||
|
|
||||||
if (eina_list_data_find(sd->subobjs, obj)) return;
|
if (eina_list_data_find(sd->subobjs, sobj)) return;
|
||||||
|
|
||||||
evas_object_event_callback_del(sobj, EVAS_CALLBACK_DEL, _sub_obj_del);
|
evas_object_event_callback_del(sobj, EVAS_CALLBACK_DEL, _sub_obj_del);
|
||||||
|
|
||||||
|
@ -514,19 +514,13 @@ static void
|
||||||
_e_smart_del(Evas_Object *obj)
|
_e_smart_del(Evas_Object *obj)
|
||||||
{
|
{
|
||||||
INTERNAL_ENTRY;
|
INTERNAL_ENTRY;
|
||||||
void *po = NULL;
|
|
||||||
|
|
||||||
if (sd->del_func) sd->del_func(obj);
|
if (sd->del_func) sd->del_func(obj);
|
||||||
while (sd->subobjs)
|
while (sd->subobjs)
|
||||||
{
|
{
|
||||||
if (sd->subobjs->data == po)
|
Evas_Object *sobj = sd->subobjs->data;
|
||||||
{
|
evas_object_del(sobj);
|
||||||
po = sd->subobjs->data;
|
sd->subobjs = eina_list_remove(sd->subobjs, sobj);
|
||||||
sd->subobjs = eina_list_remove_list(sd->subobjs, sd->subobjs);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
po = sd->subobjs->data;
|
|
||||||
evas_object_del(sd->subobjs->data);
|
|
||||||
}
|
}
|
||||||
free(sd);
|
free(sd);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue