summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_ui_pager_scroll.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-08-05 19:42:02 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-08-06 17:09:42 +0200
commit9baa96c35271153d2b017fe072ee3e485b7f2c2b (patch)
tree92342c4ea72ccb0639004e7a08a7bb184813e109 /src/bin/elementary/test_ui_pager_scroll.c
parentc63b2d136ea8508a4cd2b31eebe02c0789441af1 (diff)
efl_ui_check: migrate from own property to Efl.Ui.Selectable
this is the basic work for getting radio group as a single_selection interface, which can be a part of mutli_selection. Which will come both later on. ref T8057 Differential Revision: https://phab.enlightenment.org/D9504
Diffstat (limited to 'src/bin/elementary/test_ui_pager_scroll.c')
-rw-r--r--src/bin/elementary/test_ui_pager_scroll.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/bin/elementary/test_ui_pager_scroll.c b/src/bin/elementary/test_ui_pager_scroll.c
index 8112716..1ac37da 100644
--- a/src/bin/elementary/test_ui_pager_scroll.c
+++ b/src/bin/elementary/test_ui_pager_scroll.c
@@ -339,7 +339,7 @@ static void prev_block_check_cb(void *data, const Efl_Event *ev)
339 Eo *pager = data; 339 Eo *pager = data;
340 Eina_Bool prev, next; 340 Eina_Bool prev, next;
341 341
342 prev = efl_ui_check_selected_get(ev->object); 342 prev = efl_ui_selectable_selected_get(ev->object);
343 343
344 efl_ui_pager_scroll_block_get(pager, NULL, &next); 344 efl_ui_pager_scroll_block_get(pager, NULL, &next);
345 efl_ui_pager_scroll_block_set(pager, prev, next); 345 efl_ui_pager_scroll_block_set(pager, prev, next);
@@ -350,7 +350,7 @@ static void next_block_check_cb(void *data, const Efl_Event *ev)
350 Eo *pager = data; 350 Eo *pager = data;
351 Eina_Bool prev, next; 351 Eina_Bool prev, next;
352 352
353 next = efl_ui_check_selected_get(ev->object); 353 next = efl_ui_selectable_selected_get(ev->object);
354 354
355 efl_ui_pager_scroll_block_get(pager, &prev, NULL); 355 efl_ui_pager_scroll_block_get(pager, &prev, NULL);
356 efl_ui_pager_scroll_block_set(pager, prev, next); 356 efl_ui_pager_scroll_block_set(pager, prev, next);
@@ -429,7 +429,7 @@ static void page_size_cb(void *data,
429 size_params->pager = params->pager; 429 size_params->pager = params->pager;
430 size_params->params = params; 430 size_params->params = params;
431 431
432 efl_event_callback_add(ck, EFL_UI_CHECK_EVENT_SELECTED_CHANGED, width_check_cb, 432 efl_event_callback_add(ck, EFL_UI_EVENT_SELECTED_CHANGED, width_check_cb,
433 size_params); 433 size_params);
434 efl_event_callback_add(ck, EFL_EVENT_DEL, check_del_cb, size_params); 434 efl_event_callback_add(ck, EFL_EVENT_DEL, check_del_cb, size_params);
435 435
@@ -470,7 +470,7 @@ static void page_size_cb(void *data,
470 size_params->pager = params->pager; 470 size_params->pager = params->pager;
471 size_params->params = params; 471 size_params->params = params;
472 472
473 efl_event_callback_add(ck, EFL_UI_CHECK_EVENT_SELECTED_CHANGED, height_check_cb, 473 efl_event_callback_add(ck, EFL_UI_EVENT_SELECTED_CHANGED, height_check_cb,
474 size_params); 474 size_params);
475 efl_event_callback_add(ck, EFL_EVENT_DEL, check_del_cb, size_params); 475 efl_event_callback_add(ck, EFL_EVENT_DEL, check_del_cb, size_params);
476 476
@@ -796,16 +796,16 @@ static void scroll_block_cb(void *data,
796 c = efl_add(EFL_UI_CHECK_CLASS, box); 796 c = efl_add(EFL_UI_CHECK_CLASS, box);
797 efl_ui_widget_style_set(c, "toggle"); 797 efl_ui_widget_style_set(c, "toggle");
798 efl_text_set(c, "Prev Block"); 798 efl_text_set(c, "Prev Block");
799 efl_ui_check_selected_set(c, prev); 799 efl_ui_selectable_selected_set(c, prev);
800 efl_event_callback_add(c, EFL_UI_CHECK_EVENT_SELECTED_CHANGED, 800 efl_event_callback_add(c, EFL_UI_EVENT_SELECTED_CHANGED,
801 prev_block_check_cb, pager); 801 prev_block_check_cb, pager);
802 efl_pack_end(box, c); 802 efl_pack_end(box, c);
803 803
804 c = efl_add(EFL_UI_CHECK_CLASS, box); 804 c = efl_add(EFL_UI_CHECK_CLASS, box);
805 efl_ui_widget_style_set(c, "toggle"); 805 efl_ui_widget_style_set(c, "toggle");
806 efl_text_set(c, "Next Block"); 806 efl_text_set(c, "Next Block");
807 efl_ui_check_selected_set(c, next); 807 efl_ui_selectable_selected_set(c, next);
808 efl_event_callback_add(c, EFL_UI_CHECK_EVENT_SELECTED_CHANGED, 808 efl_event_callback_add(c, EFL_UI_EVENT_SELECTED_CHANGED,
809 next_block_check_cb, pager); 809 next_block_check_cb, pager);
810 efl_pack_end(box, c); 810 efl_pack_end(box, c);
811} 811}
@@ -834,7 +834,7 @@ static void loop_cb(void *data EINA_UNUSED,
834 efl_ui_radio_state_value_set(rd, EFL_UI_PAGER_LOOP_DISABLED); 834 efl_ui_radio_state_value_set(rd, EFL_UI_PAGER_LOOP_DISABLED);
835 efl_text_set(rd, "Disabled"); 835 efl_text_set(rd, "Disabled");
836 efl_gfx_hint_weight_set(rd, 1, 0); 836 efl_gfx_hint_weight_set(rd, 1, 0);
837 efl_event_callback_add(rd, EFL_UI_CHECK_EVENT_SELECTED_CHANGED, 837 efl_event_callback_add(rd, EFL_UI_EVENT_SELECTED_CHANGED,
838 loop_radio_cb, pager); 838 loop_radio_cb, pager);
839 efl_pack(box, rd); 839 efl_pack(box, rd);
840 840
@@ -842,7 +842,7 @@ static void loop_cb(void *data EINA_UNUSED,
842 efl_ui_radio_state_value_set(rd, EFL_UI_PAGER_LOOP_ENABLED); 842 efl_ui_radio_state_value_set(rd, EFL_UI_PAGER_LOOP_ENABLED);
843 efl_text_set(rd, "Enabled"); 843 efl_text_set(rd, "Enabled");
844 efl_gfx_hint_weight_set(rd, 1, 0); 844 efl_gfx_hint_weight_set(rd, 1, 0);
845 efl_event_callback_add(rd, EFL_UI_CHECK_EVENT_SELECTED_CHANGED, 845 efl_event_callback_add(rd, EFL_UI_EVENT_SELECTED_CHANGED,
846 loop_radio_cb, pager); 846 loop_radio_cb, pager);
847 efl_pack(box, rd); 847 efl_pack(box, rd);
848 848