summaryrefslogtreecommitdiff
path: root/unsorted
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-05-07 17:35:07 -0300
committerCedric BAIL <cedric@osg.samsung.com>2018-05-24 16:02:19 -0700
commitae8ef9ce48aecbd7dfcd0643fc32b41f0ff737ea (patch)
tree583a30abd9bd1cd2c571796842a2394671eed77c /unsorted
parentd4b0794b75d21dba33c7432f36a099f762a5ecaa (diff)
cxx: Fix examples after part changes
Reviewed-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'unsorted')
-rw-r--r--unsorted/elementary/popup_cxx_example.cc10
-rw-r--r--unsorted/elementary/slider_cxx_example.cc2
2 files changed, 6 insertions, 6 deletions
diff --git a/unsorted/elementary/popup_cxx_example.cc b/unsorted/elementary/popup_cxx_example.cc
index 7c6d85ce..b6c78322 100644
--- a/unsorted/elementary/popup_cxx_example.cc
+++ b/unsorted/elementary/popup_cxx_example.cc
@@ -147,12 +147,12 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
147 auto repeat_events_btn = lrepeat_events_btn.get(); 147 auto repeat_events_btn = lrepeat_events_btn.get();
148 if (!repeat_events_btn) return; 148 if (!repeat_events_btn) return;
149 149
150 if (efl::eo::downcast<efl::canvas::Object>(g_popup.part("backwall")).repeat_events_get()) { 150 if (efl::eo::downcast<efl::canvas::Object>(g_popup.part_get("backwall")).repeat_events_get()) {
151 efl::eo::downcast<efl::canvas::Object>(g_popup.part("backwall")).repeat_events_set(false); 151 efl::eo::downcast<efl::canvas::Object>(g_popup.part_get("backwall")).repeat_events_set(false);
152 repeat_events_btn.text_set("Set Repeat Events"); 152 repeat_events_btn.text_set("Set Repeat Events");
153 } 153 }
154 else { 154 else {
155 efl::eo::downcast<efl::canvas::Object>(g_popup.part("backwall")).repeat_events_set(true); 155 efl::eo::downcast<efl::canvas::Object>(g_popup.part_get("backwall")).repeat_events_set(true);
156 repeat_events_btn.text_set("Unset Repeat Events"); 156 repeat_events_btn.text_set("Unset Repeat Events");
157 } 157 }
158 })); 158 }));
@@ -207,11 +207,11 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
207 207
208 backwall_visible = !backwall_visible; 208 backwall_visible = !backwall_visible;
209 if (backwall_visible) { 209 if (backwall_visible) {
210 efl::eo::downcast<efl::File>(g_popup.part("backwall")).file_set("./sky_01.jpg", nullptr); 210 efl::eo::downcast<efl::File>(g_popup.part_get("backwall")).file_set("./sky_01.jpg", nullptr);
211 backwall_btn.text_set("Unset Backwall"); 211 backwall_btn.text_set("Unset Backwall");
212 } 212 }
213 else { 213 else {
214 efl::eo::downcast<efl::File>(g_popup.part("backwall")).file_set(nullptr, nullptr); 214 efl::eo::downcast<efl::File>(g_popup.part_get("backwall")).file_set(nullptr, nullptr);
215 backwall_btn.text_set("Set Backwall"); 215 backwall_btn.text_set("Set Backwall");
216 } 216 }
217 })); 217 }));
diff --git a/unsorted/elementary/slider_cxx_example.cc b/unsorted/elementary/slider_cxx_example.cc
index d7ed3e0e..61358d2c 100644
--- a/unsorted/elementary/slider_cxx_example.cc
+++ b/unsorted/elementary/slider_cxx_example.cc
@@ -35,7 +35,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
35 ic2.icon_set("folder"); 35 ic2.icon_set("folder");
36 ic2.scalable_set(false, false); 36 ic2.scalable_set(false, false);
37 // FIXME: C++ part API needs special reference handling! This will show ERR! 37 // FIXME: C++ part API needs special reference handling! This will show ERR!
38 efl::eo::downcast<efl::Content>(sl2.part("elm.swallow.end")) 38 efl::eo::downcast<efl::Content>(sl2.part_get("elm.swallow.end"))
39 .content_set(ic2); 39 .content_set(ic2);
40 40
41 sl2.hint_align_set(EFL_GFX_SIZE_HINT_FILL, 0.5); 41 sl2.hint_align_set(EFL_GFX_SIZE_HINT_FILL, 0.5);