forked from enlightenment/efl
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.
This commit is contained in:
parent
1c200331f1
commit
e3e9749795
|
@ -5,19 +5,20 @@
|
||||||
#include <Elementary.hh>
|
#include <Elementary.hh>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#warning This example is using legacy elm_spinner
|
#warning FIXME: This example requires proper EO API usage (not legacy spinner)
|
||||||
|
|
||||||
using efl::eo::instantiate;
|
using efl::eo::instantiate;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
|
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);
|
efl::ui::Win win(instantiate);
|
||||||
win.text_set("Spinner Example");
|
win.text_set("Spinner Example");
|
||||||
win.autohide_set(true);
|
win.autohide_set(true);
|
||||||
|
|
||||||
|
|
||||||
efl::ui::Box bx(instantiate, win);
|
efl::ui::Box bx(instantiate, win);
|
||||||
win.content_set(bx);
|
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::cout << "Value changed to " << spinner.value_get() << "" << std::endl; },
|
||||||
std::placeholders::_1);
|
std::placeholders::_1);
|
||||||
efl::eolian::event_add(elm::Spinner::delay_changed_event, sp7, delay);
|
efl::eolian::event_add(elm::Spinner::delay_changed_event, sp7, delay);
|
||||||
|
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
EFL_MAIN()
|
EFL_MAIN()
|
||||||
|
|
Loading…
Reference in New Issue