projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e718c06
)
genlist: fix genlist item prepend to below the group parent
28/132828/1
author
SangHyeon Lee
<sh10233.lee@samsung.com>
Tue, 23 May 2017 06:10:43 +0000
(15:10 +0900)
committer
SangHyeon Lee
<sh10233.lee@samsung.com>
Thu, 8 Jun 2017 02:21:14 +0000
(
02:21
+0000)
Change-Id: I62a08d5730882e0490a3060735afeaffec6284ef
Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
(cherry picked from commit
68b28227e4ce83559484bff87005b5a11272884b
)
src/mobile_lib/elm_genlist.c
patch
|
blob
|
history
diff --git
a/src/mobile_lib/elm_genlist.c
b/src/mobile_lib/elm_genlist.c
index adac4adea3fa32ba7017cecd7cb07ed2224d69f6..cab9816bb5e76863950b777c8c8332b7171b199f 100644
(file)
--- a/
src/mobile_lib/elm_genlist.c
+++ b/
src/mobile_lib/elm_genlist.c
@@
-6709,6
+6709,9
@@
elm_genlist_item_prepend(Evas_Object *obj,
ELM_GENLIST_ITEM_DATA_GET(eo_parent, parent);
ELM_GENLIST_ITEM_CHECK_OR_RETURN(parent, NULL);
EINA_SAFETY_ON_FALSE_RETURN_VAL(obj == WIDGET(parent), NULL);
+ /* first sub-item should allways be appended */
+ if (!parent->item->items)
+ return _elm_genlist_item_append(obj, sd, itc, data, eo_parent, type, func, func_data);
}
it = _elm_genlist_item_new
(sd, itc, data, eo_parent, type, func, func_data);