summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_ui_pager_scroll.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-02-21 18:19:45 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-02-21 18:43:12 +0100
commitf886941b112573664598808ab0493e83126ea2bb (patch)
tree80e9b2f2114101f180207bac4c5c218b0425e10a /src/bin/elementary/test_ui_pager_scroll.c
parent94efabedf6475a665352ff30f4b869c5a310eb40 (diff)
api: efl.gfx.size_hints -> efl.gfx.hints
Summary: these hints are not strictly size-related, so renaming them is more consistent with their actual function ref T7563 Depends on D7968 Reviewers: segfaultxavi, cedric, bu5hm4n Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7563 Differential Revision: https://phab.enlightenment.org/D7977
Diffstat (limited to 'src/bin/elementary/test_ui_pager_scroll.c')
-rw-r--r--src/bin/elementary/test_ui_pager_scroll.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/bin/elementary/test_ui_pager_scroll.c b/src/bin/elementary/test_ui_pager_scroll.c
index 99a6fc9..9941304 100644
--- a/src/bin/elementary/test_ui_pager_scroll.c
+++ b/src/bin/elementary/test_ui_pager_scroll.c
@@ -85,7 +85,7 @@ static Eo *page_add(Page_Type p, Eo *parent)
85 page = efl_add(EFL_UI_LAYOUT_CLASS, parent, 85 page = efl_add(EFL_UI_LAYOUT_CLASS, parent,
86 efl_file_set(efl_added, buf, "page"), 86 efl_file_set(efl_added, buf, "page"),
87 efl_text_set(efl_part(efl_added, "text"), "Layout Page")); 87 efl_text_set(efl_part(efl_added, "text"), "Layout Page"));
88 efl_gfx_size_hint_fill_set(page, EINA_TRUE, EINA_TRUE); 88 efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
89 break; 89 break;
90 case LIST: 90 case LIST:
91 page = elm_list_add(parent); 91 page = elm_list_add(parent);
@@ -103,7 +103,7 @@ static Eo *page_add(Page_Type p, Eo *parent)
103 case BUTTON: 103 case BUTTON:
104 page = efl_add(EFL_UI_BUTTON_CLASS, parent, 104 page = efl_add(EFL_UI_BUTTON_CLASS, parent,
105 efl_text_set(efl_added, "Button Page")); 105 efl_text_set(efl_added, "Button Page"));
106 efl_gfx_size_hint_fill_set(page, EINA_TRUE, EINA_TRUE); 106 efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
107 break; 107 break;
108 default: 108 default:
109 snprintf(buf, sizeof(buf), "%s/objects/test_pager.edj", 109 snprintf(buf, sizeof(buf), "%s/objects/test_pager.edj",
@@ -111,7 +111,7 @@ static Eo *page_add(Page_Type p, Eo *parent)
111 page = efl_add(EFL_UI_LAYOUT_CLASS, parent, 111 page = efl_add(EFL_UI_LAYOUT_CLASS, parent,
112 efl_file_set(efl_added, buf, "page"), 112 efl_file_set(efl_added, buf, "page"),
113 efl_text_set(efl_part(efl_added, "text"), "Layout Page")); 113 efl_text_set(efl_part(efl_added, "text"), "Layout Page"));
114 efl_gfx_size_hint_fill_set(page, EINA_TRUE, EINA_TRUE); 114 efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
115 break; 115 break;
116 } 116 }
117 117
@@ -395,8 +395,8 @@ static void page_size_cb(void *data,
395 // Width 395 // Width
396 fr = elm_frame_add(box); 396 fr = elm_frame_add(box);
397 elm_object_text_set(fr, "Width"); 397 elm_object_text_set(fr, "Width");
398 efl_gfx_size_hint_align_set(fr, -1, -1); 398 efl_gfx_hint_align_set(fr, -1, -1);
399 efl_gfx_size_hint_weight_set(fr, 1, 1); 399 efl_gfx_hint_weight_set(fr, 1, 1);
400 efl_pack(box, fr); 400 efl_pack(box, fr);
401 efl_gfx_entity_visible_set(fr, 1); 401 efl_gfx_entity_visible_set(fr, 1);
402 402
@@ -411,7 +411,7 @@ static void page_size_cb(void *data,
411 sl = efl_add(EFL_UI_SLIDER_CLASS, inbox, 411 sl = efl_add(EFL_UI_SLIDER_CLASS, inbox,
412 efl_ui_range_min_max_set(efl_added, 100, 200), 412 efl_ui_range_min_max_set(efl_added, 100, 200),
413 efl_ui_range_value_set(efl_added, params->w), 413 efl_ui_range_value_set(efl_added, params->w),
414 efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(100, 0)), 414 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 0)),
415 efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED, 415 efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED,
416 width_slider_cb, params), 416 width_slider_cb, params),
417 efl_pack_end(inbox, efl_added)); 417 efl_pack_end(inbox, efl_added));
@@ -436,8 +436,8 @@ static void page_size_cb(void *data,
436 // Height 436 // Height
437 fr = elm_frame_add(box); 437 fr = elm_frame_add(box);
438 elm_object_text_set(fr, "Height"); 438 elm_object_text_set(fr, "Height");
439 efl_gfx_size_hint_align_set(fr, -1, -1); 439 efl_gfx_hint_align_set(fr, -1, -1);
440 efl_gfx_size_hint_weight_set(fr, 1, 1); 440 efl_gfx_hint_weight_set(fr, 1, 1);
441 efl_pack(box, fr); 441 efl_pack(box, fr);
442 efl_gfx_entity_visible_set(fr, 1); 442 efl_gfx_entity_visible_set(fr, 1);
443 443
@@ -452,7 +452,7 @@ static void page_size_cb(void *data,
452 sl = efl_add(EFL_UI_SLIDER_CLASS, inbox, 452 sl = efl_add(EFL_UI_SLIDER_CLASS, inbox,
453 efl_ui_range_min_max_set(efl_added, 100, 300), 453 efl_ui_range_min_max_set(efl_added, 100, 300),
454 efl_ui_range_value_set(efl_added, params->h), 454 efl_ui_range_value_set(efl_added, params->h),
455 efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(100, 0)), 455 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 0)),
456 efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED, 456 efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED,
457 height_slider_cb, params), 457 height_slider_cb, params),
458 efl_pack_end(inbox, efl_added)); 458 efl_pack_end(inbox, efl_added));
@@ -496,7 +496,7 @@ static void padding_cb(void *data,
496 efl_add(EFL_UI_SLIDER_CLASS, box, 496 efl_add(EFL_UI_SLIDER_CLASS, box,
497 efl_ui_range_min_max_set(efl_added, 0, 50), 497 efl_ui_range_min_max_set(efl_added, 0, 50),
498 efl_ui_range_value_set(efl_added, params->padding), 498 efl_ui_range_value_set(efl_added, params->padding),
499 efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(100, 0)), 499 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 0)),
500 efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED, 500 efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED,
501 padding_slider_cb, params), 501 padding_slider_cb, params),
502 efl_pack_end(box, efl_added)); 502 efl_pack_end(box, efl_added));
@@ -526,8 +526,8 @@ static void side_page_num_cb(void *data,
526 efl_ui_range_min_max_set(efl_added, 0, 3), 526 efl_ui_range_min_max_set(efl_added, 0, 3),
527 efl_ui_range_value_set(efl_added, params->side_page_num), 527 efl_ui_range_value_set(efl_added, params->side_page_num),
528 efl_ui_direction_set(efl_added, EFL_UI_DIR_VERTICAL), 528 efl_ui_direction_set(efl_added, EFL_UI_DIR_VERTICAL),
529 efl_gfx_size_hint_weight_set(efl_added, 1, 1), 529 efl_gfx_hint_weight_set(efl_added, 1, 1),
530 efl_gfx_size_hint_align_set(efl_added, -1, -1), 530 efl_gfx_hint_align_set(efl_added, -1, -1),
531 efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED, 531 efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED,
532 side_page_num_slider_cb, params), 532 side_page_num_slider_cb, params),
533 efl_pack_end(box, efl_added)); 533 efl_pack_end(box, efl_added));
@@ -724,7 +724,7 @@ static void current_page_cb(void *data,
724 efl_pack_end(box, efl_added)); 724 efl_pack_end(box, efl_added));
725 725
726 sp = efl_add(EFL_UI_SPIN_BUTTON_CLASS, box, 726 sp = efl_add(EFL_UI_SPIN_BUTTON_CLASS, box,
727 efl_gfx_size_hint_align_set(efl_added, -1, -1), 727 efl_gfx_hint_align_set(efl_added, -1, -1),
728 efl_pack_end(box, efl_added)); 728 efl_pack_end(box, efl_added));
729 729
730 if (efl_content_count(pager) > 0) 730 if (efl_content_count(pager) > 0)
@@ -860,7 +860,7 @@ void test_ui_pager_scroll(void *data EINA_UNUSED,
860 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 860 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
861 861
862 panes = efl_add(EFL_UI_PANES_CLASS, win, 862 panes = efl_add(EFL_UI_PANES_CLASS, win,
863 efl_gfx_size_hint_weight_set(efl_added, 1, 1), 863 efl_gfx_hint_weight_set(efl_added, 1, 1),
864 efl_ui_panes_split_ratio_set(efl_added, 0.3), 864 efl_ui_panes_split_ratio_set(efl_added, 0.3),
865 efl_content_set(win, efl_added)); 865 efl_content_set(win, efl_added));
866 866