bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b42eeb4c95c42c9c40d2a159a69dee047ed8de55

commit b42eeb4c95c42c9c40d2a159a69dee047ed8de55
Author: Xavi Artigas <[email protected]>
Date:   Fri Jan 25 12:32:48 2019 +0000

    Implement missing APIs in elm_photo
    
    This widget does not seem to support dragging things on top of it, so 
implement
    the missing property drag_target as a readonly EINA_FALSE.
    
    Ref T5719
    
    Reviewed-by: Marcel Hollerbach <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D7779
---
 src/lib/elementary/elm_photo.c  | 14 ++++++++++++++
 src/lib/elementary/elm_photo.eo |  1 +
 2 files changed, 15 insertions(+)

diff --git a/src/lib/elementary/elm_photo.c b/src/lib/elementary/elm_photo.c
index ea83e27915..0d6e94652a 100644
--- a/src/lib/elementary/elm_photo.c
+++ b/src/lib/elementary/elm_photo.c
@@ -74,6 +74,20 @@ _elm_photo_efl_ui_widget_theme_apply(Eo *obj, Elm_Photo_Data 
*sd)
    return int_ret;
 }
 
+EOLIAN static void
+_elm_photo_efl_ui_draggable_drag_target_set(Eo *obj EINA_UNUSED,
+                                            Elm_Photo_Data *pd EINA_UNUSED,
+                                            Eina_Bool set EINA_UNUSED)
+{
+}
+
+EOLIAN static Eina_Bool
+_elm_photo_efl_ui_draggable_drag_target_get(const Eo *obj EINA_UNUSED,
+                                            Elm_Photo_Data *pd EINA_UNUSED)
+{
+   return EINA_FALSE;
+}
+
 static void
 _icon_move_resize_cb(void *data,
                      Evas *e EINA_UNUSED,
diff --git a/src/lib/elementary/elm_photo.eo b/src/lib/elementary/elm_photo.eo
index 790382d756..e91ef68bc8 100644
--- a/src/lib/elementary/elm_photo.eo
+++ b/src/lib/elementary/elm_photo.eo
@@ -9,5 +9,6 @@ class Elm.Photo extends Efl.Ui.Widget implements Efl.File, 
Efl.Ui.Clickable, Efl
       Efl.Object.constructor;
       Efl.File.file { set; }
       Efl.Ui.Widget.theme_apply;
+      Efl.Ui.Draggable.drag_target { get; set; }
    }
 }

-- 


Reply via email to