summaryrefslogtreecommitdiff
path: root/src/examples/genlist_example_03.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-04-04 16:45:09 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-04-08 19:29:19 +0900
commit8b0a5b2f6d5ad19fcaba65a3fc28f58e4d06e071 (patch)
treef8a2251764a01c043e7336411ea4fa40edce06a7 /src/examples/genlist_example_03.c
parent825d6803a950f0af04fc90ccc58d9e289bd12f68 (diff)
src/examples: fixed formatting.
Diffstat (limited to 'src/examples/genlist_example_03.c')
-rw-r--r--src/examples/genlist_example_03.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/examples/genlist_example_03.c b/src/examples/genlist_example_03.c
index 55d6e56de..d6875d73a 100644
--- a/src/examples/genlist_example_03.c
+++ b/src/examples/genlist_example_03.c
@@ -18,10 +18,10 @@ _item_label_get(void *data, Evas_Object *obj, const char *part)
18 snprintf(buf, sizeof(buf), "Item # %i", i); 18 snprintf(buf, sizeof(buf), "Item # %i", i);
19 else 19 else
20 { 20 {
21 int n; 21 int n;
22 snprintf(buf, sizeof(buf), "created at %s", ctime(&t)); 22 snprintf(buf, sizeof(buf), "created at %s", ctime(&t));
23 n = strlen(buf); 23 n = strlen(buf);
24 buf[n - 1] = '\0'; 24 buf[n - 1] = '\0';
25 } 25 }
26 26
27 return strdup(buf); 27 return strdup(buf);
@@ -42,7 +42,7 @@ static void
42_item_sel_cb(void *data, Evas_Object *obj, void *event_info) 42_item_sel_cb(void *data, Evas_Object *obj, void *event_info)
43{ 43{
44 printf("sel item data [%p] on genlist obj [%p], item pointer [%p]\n", 44 printf("sel item data [%p] on genlist obj [%p], item pointer [%p]\n",
45 data, obj, event_info); 45 data, obj, event_info);
46} 46}
47 47
48static Evas_Object * 48static Evas_Object *
@@ -64,10 +64,10 @@ _genlist_fill(Evas_Object *list)
64 64
65 for (i = 0; i < N_ITEMS; i++) 65 for (i = 0; i < N_ITEMS; i++)
66 { 66 {
67 elm_genlist_item_append(list, _itc, 67 elm_genlist_item_append(list, _itc,
68 (void *)(long)i, NULL, 68 (void *)(long)i, NULL,
69 ELM_GENLIST_ITEM_NONE, 69 ELM_GENLIST_ITEM_NONE,
70 _item_sel_cb, NULL); 70 _item_sel_cb, NULL);
71 } 71 }
72} 72}
73 73