summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-06-25 12:05:33 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-06-25 12:05:43 +0900
commit8972e10feea72d4c07f3e2a3ebfa40251c5ff0a3 (patch)
treea1e0c78683403d19f4e5324f428964de845015a1
parentcb8e59c57a0a8e2c634572135eff7b2e8fe2e5b0 (diff)
examples: fixed warnings.
-rw-r--r--src/examples/bg_example_01.c2
-rw-r--r--src/examples/gengrid_example.c8
-rw-r--r--src/examples/label_example_01.c2
-rw-r--r--src/examples/location_example_01.c2
-rw-r--r--src/examples/notify_example_01.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/src/examples/bg_example_01.c b/src/examples/bg_example_01.c
index 92125be26..6188ddcd8 100644
--- a/src/examples/bg_example_01.c
+++ b/src/examples/bg_example_01.c
@@ -6,7 +6,7 @@
6EAPI_MAIN int 6EAPI_MAIN int
7elm_main(int argc, char **argv) 7elm_main(int argc, char **argv)
8{ 8{
9 Evas_Object *win, *bg; 9 Evas_Object *win;
10 10
11 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 11 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
12 win = elm_win_util_standard_add("bg-plain", "Bg Plain"); 12 win = elm_win_util_standard_add("bg-plain", "Bg Plain");
diff --git a/src/examples/gengrid_example.c b/src/examples/gengrid_example.c
index 02d3d92a3..f16db9762 100644
--- a/src/examples/gengrid_example.c
+++ b/src/examples/gengrid_example.c
@@ -78,7 +78,7 @@ _bouncing_change(void *data,
78 Evas_Object *grid = data; 78 Evas_Object *grid = data;
79 Eina_Bool bounce = elm_check_state_get(obj); 79 Eina_Bool bounce = elm_check_state_get(obj);
80 80
81 elm_gengrid_bounce_set(grid, bounce, bounce); 81 elm_scroller_bounce_set(grid, bounce, bounce);
82 82
83 fprintf(stdout, "Bouncing effect for gengrid is now %s\n", 83 fprintf(stdout, "Bouncing effect for gengrid is now %s\n",
84 bounce ? "on" : "off"); 84 bounce ? "on" : "off");
@@ -372,7 +372,7 @@ _grid_scroll_stopped_cb(void *data,
372 void *event_info) 372 void *event_info)
373{ 373{
374 int h_pagenumber = 0, v_pagenumber = 0; 374 int h_pagenumber = 0, v_pagenumber = 0;
375 elm_gengrid_current_page_get(obj, &h_pagenumber, &v_pagenumber); 375 elm_scroller_current_page_get(obj, &h_pagenumber, &v_pagenumber);
376 fprintf(stdout, "Grid current horiz page is %d, vert page is %d\n", 376 fprintf(stdout, "Grid current horiz page is %d, vert page is %d\n",
377 h_pagenumber, v_pagenumber); 377 h_pagenumber, v_pagenumber);
378} 378}
@@ -414,7 +414,7 @@ _page_change_cb(void *data,
414{ 414{
415 double val = elm_slider_value_get(obj); 415 double val = elm_slider_value_get(obj);
416 416
417 elm_gengrid_page_relative_set(data, val, val); 417 elm_scroller_page_relative_set(data, val, val);
418 418
419 fprintf(stdout, "Setting grid page's relative size to %f\n", val); 419 fprintf(stdout, "Setting grid page's relative size to %f\n", val);
420} 420}
@@ -536,7 +536,7 @@ elm_main(int argc,
536 evas_object_show(ck); 536 evas_object_show(ck);
537 537
538 ck = elm_check_add(win); 538 ck = elm_check_add(win);
539 elm_gengrid_bounce_get(grid, &bounce, NULL); 539 elm_scroller_bounce_get(grid, &bounce, NULL);
540 elm_object_text_set(ck, "Bouncing"); 540 elm_object_text_set(ck, "Bouncing");
541 elm_check_state_set(ck, bounce); 541 elm_check_state_set(ck, bounce);
542 evas_object_smart_callback_add(ck, "changed", _bouncing_change, grid); 542 evas_object_smart_callback_add(ck, "changed", _bouncing_change, grid);
diff --git a/src/examples/label_example_01.c b/src/examples/label_example_01.c
index fdea73697..cdd7acc2e 100644
--- a/src/examples/label_example_01.c
+++ b/src/examples/label_example_01.c
@@ -22,7 +22,7 @@ elm_main(int argc, char **argv)
22 elm_object_text_set(label, "Some long text for our label, that is long but " 22 elm_object_text_set(label, "Some long text for our label, that is long but "
23 "not too long."); 23 "not too long.");
24 elm_label_slide_duration_set(label, 3); 24 elm_label_slide_duration_set(label, 3);
25 elm_label_slide_set(label, EINA_TRUE); 25 elm_label_slide_mode_set(label, ELM_LABEL_SLIDE_MODE_ALWAYS);
26 elm_object_style_set(label, "slide_bounce"); 26 elm_object_style_set(label, "slide_bounce");
27 evas_object_move(label, 0, 10); 27 evas_object_move(label, 0, 10);
28 evas_object_resize(label, 200, 15); 28 evas_object_resize(label, 200, 15);
diff --git a/src/examples/location_example_01.c b/src/examples/location_example_01.c
index 0e19c4dfe..90d178138 100644
--- a/src/examples/location_example_01.c
+++ b/src/examples/location_example_01.c
@@ -69,7 +69,7 @@ elm_main(int argc, char *argv[])
69 elm_object_text_set(label, "Getting location ..."); 69 elm_object_text_set(label, "Getting location ...");
70 evas_object_size_hint_weight_set(label, EVAS_HINT_EXPAND, 0.0); 70 evas_object_size_hint_weight_set(label, EVAS_HINT_EXPAND, 0.0);
71 evas_object_size_hint_align_set(label, EVAS_HINT_FILL, EVAS_HINT_FILL); 71 evas_object_size_hint_align_set(label, EVAS_HINT_FILL, EVAS_HINT_FILL);
72 elm_label_slide_set(label, EINA_TRUE); 72 elm_label_slide_mode_set(label, ELM_LABEL_SLIDE_MODE_ALWAYS);
73 evas_object_resize(label, 600, 480); 73 evas_object_resize(label, 600, 480);
74 evas_object_show(label); 74 evas_object_show(label);
75 75
diff --git a/src/examples/notify_example_01.c b/src/examples/notify_example_01.c
index 1de5e2a0b..7d43478f1 100644
--- a/src/examples/notify_example_01.c
+++ b/src/examples/notify_example_01.c
@@ -8,7 +8,7 @@ static void _hide(void *data, Evas_Object *obj, void *event_info);
8EAPI_MAIN int 8EAPI_MAIN int
9elm_main(int argc, char **argv) 9elm_main(int argc, char **argv)
10{ 10{
11 Evas_Object *win, *bg, *bx, *notify, *content; 11 Evas_Object *win, *bx, *notify, *content;
12 12
13 win = elm_win_util_standard_add("notify", "Notify"); 13 win = elm_win_util_standard_add("notify", "Notify");
14 elm_win_autodel_set(win, EINA_TRUE); 14 elm_win_autodel_set(win, EINA_TRUE);