summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-11-20 10:30:09 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-11-20 10:46:09 +0900
commit846e4c4cdf440f505a647d5697283716615067a6 (patch)
treede5aa06a8c03335ac4ae097344bb1688439f6830 /src
parentabe88a8016b674f37126507c30afe3255a98baaf (diff)
index_example_01.c: fixed wrong example code. elm_index_level_go() should be called after every index item changes.
This fixes T510.
Diffstat (limited to 'src')
-rw-r--r--src/examples/index_example_01.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/examples/index_example_01.c b/src/examples/index_example_01.c
index 1bc1a6347..332c8dbca 100644
--- a/src/examples/index_example_01.c
+++ b/src/examples/index_example_01.c
@@ -52,6 +52,7 @@ _item_del(void *data,
52 elm_object_item_data_get(iit)); 52 elm_object_item_data_get(iit));
53 53
54 elm_object_item_del(iit); 54 elm_object_item_del(iit);
55 elm_index_level_go(d.index, 0);
55} 56}
56 57
57static void 58static void
@@ -60,6 +61,7 @@ _item_del_all(void *data,
60 void *event_info) 61 void *event_info)
61{ 62{
62 elm_index_item_clear(d.index); 63 elm_index_item_clear(d.index);
64 elm_index_level_go(d.index, 0);
63} 65}
64 66
65static void 67static void