summaryrefslogtreecommitdiff
path: root/src/examples/elementary/calendar_cxx_example_04.cc
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@yahoo.com>2017-09-11 21:12:30 +0300
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2017-09-11 21:13:15 +0300
commita8f86b2c3443a6fa3b16df695a92fbef1d6dbb83 (patch)
treec059b9cb9c579b51a7eb00b9681f62af06f0777b /src/examples/elementary/calendar_cxx_example_04.cc
parent79956eee638109f04f134b829969f40b5079a853 (diff)
Examples: fix C++ examples
The examples have not been updated after the last C++ changes.
Diffstat (limited to 'src/examples/elementary/calendar_cxx_example_04.cc')
-rw-r--r--src/examples/elementary/calendar_cxx_example_04.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/examples/elementary/calendar_cxx_example_04.cc b/src/examples/elementary/calendar_cxx_example_04.cc
index aea5364bd2..566449b42f 100644
--- a/src/examples/elementary/calendar_cxx_example_04.cc
+++ b/src/examples/elementary/calendar_cxx_example_04.cc
@@ -15,17 +15,19 @@ elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED)
15 15
16 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN); 16 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
17 17
18 efl::ui::Win win; 18 using efl::eo::instantiate;
19
20 efl::ui::Win win(instantiate);
19 //win.title_set("Calendar Day Selection Example"); 21 //win.title_set("Calendar Day Selection Example");
20 win.autohide_set(true); 22 win.autohide_set(true);
21 23
22 ::efl::ui::Box bx(win); 24 ::efl::ui::Box bx(instantiate, win);
23 //bx.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 25 //bx.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
24 //win.resize_object_add(bx); 26 //win.resize_object_add(bx);
25 bx.eo_cxx::efl::Gfx::size_set(700,700); 27 bx.eo_cxx::efl::Gfx::size_set(700,700);
26 bx.visible_set(true); 28 bx.visible_set(true);
27 29
28 ::elm::Calendar cal(win); 30 ::elm::Calendar cal(instantiate, win);
29 // cal.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 31 // cal.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
30 // cal.size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL); 32 // cal.size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL);
31 cal.select_mode_set(ELM_CALENDAR_SELECT_MODE_NONE); 33 cal.select_mode_set(ELM_CALENDAR_SELECT_MODE_NONE);
@@ -35,7 +37,7 @@ elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED)
35 //candidate: bool eo_cxx::efl::pack::Linear::pack_end(Efl_Gfx*) const 37 //candidate: bool eo_cxx::efl::pack::Linear::pack_end(Efl_Gfx*) const
36 // inline bool eo_cxx::efl::pack::Linear::pack_end(Efl_Gfx * subobj_) const 38 // inline bool eo_cxx::efl::pack::Linear::pack_end(Efl_Gfx * subobj_) const
37 39
38 ::elm::Calendar cal2(win); 40 ::elm::Calendar cal2(instantiate, win);
39 //cal2.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 41 //cal2.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
40 //cal2.size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL); 42 //cal2.size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL);
41 current_time = time(NULL) +2 * SECS_DAY; 43 current_time = time(NULL) +2 * SECS_DAY;