diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2019-08-20 17:32:15 +0200 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2019-08-26 14:42:49 +0200 |
commit | 1c1c3685fee081f314d4a77169435e9589436109 (patch) | |
tree | 837ea0983f64225e420fb048a93d8d1923b2612f | |
parent | 35f9fc26e3d3c08d1404184ad15ef4035dc3d896 (diff) | |
download | efl-1c1c3685fee081f314d4a77169435e9589436109.tar.gz |
suite_helpers: punsh some sanity into function names
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D9661
-rw-r--r-- | src/tests/elementary/efl_ui_test_popup.c | 4 | ||||
-rw-r--r-- | src/tests/elementary/elm_test_actionslider.c | 2 | ||||
-rw-r--r-- | src/tests/elementary/elm_test_bubble.c | 2 | ||||
-rw-r--r-- | src/tests/elementary/suite_helpers.c | 2 | ||||
-rw-r--r-- | src/tests/elementary/suite_helpers.h | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/src/tests/elementary/efl_ui_test_popup.c b/src/tests/elementary/efl_ui_test_popup.c index a1d6d4f17f..eea9967cc4 100644 --- a/src/tests/elementary/efl_ui_test_popup.c +++ b/src/tests/elementary/efl_ui_test_popup.c @@ -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); diff --git a/src/tests/elementary/elm_test_actionslider.c b/src/tests/elementary/elm_test_actionslider.c index 4210ec6c13..4b89f131fe 100644 --- a/src/tests/elementary/elm_test_actionslider.c +++ b/src/tests/elementary/elm_test_actionslider.c @@ -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); diff --git a/src/tests/elementary/elm_test_bubble.c b/src/tests/elementary/elm_test_bubble.c index b91a402ae9..57a383ef1c 100644 --- a/src/tests/elementary/elm_test_bubble.c +++ b/src/tests/elementary/elm_test_bubble.c @@ -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); diff --git a/src/tests/elementary/suite_helpers.c b/src/tests/elementary/suite_helpers.c index 5c89446a47..81da3813f6 100644 --- a/src/tests/elementary/suite_helpers.c +++ b/src/tests/elementary/suite_helpers.c @@ -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; diff --git a/src/tests/elementary/suite_helpers.h b/src/tests/elementary/suite_helpers.h index 26cadf1c79..d0ada37fb8 100644 --- a/src/tests/elementary/suite_helpers.h +++ b/src/tests/elementary/suite_helpers.h @@ -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 |