From 0efb5be29b4e72e7b088eab7f09d915bd1268fe0 Mon Sep 17 00:00:00 2001 From: Lauro Moura Date: Fri, 22 Feb 2019 17:09:18 +0100 Subject: [PATCH] examples: Fix cxx examples compilation. Summary: After Efl.Gfx.Hint changes. Reviewers: segfaultxavi, vitor.sousa Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8003 --- src/examples/elementary/slider_cxx_example.cc | 4 ++-- src/examples/elementary/table_cxx_example_02.cc | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/examples/elementary/slider_cxx_example.cc b/src/examples/elementary/slider_cxx_example.cc index 3e9254e..ab37196 100644 --- a/src/examples/elementary/slider_cxx_example.cc +++ b/src/examples/elementary/slider_cxx_example.cc @@ -38,7 +38,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED) efl::ui::Slider sl3(instantiate, win); sl3.range_value_set(1); - sl3.hint_min_set({220, 0}); + sl3.hint_size_min_set({220, 0}); sl3.hint_fill_set(true, false); bx.pack_end(sl3); @@ -52,7 +52,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED) sl5.range_step_set(1); sl5.direction_set(EFL_UI_DIR_UP); sl5.hint_fill_set(true, false); - sl5.hint_min_set({0, 120}); + sl5.hint_size_min_set({0, 120}); bx.pack_end(sl5); efl::ui::Slider sl6(instantiate, win); diff --git a/src/examples/elementary/table_cxx_example_02.cc b/src/examples/elementary/table_cxx_example_02.cc index 986cefc..472fbef 100644 --- a/src/examples/elementary/table_cxx_example_02.cc +++ b/src/examples/elementary/table_cxx_example_02.cc @@ -20,22 +20,22 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED) efl::canvas::Rectangle rect(instantiate, win); rect.color_set(255, 0, 0, 255); - rect.hint_min_set({100, 50}); + rect.hint_size_min_set({100, 50}); table.pack_table(rect, 0, 0, 2, 1); efl::canvas::Rectangle rect2(instantiate, win); rect2.color_set(0, 255, 0, 255); - rect2.hint_min_set({50, 100}); + rect2.hint_size_min_set({50, 100}); table.pack_table(rect2, 0, 1, 1, 2); efl::canvas::Rectangle rect3(instantiate, win); rect3.color_set(0, 0, 255, 255); - rect3.hint_min_set({50, 50}); + rect3.hint_size_min_set({50, 50}); table.pack_table(rect3, 1, 1, 1, 1); efl::canvas::Rectangle rect4(instantiate, win); rect4.color_set(255, 255, 0, 255); - rect4.hint_min_set({50, 50}); + rect4.hint_size_min_set({50, 50}); table.pack_table(rect4, 1, 2, 1, 1); } EFL_MAIN() -- 2.7.4