Efl.Ui.Image.Zoomable: implement efl.player.playable.get
authorAmitesh Singh <amitesh.sh@samsung.com>
Wed, 7 Jun 2017 05:57:06 +0000 (14:57 +0900)
committerAmitesh Singh <amitesh.sh@samsung.com>
Thu, 8 Jun 2017 08:39:45 +0000 (17:39 +0900)
ref T5352

src/lib/elementary/efl_ui_image_zoomable.c
src/lib/elementary/efl_ui_image_zoomable.eo

index 24a3f0e..3488bb0 100644 (file)
@@ -2617,6 +2617,13 @@ _efl_ui_image_zoomable_gesture_enabled_get(Eo *obj EINA_UNUSED, Efl_Ui_Image_Zoo
    return sd->do_gesture;
 }
 
+EOLIAN static Eina_Bool
+_efl_ui_image_zoomable_efl_player_playable_get(Eo *obj EINA_UNUSED, Efl_Ui_Image_Zoomable_Data *sd)
+{
+   if (sd->icon_edje) return EINA_TRUE;
+   return evas_object_image_animated_get(sd->img);
+}
+
 EOLIAN static void
 _efl_ui_image_zoomable_class_constructor(Efl_Class *klass)
 {
index cba8268..0d50295 100644 (file)
@@ -52,6 +52,7 @@ class Efl.Ui.Image.Zoomable (Efl.Ui.Image, Efl.Ui.Zoom,
       Efl.Gfx.View.view_size { get; }
       Efl.Image.image_size { get; }
       Efl.Ui.Image.icon { set; get; }
+      Efl.Player.playable { get; }
       Efl.Ui.Zoom.zoom_animation { set; get; }
       Efl.Ui.Zoom.zoom { set; get; }
       Efl.Ui.Zoom.zoom_mode { set; get; }