forked from enlightenment/efl
suite_helpers: punsh some sanity into function names
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9661
This commit is contained in:
parent
35f9fc26e3
commit
1c1c3685fe
|
@ -177,7 +177,7 @@ EFL_START_TEST(efl_ui_test_popup_events)
|
|||
popup = efl_add(EFL_UI_POPUP_CLASS, win);
|
||||
|
||||
efl_event_callback_add(popup, EFL_UI_POPUP_EVENT_BACKWALL_CLICKED,
|
||||
(void*)event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointer_when_called, &called);
|
||||
(void*)event_callback_single_call_int_data, &called);
|
||||
efl_event_callback_add(popup, EFL_UI_POPUP_EVENT_TIMEOUT, event_callback_that_quits_the_main_loop_when_called, NULL);
|
||||
efl_gfx_hint_size_min_set(popup, EINA_SIZE2D(POPUP_SIZE, POPUP_SIZE));
|
||||
|
||||
|
@ -199,7 +199,7 @@ EFL_START_TEST(efl_ui_test_popup_events)
|
|||
efl_gfx_entity_size_set(repeat_test_btn, EINA_SIZE2D(100, 100));
|
||||
efl_text_set(repeat_test_btn, "Repeat Event Test");
|
||||
efl_event_callback_add(repeat_test_btn, EFL_INPUT_EVENT_CLICKED,
|
||||
(void*)event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointer_when_called, &called);
|
||||
(void*)event_callback_single_call_int_data, &called);
|
||||
efl_ui_popup_part_backwall_repeat_events_set(efl_part(popup, "backwall"), EINA_TRUE);
|
||||
click_object(repeat_test_btn);
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ EFL_START_TEST(elm_actionslider_test_callbacks)
|
|||
elm_actionslider_enabled_pos_set(as, ELM_ACTIONSLIDER_LEFT |
|
||||
ELM_ACTIONSLIDER_CENTER | ELM_ACTIONSLIDER_RIGHT);
|
||||
evas_object_smart_callback_add(as, "pos_changed",
|
||||
event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointer_when_called, &called);
|
||||
event_callback_single_call_int_data, &called);
|
||||
evas_object_smart_callback_add(as, "selected", test_selected_cb, &called);
|
||||
|
||||
get_me_to_those_events(as);
|
||||
|
|
|
@ -58,7 +58,7 @@ EFL_START_TEST(elm_bubble_test_callbacks)
|
|||
elm_object_part_text_set(bb, "info", "Corner: bottom_right");
|
||||
elm_object_part_content_set(bb, "icon", ic);
|
||||
elm_bubble_pos_set(bb, ELM_BUBBLE_POS_BOTTOM_RIGHT);
|
||||
evas_object_smart_callback_add(bb, "clicked", event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointer_when_called, &called);
|
||||
evas_object_smart_callback_add(bb, "clicked", event_callback_single_call_int_data, &called);
|
||||
evas_object_show(ic);
|
||||
evas_object_size_hint_weight_set(bb, EVAS_HINT_EXPAND, 0.0);
|
||||
evas_object_size_hint_align_set(bb, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||
|
|
|
@ -506,7 +506,7 @@ wheel_part(Eo *obj, const char *part, Eina_Bool horiz, Eina_Bool down)
|
|||
}
|
||||
|
||||
void
|
||||
event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointer_when_called(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
event_callback_single_call_int_data(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
int *called = data;
|
||||
|
||||
|
|
|
@ -17,6 +17,6 @@ void click_object_at(Eo *obj, int x, int y);
|
|||
void wheel_object(Eo *obj, Eina_Bool horiz, Eina_Bool down);
|
||||
void wheel_part(Eo *obj, const char *part, Eina_Bool horiz, Eina_Bool down);
|
||||
void wheel_object_at(Eo *obj, int x, int y, Eina_Bool horiz, Eina_Bool down);
|
||||
void event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointer_when_called(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED);
|
||||
void event_callback_single_call_int_data(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED);
|
||||
void event_callback_that_quits_the_main_loop_when_called();
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue