summaryrefslogtreecommitdiff
path: root/legacy/elementary
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-28 00:52:02 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-28 00:52:02 +0000
commitd50b73d22eb1d779685bbebe445e60eea7df8691 (patch)
treeda14b78e44d5133423850498eee2cc78b4d9881e /legacy/elementary
parentdc89723cc7c78744a9e748c2fdf7bad92f1904b6 (diff)
elm examples: Fixed some meaningful build warnings.
SVN revision: 69680
Diffstat (limited to 'legacy/elementary')
-rw-r--r--legacy/elementary/src/examples/flipselector_example.c4
-rw-r--r--legacy/elementary/src/examples/menu_example_01.c2
-rw-r--r--legacy/elementary/src/examples/slider_example.c2
-rw-r--r--legacy/elementary/src/examples/web_example.c4
4 files changed, 7 insertions, 5 deletions
diff --git a/legacy/elementary/src/examples/flipselector_example.c b/legacy/elementary/src/examples/flipselector_example.c
index e720bf3939..417490fb2f 100644
--- a/legacy/elementary/src/examples/flipselector_example.c
+++ b/legacy/elementary/src/examples/flipselector_example.c
@@ -87,7 +87,7 @@ _on_keydown(void *data,
87 87
88 if (strcmp(ev->keyname, "h") == 0) /* print help */ 88 if (strcmp(ev->keyname, "h") == 0) /* print help */
89 { 89 {
90 fprintf(stdout, commands); 90 fprintf(stdout, "%s", commands);
91 return; 91 return;
92 } 92 }
93 93
@@ -202,7 +202,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
202 202
203 evas_object_show(win); 203 evas_object_show(win);
204 204
205 fprintf(stdout, commands); 205 fprintf(stdout, "%s", commands);
206 elm_run(); 206 elm_run();
207 return 0; 207 return 0;
208} 208}
diff --git a/legacy/elementary/src/examples/menu_example_01.c b/legacy/elementary/src/examples/menu_example_01.c
index 480d9a4e36..c07bfd5bf9 100644
--- a/legacy/elementary/src/examples/menu_example_01.c
+++ b/legacy/elementary/src/examples/menu_example_01.c
@@ -11,7 +11,7 @@
11static void 11static void
12_del_it(void *data, Evas_Object *obj, void *event_info) 12_del_it(void *data, Evas_Object *obj, void *event_info)
13{ 13{
14 Eina_List *l; 14 const Eina_List *l;
15 Elm_Object_Item *menu_it = elm_menu_first_item_get(data); 15 Elm_Object_Item *menu_it = elm_menu_first_item_get(data);
16 menu_it = elm_menu_item_next_get(menu_it); 16 menu_it = elm_menu_item_next_get(menu_it);
17 l = elm_menu_item_subitems_get(menu_it); 17 l = elm_menu_item_subitems_get(menu_it);
diff --git a/legacy/elementary/src/examples/slider_example.c b/legacy/elementary/src/examples/slider_example.c
index 8852d1a1c1..92a04f987d 100644
--- a/legacy/elementary/src/examples/slider_example.c
+++ b/legacy/elementary/src/examples/slider_example.c
@@ -38,7 +38,7 @@ _delay_changed_cb(void *data __UNUSED__, Evas_Object *obj, void *event_info __UN
38 printf("Delay changed to %1.2f\n", val); 38 printf("Delay changed to %1.2f\n", val);
39} 39}
40 40
41static char* 41static const char*
42_indicator_format(double val) 42_indicator_format(double val)
43{ 43{
44 char *indicator = malloc(sizeof(char) * 32); 44 char *indicator = malloc(sizeof(char) * 32);
diff --git a/legacy/elementary/src/examples/web_example.c b/legacy/elementary/src/examples/web_example.c
index be31c9d2e3..4a5f1da2fb 100644
--- a/legacy/elementary/src/examples/web_example.c
+++ b/legacy/elementary/src/examples/web_example.c
@@ -1,6 +1,8 @@
1/* 1/*
2 * gcc -o web_example web_example.c `pkg-config --cflags --libs elementary ewebkit` -D_GNU_SOURCE 2 * gcc -o web_example web_example.c `pkg-config --cflags --libs elementary ewebkit` -D_GNU_SOURCE
3 */ 3 */
4
5#define _GNU_SOURCE
4#include <Elementary.h> 6#include <Elementary.h>
5#ifdef HAVE_ELEMENTARY_WEB 7#ifdef HAVE_ELEMENTARY_WEB
6#include <EWebKit.h> 8#include <EWebKit.h>
@@ -50,7 +52,7 @@ nav_button_update(App_Data *ad)
50{ 52{
51 Eina_Bool back, fwd; 53 Eina_Bool back, fwd;
52 54
53 back = !elm_web_back_possible(ad->current_tab->web); 55 back = !elm_web_back_possible_get(ad->current_tab->web);
54 fwd = !elm_web_forward_possible_get(ad->current_tab->web); 56 fwd = !elm_web_forward_possible_get(ad->current_tab->web);
55 57
56 elm_object_disabled_set(ad->nav.back, back); 58 elm_object_disabled_set(ad->nav.back, back);