elm widget_preview_gengrid.c: Fixed sample code.
authorseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 5 Aug 2011 01:24:21 +0000 (01:24 +0000)
committerseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 5 Aug 2011 01:24:21 +0000 (01:24 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@62118 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

doc/widgets/widget_preview_gengrid.c

index ef104cc..4775a9a 100644 (file)
@@ -1,15 +1,20 @@
 #include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#else
+# define __UNUSED__
+#endif
 
 static char *
-_grid_label_get(void        *data,
-                Evas_Object *obj,
-                const char  *part )
+_grid_label_get(void        *data __UNUSED__,
+                Evas_Object *obj __UNUSED__,
+                const char  *part __UNUSED__)
 {
    return strdup("label");
 }
 
 static Evas_Object *
-_grid_icon_get(void        *data,
+_grid_icon_get(void        *data __UNUSED__,
                Evas_Object *obj,
                const char  *part)
 {