yakov pushed a commit to branch master.

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

commit e28fd62bd2342efc692ea424ca33f2ae4e09eff3
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Tue Apr 14 15:16:17 2015 +0300

    Hide selection border when leave drop target
---
 src/bin/egui_gui/editor.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/bin/egui_gui/editor.c b/src/bin/egui_gui/editor.c
index 054cc67..1122544 100644
--- a/src/bin/egui_gui/editor.c
+++ b/src/bin/egui_gui/editor.c
@@ -1525,6 +1525,14 @@ static void
 _drop_target_enter(void *data, Evas_Object *obj EINA_UNUSED)
 {
    Gui_Widget *wdg = data;
+
+   /* If drop target is not main widget, hide border around main wdg. */
+   const Gui_Widget *main_wdg = wdg_main_wdg_get(wdg);
+   if (wdg != main_wdg)
+     {
+        _wdg_border_draw(main_wdg, EINA_FALSE, BORDER_DROP_TARGET);
+     }
+   /* Draw border around drop target. */
    _wdg_border_draw(wdg, EINA_TRUE, BORDER_DROP_TARGET);
    Eo *wdg_eo = NULL;
    DnD_Info *di = wdg_data_get(wdg_main_wdg_get(wdg), EDITOR_DND_DATA);
@@ -1564,6 +1572,7 @@ static void
 _drop_target_leave(void *data, Evas_Object *obj EINA_UNUSED)
 {
    Gui_Widget *wdg = data;
+   _wdg_border_draw(wdg, EINA_FALSE, BORDER_DROP_TARGET);
    DnD_Info *di = wdg_data_get(wdg_main_wdg_get(wdg), EDITOR_DND_DATA);
    Eo *wdg_eo = NULL;
    const Gui_Context *ctx = wdg_context_get(wdg);

-- 


Reply via email to