summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJee-Yong Um <jc9.um@samsung.com>2016-02-19 15:58:30 -0800
committerCedric BAIL <cedric@osg.samsung.com>2016-02-29 15:40:06 -0800
commit8c9acb744dea51ffe3bd38db454e7f2cef6a7c7f (patch)
treee1171ef37476d88041a4e3379b2e2e2041168583
parentd06a13c7deaa7d49d518f7efef22073caa641c48 (diff)
downloadelementary-8c9acb744dea51ffe3bd38db454e7f2cef6a7c7f.tar.gz
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>
-rw-r--r--src/lib/elm_gengrid.c2
-rw-r--r--src/lib/elm_genlist.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c
index af51cb543..bf9b1f849 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -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
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index a3c419a40..89130a93a 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -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 */