summaryrefslogtreecommitdiff
path: root/src/examples/elementary/calendar_cxx_example_03.cc
diff options
context:
space:
mode:
authorLuciana Magno de Almeida <luciana@expertisesolutions.com.br>2016-05-26 18:46:29 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-15 15:50:04 -0300
commit5af3757ad3cce0d5959f9059b03288a1081afe39 (patch)
treebe26ca4de0fc72d03a58aab363336fbb13ee939c /src/examples/elementary/calendar_cxx_example_03.cc
parent8071109a7016b454e4976740262df91f004b0973 (diff)
elementary-cxx: Fix compilation of some C++ examples
Diffstat (limited to 'src/examples/elementary/calendar_cxx_example_03.cc')
-rw-r--r--src/examples/elementary/calendar_cxx_example_03.cc17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/examples/elementary/calendar_cxx_example_03.cc b/src/examples/elementary/calendar_cxx_example_03.cc
index 9aacadee72..7ebc206145 100644
--- a/src/examples/elementary/calendar_cxx_example_03.cc
+++ b/src/examples/elementary/calendar_cxx_example_03.cc
@@ -1,3 +1,8 @@
1#ifdef HAVE_CONFIG_H
2#include "config.h"
3#include "elementary_config.h"
4#endif
5
1#include <Elementary.hh> 6#include <Elementary.hh>
2 7
3EAPI_MAIN int 8EAPI_MAIN int
@@ -5,16 +10,18 @@ elm_main (int argc, char *argv[])
5{ 10{
6 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN); 11 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
7 12
8 ::elm::win_standard win; 13 efl::ui::win::Standard win;
9 win.title_set("Calendar Min/Max Year Example"); 14 //win.title_set("Calendar Min/Max Year Example");
10 win.autohide_set(true); 15 win.autohide_set(true);
11 16
12 ::elm::calendar cal(efl::eo::parent = win); 17 elm::Calendar cal(win);
13 cal.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 18 //cal.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
14 win.resize_object_add(cal); 19 //win.resize_object_add(cal);
15 cal.min_max_year_set(2020, 2022); 20 cal.min_max_year_set(2020, 2022);
16 cal.visible_set(true); 21 cal.visible_set(true);
17 22
23 cal.eo_cxx::efl::Gfx::size_set(140,140);
24 win.eo_cxx::efl::Gfx::size_set(140,140);
18 win.visible_set(true); 25 win.visible_set(true);
19 26
20 elm_run(); 27 elm_run();