rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=bfc4536b38d13e2058b3e3f62ca86a6f45ccb1be

commit bfc4536b38d13e2058b3e3f62ca86a6f45ccb1be
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Mon Oct 26 16:11:07 2015 +0200

    workspace: fix highlight after part deletion
---
 src/bin/ui/workspace/workspace.c | 22 ++++++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)

diff --git a/src/bin/ui/workspace/workspace.c b/src/bin/ui/workspace/workspace.c
index ea509e0..88cb230 100644
--- a/src/bin/ui/workspace/workspace.c
+++ b/src/bin/ui/workspace/workspace.c
@@ -1262,9 +1262,9 @@ _on_part_list_part_state_select(void *data,
 }
 
 static void
-_on_part_unselect(void *data,
-                  Evas_Object *obj __UNUSED__,
-                  void *event_info __UNUSED__)
+_on_groupedit_part_unselect(void *data,
+                            Evas_Object *obj __UNUSED__,
+                            void *event_info __UNUSED__)
 {
    Evas_Object *workspace = (Evas_Object *)data;
 
@@ -1274,6 +1274,18 @@ _on_part_unselect(void *data,
    part_list_part_select(sd->part_list, NULL);
 }
 
+static void
+_on_part_list_part_unselect(void *data,
+                            Evas_Object *obj __UNUSED__,
+                            void *event_info __UNUSED__)
+{
+   Evas_Object *workspace = (Evas_Object *)data;
+
+   WS_DATA_GET(workspace, sd);
+
+   _workspace_highlight_unset(workspace);
+}
+
 Evas_Object *
 workspace_add(Evas_Object *parent, Group *group)
 {
@@ -1330,7 +1342,9 @@ workspace_add(Evas_Object *parent, Group *group)
    evas_object_smart_callback_add(sd->groupedit, 
SIGNAL_GROUPEDIT_PART_SELECTED,
                                   _on_groupedit_part_select, obj);
    evas_object_smart_callback_add(sd->groupedit, 
SIGNAL_GROUPEDIT_PART_UNSELECTED,
-                                  _on_part_unselect, obj);
+                                  _on_groupedit_part_unselect, obj);
+   evas_object_smart_callback_add(ap.win, SIGNAL_PART_UNSELECTED,
+                                  _on_part_list_part_unselect, obj);
    evas_object_smart_callback_add(sd->groupedit, "container,changed",
                                   _ws_ruler_abs_zero_move_cb, obj);
    evas_object_smart_callback_add(sd->groupedit, "object,area,changed",

-- 


Reply via email to