elm_gen: update highlight geometry after clearing items
authorJee-Yong Um <jc9.um@samsung.com>
Fri, 19 Feb 2016 23:58:30 +0000 (15:58 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 29 Feb 2016 23:40:06 +0000 (15:40 -0800)
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>
legacy/elementary/src/lib/elm_gengrid.c
legacy/elementary/src/lib/elm_genlist.c

index af51cb5..bf9b1f8 100644 (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
index a3c419a..89130a9 100644 (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 */