elementary_cxx: fix examples to use the new API.

This commit is contained in:
Cedric Bail 2016-11-21 15:29:47 -08:00
parent f511c64269
commit a0d9354be1
1 changed files with 8 additions and 1 deletions

View File

@ -8,6 +8,8 @@
EAPI_MAIN int
elm_main (int argc, char *argv[])
{
Efl_Time min, max;
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
efl::ui::win::Standard win;
@ -15,9 +17,14 @@ elm_main (int argc, char *argv[])
win.autohide_set(true);
elm::Calendar cal(win);
min.tm_year = 2020 - 1900;
max.tm_year = 2022 - 1900;
//cal.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
//win.resize_object_add(cal);
cal.min_max_year_set(2020, 2022);
cal.date_min_set(min);
cal.date_max_set(max);
cal.visible_set(true);
cal.eo_cxx::efl::Gfx::size_set(140,140);