examples: fix slider cxx example not to call content_set
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 29 Jan 2019 04:51:47 +0000 (13:51 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Thu, 31 Jan 2019 02:11:43 +0000 (11:11 +0900)
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

index 90d815f..8038782 100644 (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);