summaryrefslogtreecommitdiff
path: root/src/tests/emotion
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-03 17:23:21 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-04 11:52:16 +0900
commitefac7d523ac4be16e1d81541a887dd847c7d9d2c (patch)
tree7518db1c5d1d3fa5cb6c7af9e514256a7979d687 /src/tests/emotion
parentad7e16bcf4af199645da45989e866cb50ced6344 (diff)
edje: Move signal APIs to an interface
This interface will be used by elm_layout as well. Ref T5315
Diffstat (limited to 'src/tests/emotion')
-rw-r--r--src/tests/emotion/emotion_test_main-eo.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/tests/emotion/emotion_test_main-eo.c b/src/tests/emotion/emotion_test_main-eo.c
index 0848db5fef..0f33f5a7af 100644
--- a/src/tests/emotion/emotion_test_main-eo.c
+++ b/src/tests/emotion/emotion_test_main-eo.c
@@ -434,7 +434,7 @@ video_obj_signal_play_cb(void *data, Evas_Object *o, const char *emission EINA_U
434{ 434{
435 Evas_Object *ov = data; 435 Evas_Object *ov = data;
436 emotion_object_play_set(ov, EINA_TRUE); 436 emotion_object_play_set(ov, EINA_TRUE);
437 edje_obj_signal_emit(o, "video_state", "play"); 437 efl_canvas_layout_signal_emit(o, "video_state", "play");
438} 438}
439 439
440static void 440static void
@@ -442,7 +442,7 @@ video_obj_signal_pause_cb(void *data, Evas_Object *o, const char *emission EINA_
442{ 442{
443 Evas_Object *ov = data; 443 Evas_Object *ov = data;
444 emotion_object_play_set(ov, EINA_FALSE); 444 emotion_object_play_set(ov, EINA_FALSE);
445 edje_obj_signal_emit(o, "video_state", "pause"); 445 efl_canvas_layout_signal_emit(o, "video_state", "pause");
446} 446}
447 447
448static void 448static void
@@ -451,7 +451,7 @@ video_obj_signal_stop_cb(void *data, Evas_Object *o, const char *emission EINA_U
451 Evas_Object *ov = data; 451 Evas_Object *ov = data;
452 emotion_object_play_set(ov, EINA_FALSE); 452 emotion_object_play_set(ov, EINA_FALSE);
453 emotion_object_position_set(ov, 0.0); 453 emotion_object_position_set(ov, 0.0);
454 edje_obj_signal_emit(o, "video_state", "stop"); 454 efl_canvas_layout_signal_emit(o, "video_state", "stop");
455} 455}
456 456
457static void 457static void
@@ -630,22 +630,22 @@ init_video_object(const char *module_filename, const char *filename)
630 630
631 efl_event_callback_array_add(o, emotion_object_test_callbacks(), oe); 631 efl_event_callback_array_add(o, emotion_object_test_callbacks(), oe);
632 632
633 edje_obj_signal_callback_add(oe, "video_control", "play", video_obj_signal_play_cb, o); 633 efl_canvas_layout_signal_callback_add(oe, "video_control", "play", video_obj_signal_play_cb, o);
634 edje_obj_signal_callback_add(oe, "video_control", "pause", video_obj_signal_pause_cb, o); 634 efl_canvas_layout_signal_callback_add(oe, "video_control", "pause", video_obj_signal_pause_cb, o);
635 edje_obj_signal_callback_add(oe, "video_control", "stop", video_obj_signal_stop_cb, o); 635 efl_canvas_layout_signal_callback_add(oe, "video_control", "stop", video_obj_signal_stop_cb, o);
636 edje_obj_signal_callback_add(oe, "drag", "video_progress", video_obj_signal_jump_cb, o); 636 efl_canvas_layout_signal_callback_add(oe, "drag", "video_progress", video_obj_signal_jump_cb, o);
637 edje_obj_signal_callback_add(oe, "drag", "video_alpha", video_obj_signal_alpha_cb, o); 637 efl_canvas_layout_signal_callback_add(oe, "drag", "video_alpha", video_obj_signal_alpha_cb, o);
638 edje_obj_signal_callback_add(oe, "drag", "video_volume", video_obj_signal_vol_cb, o); 638 efl_canvas_layout_signal_callback_add(oe, "drag", "video_volume", video_obj_signal_vol_cb, o);
639 edje_obj_signal_callback_add(oe, "frame_move", "start", video_obj_signal_frame_move_start_cb, oe); 639 efl_canvas_layout_signal_callback_add(oe, "frame_move", "start", video_obj_signal_frame_move_start_cb, oe);
640 edje_obj_signal_callback_add(oe, "frame_move", "stop", video_obj_signal_frame_move_stop_cb, oe); 640 efl_canvas_layout_signal_callback_add(oe, "frame_move", "stop", video_obj_signal_frame_move_stop_cb, oe);
641 edje_obj_signal_callback_add(oe, "frame_resize", "start", video_obj_signal_frame_resize_start_cb, oe); 641 efl_canvas_layout_signal_callback_add(oe, "frame_resize", "start", video_obj_signal_frame_resize_start_cb, oe);
642 edje_obj_signal_callback_add(oe, "frame_resize", "stop", video_obj_signal_frame_resize_stop_cb, oe); 642 efl_canvas_layout_signal_callback_add(oe, "frame_resize", "stop", video_obj_signal_frame_resize_stop_cb, oe);
643 edje_obj_signal_callback_add(oe, "mouse, move", "*", video_obj_signal_frame_move_cb, oe); 643 efl_canvas_layout_signal_callback_add(oe, "mouse, move", "*", video_obj_signal_frame_move_cb, oe);
644 efl_ui_drag_value_set(efl_part(oe, "video_alpha"), 0.0, 1.0); 644 efl_ui_drag_value_set(efl_part(oe, "video_alpha"), 0.0, 1.0);
645 efl_text_set(efl_part(oe, "video_alpha_txt"), "alpha 255"); 645 efl_text_set(efl_part(oe, "video_alpha_txt"), "alpha 255");
646 efl_ui_drag_value_set(efl_part(oe, "video_volume"), 0.0, 0.5); 646 efl_ui_drag_value_set(efl_part(oe, "video_volume"), 0.0, 0.5);
647 efl_text_set(efl_part(oe, "video_volume_txt"), "vol 0.50"); 647 efl_text_set(efl_part(oe, "video_volume_txt"), "vol 0.50");
648 edje_obj_signal_emit(oe, "video_state", "play"); 648 efl_canvas_layout_signal_emit(oe, "video_state", "play");
649 efl_gfx_visible_set(oe, EINA_TRUE); 649 efl_gfx_visible_set(oe, EINA_TRUE);
650} 650}
651 651