summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_ui_pager_scroll.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-06-19 09:55:51 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-06-19 10:03:21 +0200
commit969c7f72877c3cd67fcbaf947d9873bf442402de (patch)
treeba4dafbe0637c8f28123144edc196fe88b660760 /src/bin/elementary/test_ui_pager_scroll.c
parente712261e14c1b823c1766be56ac2d78baad6cdfc (diff)
efl_ui_range_display: range_min_max -> range_limits
Summary: ref T7895 Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl_api Maniphest Tasks: T7895 Differential Revision: https://phab.enlightenment.org/D9110
Diffstat (limited to 'src/bin/elementary/test_ui_pager_scroll.c')
-rw-r--r--src/bin/elementary/test_ui_pager_scroll.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/bin/elementary/test_ui_pager_scroll.c b/src/bin/elementary/test_ui_pager_scroll.c
index e25132d..9d1857e 100644
--- a/src/bin/elementary/test_ui_pager_scroll.c
+++ b/src/bin/elementary/test_ui_pager_scroll.c
@@ -296,7 +296,7 @@ static void pack_btn_cb(void *data, const Efl_Event *ev EINA_UNUSED)
296 index = efl_ui_range_value_get(param->pack_sp); 296 index = efl_ui_range_value_get(param->pack_sp);
297 if (index > cnt) 297 if (index > cnt)
298 efl_ui_range_value_set(param->pack_sp, cnt); 298 efl_ui_range_value_set(param->pack_sp, cnt);
299 efl_ui_range_min_max_set(param->pack_sp, 0, cnt); 299 efl_ui_range_limits_set(param->pack_sp, 0, cnt);
300 300
301 if (cnt > 0) 301 if (cnt > 0)
302 { 302 {
@@ -307,7 +307,7 @@ static void pack_btn_cb(void *data, const Efl_Event *ev EINA_UNUSED)
307 index = efl_ui_range_value_get(param->unpack_sp); 307 index = efl_ui_range_value_get(param->unpack_sp);
308 if (index > cnt) 308 if (index > cnt)
309 efl_ui_range_value_set(param->unpack_sp, cnt); 309 efl_ui_range_value_set(param->unpack_sp, cnt);
310 efl_ui_range_min_max_set(param->unpack_sp, 0, cnt); 310 efl_ui_range_limits_set(param->unpack_sp, 0, cnt);
311 } 311 }
312 else 312 else
313 { 313 {
@@ -415,7 +415,7 @@ static void page_size_cb(void *data,
415 efl_gfx_entity_visible_set(ck, 1); 415 efl_gfx_entity_visible_set(ck, 1);
416 416
417 sl = efl_add(EFL_UI_SLIDER_CLASS, inbox, 417 sl = efl_add(EFL_UI_SLIDER_CLASS, inbox,
418 efl_ui_range_min_max_set(efl_added, 100, 200), 418 efl_ui_range_limits_set(efl_added, 100, 200),
419 efl_ui_range_value_set(efl_added, params->w), 419 efl_ui_range_value_set(efl_added, params->w),
420 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 0)), 420 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 0)),
421 efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED, 421 efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED,
@@ -456,7 +456,7 @@ static void page_size_cb(void *data,
456 efl_gfx_entity_visible_set(ck, 1); 456 efl_gfx_entity_visible_set(ck, 1);
457 457
458 sl = efl_add(EFL_UI_SLIDER_CLASS, inbox, 458 sl = efl_add(EFL_UI_SLIDER_CLASS, inbox,
459 efl_ui_range_min_max_set(efl_added, 100, 300), 459 efl_ui_range_limits_set(efl_added, 100, 300),
460 efl_ui_range_value_set(efl_added, params->h), 460 efl_ui_range_value_set(efl_added, params->h),
461 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 0)), 461 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 0)),
462 efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED, 462 efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED,
@@ -500,7 +500,7 @@ static void padding_cb(void *data,
500 efl_added, NULL)); 500 efl_added, NULL));
501 501
502 efl_add(EFL_UI_SLIDER_CLASS, box, 502 efl_add(EFL_UI_SLIDER_CLASS, box,
503 efl_ui_range_min_max_set(efl_added, 0, 50), 503 efl_ui_range_limits_set(efl_added, 0, 50),
504 efl_ui_range_value_set(efl_added, params->padding), 504 efl_ui_range_value_set(efl_added, params->padding),
505 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 0)), 505 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 0)),
506 efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED, 506 efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED,
@@ -529,7 +529,7 @@ static void side_page_num_cb(void *data,
529 efl_add(EFL_UI_SLIDER_CLASS, box, 529 efl_add(EFL_UI_SLIDER_CLASS, box,
530 efl_text_set(efl_added, "side page num"), 530 efl_text_set(efl_added, "side page num"),
531 efl_ui_format_string_set(efl_part(efl_added, "indicator"), "%1.0f"), 531 efl_ui_format_string_set(efl_part(efl_added, "indicator"), "%1.0f"),
532 efl_ui_range_min_max_set(efl_added, 0, 3), 532 efl_ui_range_limits_set(efl_added, 0, 3),
533 efl_ui_range_value_set(efl_added, params->side_page_num), 533 efl_ui_range_value_set(efl_added, params->side_page_num),
534 efl_ui_layout_orientation_set(efl_added, EFL_UI_LAYOUT_ORIENTATION_VERTICAL), 534 efl_ui_layout_orientation_set(efl_added, EFL_UI_LAYOUT_ORIENTATION_VERTICAL),
535 efl_gfx_hint_weight_set(efl_added, 1, 1), 535 efl_gfx_hint_weight_set(efl_added, 1, 1),
@@ -564,7 +564,7 @@ static void pack_cb(void *data,
564 efl_ui_layout_orientation_set(efl_added, EFL_UI_LAYOUT_ORIENTATION_HORIZONTAL)); 564 efl_ui_layout_orientation_set(efl_added, EFL_UI_LAYOUT_ORIENTATION_HORIZONTAL));
565 565
566 sp1 = efl_add(EFL_UI_SPIN_BUTTON_CLASS, in_box1, 566 sp1 = efl_add(EFL_UI_SPIN_BUTTON_CLASS, in_box1,
567 efl_ui_range_min_max_set(efl_added, 0, 567 efl_ui_range_limits_set(efl_added, 0,
568 efl_content_count(pager)), 568 efl_content_count(pager)),
569 efl_ui_range_value_set(efl_added, 569 efl_ui_range_value_set(efl_added,
570 efl_ui_pager_current_page_get(pager))); 570 efl_ui_pager_current_page_get(pager)));
@@ -688,7 +688,7 @@ static void pack_cb(void *data,
688 688
689 if (efl_content_count(pager) > 0) 689 if (efl_content_count(pager) > 0)
690 { 690 {
691 efl_ui_range_min_max_set(sp2, 0, 691 efl_ui_range_limits_set(sp2, 0,
692 (efl_content_count(pager) - 1)); 692 (efl_content_count(pager) - 1));
693 efl_ui_range_value_set(sp2, 693 efl_ui_range_value_set(sp2,
694 efl_ui_pager_current_page_get(pager)); 694 efl_ui_pager_current_page_get(pager));
@@ -753,7 +753,7 @@ static void current_page_cb(void *data,
753 753
754 if (efl_content_count(pager) > 0) 754 if (efl_content_count(pager) > 0)
755 { 755 {
756 efl_ui_range_min_max_set(sp, 0, 756 efl_ui_range_limits_set(sp, 0,
757 (efl_content_count(pager) - 1)); 757 (efl_content_count(pager) - 1));
758 efl_ui_range_value_set(sp, 758 efl_ui_range_value_set(sp,
759 efl_ui_pager_current_page_get(pager)); 759 efl_ui_pager_current_page_get(pager));