Image test: Migrate to the new event cb signature.
authorTom Hacohen <tom@stosb.com>
Wed, 9 Mar 2016 16:27:01 +0000 (16:27 +0000)
committerTom Hacohen <tom@stosb.com>
Wed, 9 Mar 2016 16:27:01 +0000 (16:27 +0000)
legacy/elementary/src/tests/elm_test_image.c

index fcc728c..ef631c7 100644 (file)
@@ -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;
      }