summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-09 16:27:01 +0000
committerTom Hacohen <tom@stosb.com>2016-03-09 16:27:01 +0000
commitde897d633f58b81a3b73c0af3ff3c586fdeb8056 (patch)
treea3626a2a3639efa164a604914a4d1cde91bd7891
parentd1a1819813d74361b25fd5c1123f7ac76be9b84f (diff)
downloadelementary-de897d633f58b81a3b73c0af3ff3c586fdeb8056.tar.gz
Image test: Migrate to the new event cb signature.
-rw-r--r--src/tests/elm_test_image.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/tests/elm_test_image.c b/src/tests/elm_test_image.c
index fcc728c8f..ef631c7d2 100644
--- a/src/tests/elm_test_image.c
+++ b/src/tests/elm_test_image.c
@@ -35,28 +35,24 @@ START_TEST (elm_atspi_role_get)
END_TEST
static Eina_Bool
-_async_error_cb(void *data, Eo *obj,
- const Eo_Event_Description *desc EINA_UNUSED,
- void *event_info EINA_UNUSED)
+_async_error_cb(void *data, const Eo_Event *event)
{
Test_Data *td = data;
char path[PATH_MAX];
sprintf(path, pathfmt, td->image_id);
- efl_file_set(obj, path, NULL);
+ efl_file_set(event->obj, path, NULL);
return EO_CALLBACK_CONTINUE;
}
static Eina_Bool
-_async_opened_cb(void *data, Eo *obj,
- const Eo_Event_Description *desc EINA_UNUSED,
- void *event_info EINA_UNUSED)
+_async_opened_cb(void *data, const Eo_Event *event)
{
Test_Data *td = data;
const char *ff, *kk, *r1, *r2;
char path[PATH_MAX];
sprintf(path, pathfmt, td->image_id);
- efl_file_get(obj, &ff, &kk);
+ efl_file_get(event->obj, &ff, &kk);
r1 = strrchr(ff, '/');
r2 = strrchr(path, '/');
ck_assert(!strcmp(r1, r2));
@@ -66,7 +62,7 @@ _async_opened_cb(void *data, Eo *obj,
{
td->image_id++;
sprintf(path, pathfmt, td->image_id);
- efl_file_set(obj, path, NULL);
+ efl_file_set(event->obj, path, NULL);
return EO_CALLBACK_CONTINUE;
}
else if (td->image_id < MAX_IMAGE_ID)
@@ -75,7 +71,7 @@ _async_opened_cb(void *data, Eo *obj,
for (; td->image_id < MAX_IMAGE_ID;)
{
sprintf(path, pathfmt, ++td->image_id);
- efl_file_set(obj, path, NULL);
+ efl_file_set(event->obj, path, NULL);
}
return EO_CALLBACK_CONTINUE;
}