summaryrefslogtreecommitdiff
path: root/src/examples/genlist_example_03.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-28 08:42:20 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-28 08:42:20 +0000
commitf84b3cda618180232412b72ad849a5d23b80dbcd (patch)
treeaeab1f71b33113d0a58cfb2f723f2699445e9408 /src/examples/genlist_example_03.c
parentd420f31b9c07d7529117519eda05471a95ea455f (diff)
elm examples: I removed __UNUSED__ and config header inclusion. This code is an example for other developers so we don't need that extra macros. But how can I ignore this warning while building elementary?
SVN revision: 69698
Diffstat (limited to 'src/examples/genlist_example_03.c')
-rw-r--r--src/examples/genlist_example_03.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/examples/genlist_example_03.c b/src/examples/genlist_example_03.c
index 755c90016..4b2a28a1f 100644
--- a/src/examples/genlist_example_03.c
+++ b/src/examples/genlist_example_03.c
@@ -2,18 +2,13 @@
2//gcc -g `pkg-config --cflags --libs elementary` genlist_example_03.c -o genlist_example_03 2//gcc -g `pkg-config --cflags --libs elementary` genlist_example_03.c -o genlist_example_03
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11#define N_ITEMS 30 6#define N_ITEMS 30
12 7
13static Elm_Genlist_Item_Class *_itc = NULL; 8static Elm_Genlist_Item_Class *_itc = NULL;
14 9
15static char * 10static char *
16_item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part) 11_item_label_get(void *data, Evas_Object *obj, const char *part)
17{ 12{
18 time_t t = (time_t)ecore_time_unix_get(); 13 time_t t = (time_t)ecore_time_unix_get();
19 char buf[256]; 14 char buf[256];
@@ -33,7 +28,7 @@ _item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part)
33} 28}
34 29
35static Evas_Object * 30static Evas_Object *
36_item_content_get(void *data __UNUSED__, Evas_Object *obj, const char *part) 31_item_content_get(void *data, Evas_Object *obj, const char *part)
37{ 32{
38 Evas_Object *ic = elm_icon_add(obj); 33 Evas_Object *ic = elm_icon_add(obj);
39 34
@@ -79,7 +74,7 @@ _genlist_fill(Evas_Object *list)
79} 74}
80 75
81EAPI_MAIN int 76EAPI_MAIN int
82elm_main(int argc __UNUSED__, char **argv __UNUSED__) 77elm_main(int argc, char **argv)
83{ 78{
84 Evas_Object *win, *bg, *box; 79 Evas_Object *win, *bg, *box;
85 Evas_Object *list; 80 Evas_Object *list;