From f4b9a76a6124321c82ac46919d6295b0ad6bb8ff Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Tue, 29 Jan 2019 13:51:47 +0900 Subject: [PATCH] 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 4c44c44e1a46bc05ea812259474cbc8c83659769. --- src/examples/elementary/slider_cxx_example.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/examples/elementary/slider_cxx_example.cc b/src/examples/elementary/slider_cxx_example.cc index 90d815f..8038782 100644 --- a/src/examples/elementary/slider_cxx_example.cc +++ b/src/examples/elementary/slider_cxx_example.cc @@ -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(sl2.part_get("elm.swallow.end")) - .content_set(ic2); + .content_set(ic); sl2.hint_fill_set(true, false); bx.pack_end(sl2); -- 2.7.4