summaryrefslogtreecommitdiff
path: root/src/examples/elementary/calendar_cxx_example_03.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_03.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_03.cc')
-rw-r--r--src/examples/elementary/calendar_cxx_example_03.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/examples/elementary/calendar_cxx_example_03.cc b/src/examples/elementary/calendar_cxx_example_03.cc
index dc59095528..876a667429 100644
--- a/src/examples/elementary/calendar_cxx_example_03.cc
+++ b/src/examples/elementary/calendar_cxx_example_03.cc
@@ -12,11 +12,13 @@ elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED)
12 12
13 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN); 13 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
14 14
15 efl::ui::Win win; 15 using efl::eo::instantiate;
16
17 efl::ui::Win win(instantiate);
16 //win.title_set("Calendar Min/Max Year Example"); 18 //win.title_set("Calendar Min/Max Year Example");
17 win.autohide_set(true); 19 win.autohide_set(true);
18 20
19 elm::Calendar cal(win); 21 elm::Calendar cal(instantiate, win);
20 22
21 min.tm_year = 2020 - 1900; 23 min.tm_year = 2020 - 1900;
22 max.tm_year = 2022 - 1900; 24 max.tm_year = 2022 - 1900;