summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_ui_scroller.c
diff options
context:
space:
mode:
authorHosang Kim <hosang12.kim@samsung.com>2019-09-16 11:50:12 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-09-16 12:04:27 +0200
commita6aa1b912e12ec8a78c7cef047d46d8123359812 (patch)
tree22dbff987b70acf009c406f3cb0b04df958c60a4 /src/bin/elementary/test_ui_scroller.c
parent1d0a63695369da812b89a838ef21561211632bd9 (diff)
efl.ui.scrollable: fix event name for scrollable
Summary: Event name is applied in the past tense. Meaning of 'stop' is 'stop it early', so I changed it to 'finish' Test Plan: elementary_test -> efl.ui.scroller Reviewers: segfaultxavi, woohyun Reviewed By: segfaultxavi Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9859
Diffstat (limited to '')
-rw-r--r--src/bin/elementary/test_ui_scroller.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/bin/elementary/test_ui_scroller.c b/src/bin/elementary/test_ui_scroller.c
index a042039..02cae9a 100644
--- a/src/bin/elementary/test_ui_scroller.c
+++ b/src/bin/elementary/test_ui_scroller.c
@@ -12,17 +12,17 @@ _bt_clicked(void *data EINA_UNUSED, const Efl_Event *ev)
12} 12}
13 13
14static void 14static void
15_scroll_start_cb(void *data EINA_UNUSED, const Efl_Event *ev) 15_scroll_started_cb(void *data EINA_UNUSED, const Efl_Event *ev)
16{ 16{
17 Eina_Position2D pos = efl_ui_scrollable_content_pos_get(ev->object); 17 Eina_Position2D pos = efl_ui_scrollable_content_pos_get(ev->object);
18 printf("scroll start: %p x: %d y: %d\n", ev->object, pos.x, pos.y); 18 printf("scroll start: %p x: %d y: %d\n", ev->object, pos.x, pos.y);
19} 19}
20 20
21static void 21static void
22_scroll_stop_cb(void *data EINA_UNUSED, const Efl_Event *ev) 22_scroll_finished_cb(void *data EINA_UNUSED, const Efl_Event *ev)
23{ 23{
24 Eina_Position2D pos = efl_ui_scrollable_content_pos_get(ev->object); 24 Eina_Position2D pos = efl_ui_scrollable_content_pos_get(ev->object);
25 printf("scroll stop: %p x: %d y: %d\n", ev->object, pos.x, pos.y); 25 printf("scroll finish: %p x: %d y: %d\n", ev->object, pos.x, pos.y);
26} 26}
27 27
28void 28void
@@ -39,8 +39,8 @@ test_efl_ui_scroller(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void
39 39
40 sc = efl_add(EFL_UI_SCROLLER_CLASS, win, 40 sc = efl_add(EFL_UI_SCROLLER_CLASS, win,
41 efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND), 41 efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
42 efl_event_callback_add(efl_added, EFL_UI_EVENT_SCROLL_START, _scroll_start_cb, NULL), 42 efl_event_callback_add(efl_added, EFL_UI_EVENT_SCROLL_STARTED, _scroll_started_cb, NULL),
43 efl_event_callback_add(efl_added, EFL_UI_EVENT_SCROLL_STOP, _scroll_stop_cb, NULL), 43 efl_event_callback_add(efl_added, EFL_UI_EVENT_SCROLL_FINISHED, _scroll_finished_cb, NULL),
44 efl_content_set(win, efl_added)); 44 efl_content_set(win, efl_added));
45 45
46 bx = efl_add(EFL_UI_BOX_CLASS, sc, 46 bx = efl_add(EFL_UI_BOX_CLASS, sc,
@@ -144,8 +144,8 @@ test_efl_ui_scroller_simple(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED
144 144
145 sc = efl_add(EFL_UI_SCROLLER_CLASS, win, 145 sc = efl_add(EFL_UI_SCROLLER_CLASS, win,
146 efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND), 146 efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
147 efl_event_callback_add(efl_added, EFL_UI_EVENT_SCROLL_START, _scroll_start_cb, NULL), 147 efl_event_callback_add(efl_added, EFL_UI_EVENT_SCROLL_STARTED, _scroll_started_cb, NULL),
148 efl_event_callback_add(efl_added, EFL_UI_EVENT_SCROLL_STOP, _scroll_stop_cb, NULL), 148 efl_event_callback_add(efl_added, EFL_UI_EVENT_SCROLL_FINISHED, _scroll_finished_cb, NULL),
149 efl_content_set(win, efl_added)); 149 efl_content_set(win, efl_added));
150 150
151 bx = efl_add(EFL_UI_BOX_CLASS, sc, 151 bx = efl_add(EFL_UI_BOX_CLASS, sc,
@@ -180,8 +180,8 @@ test_efl_ui_scroller_simple2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSE
180 180
181 sc = efl_add(EFL_UI_SCROLLER_CLASS, win, 181 sc = efl_add(EFL_UI_SCROLLER_CLASS, win,
182 efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND), 182 efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
183 efl_event_callback_add(efl_added, EFL_UI_EVENT_SCROLL_START, _scroll_start_cb, NULL), 183 efl_event_callback_add(efl_added, EFL_UI_EVENT_SCROLL_STARTED, _scroll_started_cb, NULL),
184 efl_event_callback_add(efl_added, EFL_UI_EVENT_SCROLL_STOP, _scroll_stop_cb, NULL), 184 efl_event_callback_add(efl_added, EFL_UI_EVENT_SCROLL_FINISHED, _scroll_finished_cb, NULL),
185 efl_content_set(win, efl_added)); 185 efl_content_set(win, efl_added));
186 186
187 tb = efl_add(EFL_UI_TABLE_CLASS, sc, 187 tb = efl_add(EFL_UI_TABLE_CLASS, sc,