yakov pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=7e07e2977de4abefd6617ebd88f60db75f57a0dc

commit 7e07e2977de4abefd6617ebd88f60db75f57a0dc
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Wed Nov 11 11:32:10 2015 +0200

    Don't use weak ref for drag window
---
 src/bin/gui/dnd.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/bin/gui/dnd.c b/src/bin/gui/dnd.c
index 84ad4b0..7061c23 100644
--- a/src/bin/gui/dnd.c
+++ b/src/bin/gui/dnd.c
@@ -31,7 +31,7 @@ typedef struct
    Eid *wdg_id; /*Widget id*/
    char *image_path; /* image for DnD icon. */
    Eo *obj; /*object, where drag starts. Used to call cb on delete.  */
-   Eo *drag_window_obj_wref;
+   Eo *drag_window_obj;
 
    Eina_Bool drag_accept;
    void (*dragdone_post_cb)(Eina_Bool accept, const Eo *wdg_eo, const 
Gui_Widget * drag_start_wdg);
@@ -120,7 +120,7 @@ void
 dnd_drag_window_object_visibility_set(Eina_Bool visibility)
 {
    if (_drag_info_global.drag_info)
-      eo_do(_drag_info_global.drag_info->drag_window_obj_wref, 
efl_gfx_visible_set(visibility));
+      eo_do(_drag_info_global.drag_info->drag_window_obj, 
efl_gfx_visible_set(visibility));
 }
 
 Eina_Bool
@@ -434,7 +434,7 @@ _drag_factory_real_object_create(void *data, Evas_Object 
*parent, Evas_Coord *xo
 
    Gui_Session *tmp_session = session_new(MODE_SIMULATOR, EINA_TRUE);
    Eo *o = simulator_widget_create(tmp_session, wdg_get(di->wdg_id), parent);
-   eo_do(o, eo_wref_add(&(di->drag_window_obj_wref)));
+   di->drag_window_obj = o;
 
    return o;
 }
@@ -483,7 +483,7 @@ _drag_widget_object_create(void *data, Evas_Object *parent, 
Evas_Coord *xoff, Ev
    if (yoff) *yoff = cur_y_global;
 
    ic = dnd_drag_obj_create(wdg_get(di->wdg_id), parent);
-   eo_do(ic, eo_wref_add(&(di->drag_window_obj_wref)));
+   di->drag_window_obj = ic;
    return ic;
 }
 

-- 


Reply via email to