rimmed pushed a commit to branch master.

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

commit 1c5c2b6a2f745d49776cba57fcdf13757558d125
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Fri Dec 11 11:11:31 2015 +0200

    groupedit: fix part unselection
---
 src/bin/ui/workspace/groupedit.c | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/bin/ui/workspace/groupedit.c b/src/bin/ui/workspace/groupedit.c
index fae1fad..bdce63a 100644
--- a/src/bin/ui/workspace/groupedit.c
+++ b/src/bin/ui/workspace/groupedit.c
@@ -438,10 +438,11 @@ groupedit_edit_object_part_select(Evas_Object *obj, const 
char *part)
         sd->selected = gp;
      }
    else
-     gp = NULL;
-
-   if (sd->selected && sd->selected->current_item)
-     elm_object_signal_emit(sd->selected->current_item->layout, 
"border,part_item,hilight,off", "eflete");
+     {
+        if (sd->selected && sd->selected->current_item)
+          elm_object_signal_emit(sd->selected->current_item->layout, 
"border,part_item,hilight,off", "eflete");
+        sd->selected = NULL;
+     }
 }
 
 TODO("remove this from public API and use callback from part list");
@@ -484,18 +485,18 @@ groupedit_edit_object_part_item_selected_set(Evas_Object 
*obj,
    if (!gp) return;
 
    if (!item_name) return;
-   item = _part_item_search(gp->items, item_name);
-   if (gp->current_item)
-     elm_object_signal_emit(gp->current_item->layout, 
"border,part_item,hilight,off", "eflete");
 
    if (selected)
      {
+        item = _part_item_search(gp->items, item_name);
+        if (gp->current_item)
+          elm_object_signal_emit(gp->current_item->layout, 
"border,part_item,hilight,off", "eflete");
         elm_object_signal_emit(item->layout, "border,part_item,hilight,on", 
"eflete");
         gp->current_item = item;
      }
    else
      {
-        elm_object_signal_emit(item->layout, "border,part_item,hilight,off", 
"eflete");
+        elm_object_signal_emit(gp->current_item->layout, 
"border,part_item,hilight,off", "eflete");
         gp->current_item = NULL;
      }
 }

-- 


Reply via email to