summaryrefslogtreecommitdiff
path: root/src/examples/elementary/calendar_cxx_example_03.cc
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-11-06 14:25:22 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-11-07 09:57:24 +0900
commit778c5afb3f29fe0763d875d31f6411b24cbb997d (patch)
treee253817b380f6b1ca8bafc032032c00fc2a95310 /src/examples/elementary/calendar_cxx_example_03.cc
parent4f98b549159811d2f649a9e3eca6bbe20bc86740 (diff)
cxx: Fix some examples, disable or remove others
make examples now builds all c++ examples but some of them are in fact empty skeletons. Those either need some c++ love or the final eo api to be ready (eg. menu, popup, ...). I removed some examples that don't have an exact equivalent in EO since the widget is legacy only.
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, 2 insertions, 7 deletions
diff --git a/src/examples/elementary/calendar_cxx_example_03.cc b/src/examples/elementary/calendar_cxx_example_03.cc
index c780987f48..5b44afb557 100644
--- a/src/examples/elementary/calendar_cxx_example_03.cc
+++ b/src/examples/elementary/calendar_cxx_example_03.cc
@@ -1,8 +1,3 @@
1#ifdef HAVE_CONFIG_H
2#include "config.h"
3#include "elementary_config.h"
4#endif
5
6#include <Elementary.hh> 1#include <Elementary.hh>
7 2
8using efl::eo::instantiate; 3using efl::eo::instantiate;
@@ -17,11 +12,11 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
17 min.tm_year = 2020 - 1900; 12 min.tm_year = 2020 - 1900;
18 max.tm_year = 2022 - 1900; 13 max.tm_year = 2022 - 1900;
19 14
20 auto win = efl::ui::Win(instantiate); 15 efl::ui::Win win(instantiate);
21 win.text_set("Calendar Min/Max Year Example"); 16 win.text_set("Calendar Min/Max Year Example");
22 win.autohide_set(true); 17 win.autohide_set(true);
23 18
24 auto cal = efl::ui::Calendar(instantiate, win); 19 efl::ui::Calendar cal(instantiate, win);
25 win.content_set(cal); 20 win.content_set(cal);
26 cal.date_min_set(min); 21 cal.date_min_set(min);
27 cal.date_max_set(max); 22 cal.date_max_set(max);