elm_gen: update highlight geometry after clearing items

Summary:
After genlist/genrid items are cleared, item highlight still
remains in blank space. This patch fixes this by updating highlight.

Test Plan:
elementary_test -to fileselector
enter blank directory and see highlight still remains

Reviewers: jpeg, SanghyeonLee, cedric

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D3683

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Jee-Yong Um 2016-02-19 15:58:30 -08:00 committed by Cedric BAIL
parent 175905ce94
commit d0d6a96aee
2 changed files with 4 additions and 0 deletions

View File

@ -4106,6 +4106,8 @@ _internal_elm_gengrid_clear(Evas_Object *obj,
eo_do(obj, elm_interface_scrollable_content_region_show(0, 0, 0, 0));
evas_event_thaw(evas_object_evas_get(obj));
evas_event_thaw_eval(evas_object_evas_get(obj));
_elm_widget_focus_highlight_start(obj);
}
static void

View File

@ -5793,6 +5793,8 @@ _internal_elm_genlist_clear(Evas_Object *obj)
evas_event_thaw(evas_object_evas_get(sd->obj));
evas_event_thaw_eval(evas_object_evas_get(sd->obj));
_elm_widget_focus_highlight_start(obj);
}
/* Return EINA_TRUE if the item is deleted in this function */