yakov pushed a commit to branch master.

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

commit a7ee58bf7208764dfb99591229c914f4cef55dd5
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Tue Nov 24 10:56:01 2015 +0200

    Use proper API to detect if object is packed into container
---
 src/bin/gui/editor.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/gui/editor.c b/src/bin/gui/editor.c
index 8774555..3bd2ad7 100644
--- a/src/bin/gui/editor.c
+++ b/src/bin/gui/editor.c
@@ -2471,8 +2471,8 @@ _drag_start_post(const Gui_Widget *wdg, const Eo *_wdg_eo)
    /* Unset selected widget. */
    _editor_wdg_selected_set(NULL);
 
-   if (wdg_parent && wdg_obj_container_item_get(wdg_parent, -1, 
wdg_name_get(wdg)))
-     wdg_container = wdg_parent;
+   Eid *wdg_parent_cont_eid = wdg_parent_container_eid_get(wdg);
+   wdg_container = wdg_parent_cont_eid ? wdg_get(wdg_parent_cont_eid) : NULL;
 
    /* Explicitly call enter cb in order to create object, which will be 
dragged. */
    if (IS_MAIN(wdg))

-- 


Reply via email to