jaehyun pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9c1b80fc030e08aeace6f7a6c2e95e97531d7ee6

commit 9c1b80fc030e08aeace6f7a6c2e95e97531d7ee6
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Tue Jan 29 13:51:47 2019 +0900

    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 90d815f9de..8038782026 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<efl::Content>(sl2.part_get("elm.swallow.end"))
-         .content_set(ic2);
+         .content_set(ic);
 
    sl2.hint_fill_set(true, false);
    bx.pack_end(sl2);

-- 


Reply via email to