Implement missing APIs in elm_photo
authorXavi Artigas <xavierartigas@yahoo.es>
Fri, 25 Jan 2019 12:32:48 +0000 (12:32 +0000)
committerTaehyub Kim <taehyub.kim@samsung.com>
Thu, 31 Jan 2019 02:05:20 +0000 (11:05 +0900)
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 <marcel-hollerbach@t-online.de>
Differential Revision: https://phab.enlightenment.org/D7779

src/lib/elementary/elm_photo.c
src/lib/elementary/elm_photo.eo

index ea83e27..0d6e946 100644 (file)
@@ -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,
index 790382d..e91ef68 100644 (file)
@@ -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; }
    }
 }