summaryrefslogtreecommitdiff
path: root/src/examples/elementary/calendar_cxx_example_03.cc
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2016-11-21 15:29:47 -0800
committerCedric Bail <cedric@osg.samsung.com>2016-11-21 16:03:27 -0800
commita0d9354be14722bbf5a4f33759b007cd3b9845fc (patch)
treed72e3395e65addc2b492f0c6578fc87586522146 /src/examples/elementary/calendar_cxx_example_03.cc
parentf511c64269a351943c8296108185744c7ebd3320 (diff)
elementary_cxx: fix examples to use the new API.
Diffstat (limited to 'src/examples/elementary/calendar_cxx_example_03.cc')
-rw-r--r--src/examples/elementary/calendar_cxx_example_03.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/examples/elementary/calendar_cxx_example_03.cc b/src/examples/elementary/calendar_cxx_example_03.cc
index 7ebc206145..cab39f3c3b 100644
--- a/src/examples/elementary/calendar_cxx_example_03.cc
+++ b/src/examples/elementary/calendar_cxx_example_03.cc
@@ -8,6 +8,8 @@
8EAPI_MAIN int 8EAPI_MAIN int
9elm_main (int argc, char *argv[]) 9elm_main (int argc, char *argv[])
10{ 10{
11 Efl_Time min, max;
12
11 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);
12 14
13 efl::ui::win::Standard win; 15 efl::ui::win::Standard win;
@@ -15,9 +17,14 @@ elm_main (int argc, char *argv[])
15 win.autohide_set(true); 17 win.autohide_set(true);
16 18
17 elm::Calendar cal(win); 19 elm::Calendar cal(win);
20
21 min.tm_year = 2020 - 1900;
22 max.tm_year = 2022 - 1900;
23
18 //cal.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 24 //cal.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
19 //win.resize_object_add(cal); 25 //win.resize_object_add(cal);
20 cal.min_max_year_set(2020, 2022); 26 cal.date_min_set(min);
27 cal.date_max_set(max);
21 cal.visible_set(true); 28 cal.visible_set(true);
22 29
23 cal.eo_cxx::efl::Gfx::size_set(140,140); 30 cal.eo_cxx::efl::Gfx::size_set(140,140);