summaryrefslogtreecommitdiff
path: root/src/tests/emotion
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2016-05-18 08:17:36 -0700
committerCedric Bail <cedric@osg.samsung.com>2016-05-18 08:18:04 -0700
commit75a53ece1007d927b8f0b6c5d3f269726afb9108 (patch)
tree034e6bcccf51916512c5e361666f9f46a1b97069 /src/tests/emotion
parent72adab722226b664ce0b63be46650874cd8b0ef9 (diff)
eo: for consistency use object like all our API.
Diffstat (limited to 'src/tests/emotion')
-rw-r--r--src/tests/emotion/emotion_test_main-eo.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/tests/emotion/emotion_test_main-eo.c b/src/tests/emotion/emotion_test_main-eo.c
index e372e2cbac..83937428c3 100644
--- a/src/tests/emotion/emotion_test_main-eo.c
+++ b/src/tests/emotion/emotion_test_main-eo.c
@@ -326,7 +326,7 @@ video_obj_time_changed(Evas_Object *obj, Evas_Object *edje)
326static Eina_Bool 326static Eina_Bool
327video_obj_frame_decode_cb(void *data, const Eo_Event *event) 327video_obj_frame_decode_cb(void *data, const Eo_Event *event)
328{ 328{
329 video_obj_time_changed(event->obj, data); 329 video_obj_time_changed(event->object, data);
330 330
331 if (0) 331 if (0)
332 { 332 {
@@ -348,16 +348,16 @@ video_obj_frame_resize_cb(void *data, const Eo_Event *event)
348 double ratio; 348 double ratio;
349 349
350 oe = data; 350 oe = data;
351 emotion_object_size_get(event->obj, &iw, &ih); 351 emotion_object_size_get(event->object, &iw, &ih);
352 ratio = emotion_object_ratio_get(event->obj); 352 ratio = emotion_object_ratio_get(event->object);
353 printf("HANDLE %ix%i @ %3.3f\n", iw, ih, ratio); 353 printf("HANDLE %ix%i @ %3.3f\n", iw, ih, ratio);
354 if (ratio > 0.0) iw = (ih * ratio) + 0.5; 354 if (ratio > 0.0) iw = (ih * ratio) + 0.5;
355 evas_object_size_hint_min_set(event->obj, iw, ih); 355 evas_object_size_hint_min_set(event->object, iw, ih);
356 edje_object_part_swallow(oe, "video_swallow", event->obj); 356 edje_object_part_swallow(oe, "video_swallow", event->object);
357 edje_obj_size_min_calc(oe, &w, &h); 357 edje_obj_size_min_calc(oe, &w, &h);
358 efl_gfx_size_set(oe, w, h); 358 efl_gfx_size_set(oe, w, h);
359 evas_object_size_hint_min_set(event->obj, 0, 0); 359 evas_object_size_hint_min_set(event->object, 0, 0);
360 edje_object_part_swallow(oe, "video_swallow", event->obj); 360 edje_object_part_swallow(oe, "video_swallow", event->object);
361 361
362 return EINA_TRUE; 362 return EINA_TRUE;
363} 363}
@@ -366,7 +366,7 @@ static Eina_Bool
366video_obj_length_change_cb(void *data, const Eo_Event *event) 366video_obj_length_change_cb(void *data, const Eo_Event *event)
367{ 367{
368 printf("len change!\n"); 368 printf("len change!\n");
369 video_obj_time_changed(event->obj, data); 369 video_obj_time_changed(event->object, data);
370 370
371 return EINA_TRUE; 371 return EINA_TRUE;
372} 372}
@@ -375,7 +375,7 @@ static Eina_Bool
375video_obj_position_update_cb(void *data, const Eo_Event *event) 375video_obj_position_update_cb(void *data, const Eo_Event *event)
376{ 376{
377 printf("pos up!\n"); 377 printf("pos up!\n");
378 video_obj_time_changed(event->obj, data); 378 video_obj_time_changed(event->object, data);
379 379
380 return EINA_TRUE; 380 return EINA_TRUE;
381} 381}
@@ -386,8 +386,8 @@ video_obj_stopped_cb(void *data EINA_UNUSED, const Eo_Event *event)
386 printf("video stopped!!!\n"); 386 printf("video stopped!!!\n");
387 if (loop) 387 if (loop)
388 { 388 {
389 emotion_object_position_set(event->obj, 0.0); 389 emotion_object_position_set(event->object, 0.0);
390 emotion_object_play_set(event->obj, EINA_TRUE); 390 emotion_object_play_set(event->object, EINA_TRUE);
391 } 391 }
392 392
393 return EINA_TRUE; 393 return EINA_TRUE;
@@ -397,9 +397,9 @@ static Eina_Bool
397video_obj_channels_cb(void *data EINA_UNUSED, const Eo_Event *event) 397video_obj_channels_cb(void *data EINA_UNUSED, const Eo_Event *event)
398{ 398{
399 printf("channels changed: [AUD %i][VID %i][SPU %i]\n", 399 printf("channels changed: [AUD %i][VID %i][SPU %i]\n",
400 emotion_object_audio_channel_count(event->obj), 400 emotion_object_audio_channel_count(event->object),
401 emotion_object_video_channel_count(event->obj), 401 emotion_object_video_channel_count(event->object),
402 emotion_object_spu_channel_count(event->obj)); 402 emotion_object_spu_channel_count(event->object));
403 403
404 return EINA_TRUE; 404 return EINA_TRUE;
405} 405}
@@ -407,7 +407,7 @@ video_obj_channels_cb(void *data EINA_UNUSED, const Eo_Event *event)
407static Eina_Bool 407static Eina_Bool
408 video_obj_title_cb(void *data EINA_UNUSED, const Eo_Event *event) 408 video_obj_title_cb(void *data EINA_UNUSED, const Eo_Event *event)
409{ 409{
410 printf("video title to: \"%s\"\n", emotion_object_title_get(event->obj)); 410 printf("video title to: \"%s\"\n", emotion_object_title_get(event->object));
411 411
412 return EINA_TRUE; 412 return EINA_TRUE;
413} 413}
@@ -416,8 +416,8 @@ static Eina_Bool
416video_obj_progress_cb(void *data EINA_UNUSED, const Eo_Event *event) 416video_obj_progress_cb(void *data EINA_UNUSED, const Eo_Event *event)
417{ 417{
418 printf("progress: \"%s\" %3.3f\n", 418 printf("progress: \"%s\" %3.3f\n",
419 emotion_object_progress_info_get(event->obj), 419 emotion_object_progress_info_get(event->object),
420 emotion_object_progress_status_get(event->obj)); 420 emotion_object_progress_status_get(event->object));
421 421
422 return EINA_TRUE; 422 return EINA_TRUE;
423} 423}
@@ -426,8 +426,8 @@ static Eina_Bool
426video_obj_ref_cb(void *data EINA_UNUSED, const Eo_Event *event) 426video_obj_ref_cb(void *data EINA_UNUSED, const Eo_Event *event)
427{ 427{
428 printf("video ref to: \"%s\" %i\n", 428 printf("video ref to: \"%s\" %i\n",
429 emotion_object_ref_file_get(event->obj), 429 emotion_object_ref_file_get(event->object),
430 emotion_object_ref_num_get(event->obj)); 430 emotion_object_ref_num_get(event->object));
431 431
432 return EINA_TRUE; 432 return EINA_TRUE;
433} 433}
@@ -436,7 +436,7 @@ static Eina_Bool
436video_obj_button_num_cb(void *data EINA_UNUSED, const Eo_Event *event) 436video_obj_button_num_cb(void *data EINA_UNUSED, const Eo_Event *event)
437{ 437{
438 printf("video spu buttons to: %i\n", 438 printf("video spu buttons to: %i\n",
439 emotion_object_spu_button_count_get(event->obj)); 439 emotion_object_spu_button_count_get(event->object));
440 440
441 return EINA_TRUE; 441 return EINA_TRUE;
442} 442}
@@ -445,7 +445,7 @@ static Eina_Bool
445video_obj_button_cb(void *data EINA_UNUSED, const Eo_Event *event) 445video_obj_button_cb(void *data EINA_UNUSED, const Eo_Event *event)
446{ 446{
447 printf("video selected spu button: %i\n", 447 printf("video selected spu button: %i\n",
448 emotion_object_spu_button_get(event->obj)); 448 emotion_object_spu_button_get(event->object));
449 449
450 return EINA_TRUE; 450 return EINA_TRUE;
451} 451}