enventor - fix the dummy swallow object to be removed directly when swallow part is removed.

This commit is contained in:
ChunEon Park 2013-10-08 00:02:05 +09:00
parent 260959d955
commit 868cdd0eaa
2 changed files with 8 additions and 13 deletions

View File

@ -33,23 +33,17 @@ dummy_objs_update(dummy_obj *dummy)
//Remove the fake swallow objects that parts are removed.
EINA_LIST_FOREACH_SAFE(dummy->swallows, l, l_next, po)
{
removed = EINA_FALSE;
removed = EINA_TRUE;
EINA_LIST_FOREACH(parts, l2, part_name)
{
if (strlen(po->name) > strlen(part_name))
if (po->name[0] != part_name[0]) continue;
if (strlen(po->name) != strlen(part_name)) continue;
if (!strcmp(po->name, part_name))
{
if (strcmp(po->name, part_name)) continue;
}
else
{
if (strcmp(part_name, po->name)) continue;
}
if (edje_edit_part_type_get(dummy->layout, part_name) !=
EDJE_PART_TYPE_SWALLOW)
{
removed = EINA_TRUE;
if (edje_edit_part_type_get(dummy->layout, part_name) ==
EDJE_PART_TYPE_SWALLOW)
removed = EINA_FALSE;
break;
}
}

View File

@ -489,6 +489,7 @@ image_preview_show(edit_data *ed, char *cur, Evas_Coord x, Evas_Coord y)
Eina_Bool succeed;
//Create Ctxpopup with the image pathes.
if (found)
{
Evas_Object *ctxpopup =