forked from enlightenment/enventor
edj_viewer: Fix to highlight part for newly created group.
Part of new group is highlighted before new group is loaded into layout. So after loading new group, part of new group is not highlighted. To fix this issue, part of new group is highlighted after new group is loaded into layout.
This commit is contained in:
parent
84a165c5d6
commit
5a9de80061
|
@ -157,6 +157,8 @@ view_obj_create_post_job(view_data *vd)
|
||||||
if (!vd->edj_monitor) EINA_LOG_ERR("Failed to add Eio_Monitor");
|
if (!vd->edj_monitor) EINA_LOG_ERR("Failed to add Eio_Monitor");
|
||||||
view_obj_min_update(vd);
|
view_obj_min_update(vd);
|
||||||
|
|
||||||
|
if (vd->part_name) view_part_highlight_set(vd, vd->part_name);
|
||||||
|
|
||||||
Eina_Bool ret;
|
Eina_Bool ret;
|
||||||
if (eo_do_ret(vd->enventor, ret, enventor_obj_dummy_parts_get()))
|
if (eo_do_ret(vd->enventor, ret, enventor_obj_dummy_parts_get()))
|
||||||
dummy_obj_new(vd->layout);
|
dummy_obj_new(vd->layout);
|
||||||
|
@ -493,7 +495,6 @@ view_obj_idler_cb(void *data)
|
||||||
elm_object_content_set(vd->scroller, vd->base);
|
elm_object_content_set(vd->scroller, vd->base);
|
||||||
|
|
||||||
vd->idler = NULL;
|
vd->idler = NULL;
|
||||||
if (vd->part_name) view_part_highlight_set(vd, vd->part_name);
|
|
||||||
|
|
||||||
return ECORE_CALLBACK_CANCEL;
|
return ECORE_CALLBACK_CANCEL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue