examples: fix slider cxx example not to call content_set

Since Efl.Content is removed from Efl.Ui.Slider, slider should not call
content_set.

This patch is for the commit 4c44c44e1a.
This commit is contained in:
Jaehyun Cho 2019-01-29 13:51:47 +09:00
parent 9dedaddf2d
commit 9c1b80fc03
1 changed files with 2 additions and 7 deletions

View File

@ -27,16 +27,11 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
efl::ui::Slider sl2(instantiate, win);
efl::ui::Image ic(instantiate, win);
ic.icon_set("home");
ic.icon_set("folder");
ic.scalable_set(false, false);
sl2.content_set(ic);
efl::ui::Image ic2(instantiate, win);
ic2.icon_set("folder");
ic2.scalable_set(false, false);
// FIXME: C++ part API needs special reference handling! This will show ERR!
efl::eo::downcast<efl::Content>(sl2.part_get("elm.swallow.end"))
.content_set(ic2);
.content_set(ic);
sl2.hint_fill_set(true, false);
bx.pack_end(sl2);