From e3e97497956f7ab363a287cf367dc465f51e7c86 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Mon, 20 Nov 2017 20:31:07 +0900 Subject: [PATCH] cxx: Disable spinner example (broken) A new API for spinner is coming soon. This example code is now broken since my change on Efl.Content vs. Efl.Container. --- src/examples/elementary/spinner_cxx_example.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/examples/elementary/spinner_cxx_example.cc b/src/examples/elementary/spinner_cxx_example.cc index 8799aa1db7..7d88436ad9 100644 --- a/src/examples/elementary/spinner_cxx_example.cc +++ b/src/examples/elementary/spinner_cxx_example.cc @@ -5,19 +5,20 @@ #include #include -#warning This example is using legacy elm_spinner +#warning FIXME: This example requires proper EO API usage (not legacy spinner) using efl::eo::instantiate; static void efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED) { - elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN); +#if 0 efl::ui::Win win(instantiate); win.text_set("Spinner Example"); win.autohide_set(true); + efl::ui::Box bx(instantiate, win); win.content_set(bx); @@ -81,5 +82,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED) { std::cout << "Value changed to " << spinner.value_get() << "" << std::endl; }, std::placeholders::_1); efl::eolian::event_add(elm::Spinner::delay_changed_event, sp7, delay); + +#endif } EFL_MAIN()