summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorWooHyun Jung <wh0705.jung@samsung.com>2019-07-29 11:42:34 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-07-29 11:43:01 +0200
commit77e268e6aba2d07b9d4b06c83515041775210c27 (patch)
treef50da1eada65a948147a62ede0cc815e66105784 /src/tests
parent9b294d6284fbda62dde20bcb31732a1c63a65962 (diff)
efl_input_clickable: rename efl_ui_clickable to efl_input_clickable
Summary: Renamed all efl_ui_clickable_XXX to efl_input_clickable_XXX based on the discussion in T7847 ref T7847 T7976 Reviewers: zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7976, T7847 Differential Revision: https://phab.enlightenment.org/D9427
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/elementary/spec/efl_test_clickable.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/tests/elementary/spec/efl_test_clickable.c b/src/tests/elementary/spec/efl_test_clickable.c
index c1b63d38b7..c6ca54883b 100644
--- a/src/tests/elementary/spec/efl_test_clickable.c
+++ b/src/tests/elementary/spec/efl_test_clickable.c
@@ -69,9 +69,9 @@ prepare_window(void)
69 */ 69 */
70 70
71typedef struct { 71typedef struct {
72 Efl_Ui_Clickable_Clicked clicked_params; 72 Efl_Input_Clickable_Clicked clicked_params;
73 unsigned int clicked; 73 unsigned int clicked;
74 Efl_Ui_Clickable_Clicked clicked_all_params; 74 Efl_Input_Clickable_Clicked clicked_all_params;
75 unsigned int clicked_all; 75 unsigned int clicked_all;
76 unsigned int pressed; 76 unsigned int pressed;
77 unsigned int unpressed; 77 unsigned int unpressed;
@@ -84,23 +84,23 @@ Clickable_Event_Register event_caller = { 0 };
84static void 84static void
85_event_register(void *data EINA_UNUSED, const Efl_Event *ev) 85_event_register(void *data EINA_UNUSED, const Efl_Event *ev)
86{ 86{
87#define EVENT_CHECK(e,f) if (ev->desc == EFL_UI_EVENT_ ##e ) event_caller.f ++ 87#define EVENT_CHECK(e,f) if (ev->desc == EFL_INPUT_EVENT_ ##e ) event_caller.f ++
88 EVENT_CHECK(CLICKED, clicked); 88 EVENT_CHECK(CLICKED, clicked);
89 EVENT_CHECK(CLICKED_ANY, clicked_all); 89 EVENT_CHECK(CLICKED_ANY, clicked_all);
90 EVENT_CHECK(PRESSED, pressed); 90 EVENT_CHECK(PRESSED, pressed);
91 EVENT_CHECK(UNPRESSED, unpressed); 91 EVENT_CHECK(UNPRESSED, unpressed);
92 EVENT_CHECK(LONGPRESSED, long_pressed); 92 EVENT_CHECK(LONGPRESSED, long_pressed);
93 93
94 if (ev->desc == EFL_UI_EVENT_CLICKED) 94 if (ev->desc == EFL_INPUT_EVENT_CLICKED)
95 { 95 {
96 Efl_Ui_Clickable_Clicked *clicked = ev->info; 96 Efl_Input_Clickable_Clicked *clicked = ev->info;
97 97
98 event_caller.clicked_params.repeated = clicked->repeated; 98 event_caller.clicked_params.repeated = clicked->repeated;
99 event_caller.clicked_params.button = clicked->button; 99 event_caller.clicked_params.button = clicked->button;
100 } 100 }
101 if (ev->desc == EFL_UI_EVENT_CLICKED_ANY) 101 if (ev->desc == EFL_INPUT_EVENT_CLICKED_ANY)
102 { 102 {
103 Efl_Ui_Clickable_Clicked *clicked = ev->info; 103 Efl_Input_Clickable_Clicked *clicked = ev->info;
104 104
105 event_caller.clicked_all_params.repeated = clicked->repeated; 105 event_caller.clicked_all_params.repeated = clicked->repeated;
106 event_caller.clicked_all_params.button = clicked->button; 106 event_caller.clicked_all_params.button = clicked->button;
@@ -108,11 +108,11 @@ _event_register(void *data EINA_UNUSED, const Efl_Event *ev)
108} 108}
109 109
110EFL_CALLBACKS_ARRAY_DEFINE(clickable, 110EFL_CALLBACKS_ARRAY_DEFINE(clickable,
111 {EFL_UI_EVENT_CLICKED, _event_register}, 111 {EFL_INPUT_EVENT_CLICKED, _event_register},
112 {EFL_UI_EVENT_CLICKED_ANY, _event_register}, 112 {EFL_INPUT_EVENT_CLICKED_ANY, _event_register},
113 {EFL_UI_EVENT_PRESSED, _event_register}, 113 {EFL_INPUT_EVENT_PRESSED, _event_register},
114 {EFL_UI_EVENT_UNPRESSED, _event_register}, 114 {EFL_INPUT_EVENT_UNPRESSED, _event_register},
115 {EFL_UI_EVENT_LONGPRESSED, _event_register}, 115 {EFL_INPUT_EVENT_LONGPRESSED, _event_register},
116) 116)
117 117
118static void 118static void