slider_cxx: fix casting
this object now needs to be casted, in order to have the event available.
This commit is contained in:
parent
f00e24de29
commit
1e363538b3
|
@ -68,7 +68,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
|
|||
sl7.hint_fill_set(true, false);
|
||||
bx.pack_end(sl7);
|
||||
|
||||
auto changed = std::bind ( [] (efl::ui::Slider obj)
|
||||
auto changed = std::bind ( [] (efl::ui::Range_Display obj)
|
||||
{ std::cout << "Changed to " << obj.range_value_get() << std::endl; }
|
||||
, std::placeholders::_1);
|
||||
|
||||
|
@ -76,7 +76,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
|
|||
{ std::cout << "Steady to " << obj.range_value_get() << std::endl; }
|
||||
, std::placeholders::_1);
|
||||
|
||||
sl7.changed_event_cb_add(changed);
|
||||
efl::eo::downcast<efl::ui::Range_Display>(sl7).changed_event_cb_add(changed);
|
||||
sl7.steady_event_cb_add(steady);
|
||||
}
|
||||
EFL_MAIN()
|
||||
|
|
Loading…
Reference in New Issue