summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_photocam.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-09-24 11:18:57 -0400
committerCedric Bail <cedric.bail@free.fr>2019-09-24 15:23:15 -0700
commit3d3cdc5955560726f0b9a8cef492274a1f7254a4 (patch)
treedb17c01b91b5a1d98367a2e168154fd1a0f4c974 /src/bin/elementary/test_photocam.c
parent89bee7a11a61d08cc758b061fd2f5e705d1f9029 (diff)
efl/player: rename 'play' property to 'pause'
this is a bit of an overhaul wherein the existing 'play' mechanics are all inverted. 'pause' is a state which stops playback but does not affect the playback_position property. this patch also includes implementations of Efl.Player::playing for a couple classes which (now) only implement pause, as this is a requirement for the objects to actually activate their animations test cases: * unit tests * all elm_test animation cases * elm_test video * rage Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D10114
Diffstat (limited to '')
-rw-r--r--src/bin/elementary/test_photocam.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/elementary/test_photocam.c b/src/bin/elementary/test_photocam.c
index 70d6da2..c26be3a 100644
--- a/src/bin/elementary/test_photocam.c
+++ b/src/bin/elementary/test_photocam.c
@@ -153,7 +153,7 @@ my_bt_open(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
153 153
154 if (file && eina_str_has_extension(file, ".gif") 154 if (file && eina_str_has_extension(file, ".gif")
155 && efl_playable_get(ph)) 155 && efl_playable_get(ph))
156 efl_player_play_set(ph, EINA_TRUE); 156 efl_player_playing_set(ph, EINA_TRUE);
157} 157}
158 158
159static void 159static void
@@ -754,11 +754,11 @@ test_photocam_icon(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
754static void 754static void
755_zoomable_clicked_cb(void *data EINA_UNUSED, const Efl_Event *ev) 755_zoomable_clicked_cb(void *data EINA_UNUSED, const Efl_Event *ev)
756{ 756{
757 Eina_Bool play; 757 Eina_Bool paused;
758 758
759 play = !efl_player_play_get(ev->object); 759 paused = efl_player_paused_get(ev->object);
760 printf("image clicked! play = %d\n", play); 760 printf("image clicked! paused = %d\n", paused);
761 efl_player_play_set(ev->object, play); 761 efl_player_paused_set(ev->object, !paused);
762} 762}
763 763
764static void 764static void
@@ -832,7 +832,7 @@ test_image_zoomable_animated(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSE
832 if (efl_playable_get(zoomable)) 832 if (efl_playable_get(zoomable))
833 { 833 {
834 printf("animation is available for this image.\n"); 834 printf("animation is available for this image.\n");
835 efl_player_play_set(zoomable, EINA_TRUE); 835 efl_player_playing_set(zoomable, EINA_TRUE);
836 } 836 }
837 837
838 rect = efl_add(EFL_CANVAS_RECTANGLE_CLASS, win, 838 rect = efl_add(EFL_CANVAS_RECTANGLE_CLASS, win,