summaryrefslogtreecommitdiff
path: root/src/examples/elementary/slider_cxx_example.cc
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2019-01-29 13:51:47 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2019-01-29 13:52:39 +0900
commit9c1b80fc030e08aeace6f7a6c2e95e97531d7ee6 (patch)
tree0c2b1771b81f3ce711a27325d6420bd2f3a49cef /src/examples/elementary/slider_cxx_example.cc
parent9dedaddf2dd550ea3b3d87e5f698e5fd4eab2161 (diff)
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.
Diffstat (limited to '')
-rw-r--r--src/examples/elementary/slider_cxx_example.cc9
1 files 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)
27 27
28 efl::ui::Slider sl2(instantiate, win); 28 efl::ui::Slider sl2(instantiate, win);
29 efl::ui::Image ic(instantiate, win); 29 efl::ui::Image ic(instantiate, win);
30 ic.icon_set("home"); 30 ic.icon_set("folder");
31 ic.scalable_set(false, false); 31 ic.scalable_set(false, false);
32 sl2.content_set(ic);
33
34 efl::ui::Image ic2(instantiate, win);
35 ic2.icon_set("folder");
36 ic2.scalable_set(false, false);
37 // FIXME: C++ part API needs special reference handling! This will show ERR! 32 // FIXME: C++ part API needs special reference handling! This will show ERR!
38 efl::eo::downcast<efl::Content>(sl2.part_get("elm.swallow.end")) 33 efl::eo::downcast<efl::Content>(sl2.part_get("elm.swallow.end"))
39 .content_set(ic2); 34 .content_set(ic);
40 35
41 sl2.hint_fill_set(true, false); 36 sl2.hint_fill_set(true, false);
42 bx.pack_end(sl2); 37 bx.pack_end(sl2);