projects
/
profile
/
mobile
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
593fff7
)
[Genlist] Set focused object as NULL when item is deleted or genlist is
author
Tae-Hwan Kim
<the81.kim@samsung.com>
Sat, 4 May 2013 15:44:54 +0000
(
00:44
+0900)
committer
Sungho Kwak
<sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 04:50:02 +0000
(13:50 +0900)
cleared.
Change-Id: I19bb5a96c23156a993c63ed361a831971940006e
src/lib/elm_genlist.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_genlist.c
b/src/lib/elm_genlist.c
index
dc3e1f0
..
8b50bb1
100644
(file)
--- a/
src/lib/elm_genlist.c
+++ b/
src/lib/elm_genlist.c
@@
-5215,6
+5215,7
@@
_item_free(Elm_Gen_Item *it)
{
Elm_Genlist_Smart_Data *sd = GL_IT(it)->wsd;
+ if (sd->focused == it) sd->focused = NULL;
elm_widget_item_pre_notify_del(it);
if (it->itc->func.del)
it->itc->func.del((void *)it->base.data, WIDGET(it));
@@
-5769,6
+5770,7
@@
elm_genlist_clear(Evas_Object *obj)
ELM_GENLIST_DATA_GET(obj, sd);
Elm_Gen_Item *it;
+ sd->focused = NULL;
if (sd->state)
{
eina_inlist_sorted_state_free(sd->state);