rimmed pushed a commit to branch eflete-1.18.

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

commit 703740fa5b4f38bc2e64484ceeec225887015d14
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Tue Sep 20 17:07:03 2016 +0300

    group_navigator: show type of copied part
---
 src/bin/ui/workspace/group_navigator.c | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/src/bin/ui/workspace/group_navigator.c 
b/src/bin/ui/workspace/group_navigator.c
index 1e5dc3e..ea10daf 100644
--- a/src/bin/ui/workspace/group_navigator.c
+++ b/src/bin/ui/workspace/group_navigator.c
@@ -1009,16 +1009,29 @@ _part_selected_cb(void *data,
                   void *event_info)
 {
    Part_List *pl = data;
+   Elm_Genlist_Item *glit;
    Combobox_Item *item;
+   Edje_Part_Type type;
 
    assert(pl != NULL);
 
    item = elm_object_item_data_get(event_info);
    pl->popup.copy_part = item->index;
    if (item->index != 0)
-     elm_object_disabled_set(pl->popup.combobox, true);
+     {
+        type = edje_edit_part_type_get(pl->group->edit_object, 
elm_object_text_get(pl->popup.combobox_copy));
+        elm_object_text_set(pl->popup.combobox, gm_part_type_text_get(type));
+        elm_object_disabled_set(pl->popup.combobox, true);
+     }
    else
-     elm_object_disabled_set(pl->popup.combobox, false);
+     {
+        glit = elm_genlist_first_item_get(pl->popup.combobox);
+        item = elm_object_item_data_get(glit);
+        elm_object_text_set(pl->popup.combobox, item->data);
+        pl->popup.part_type = 0;
+
+        elm_object_disabled_set(pl->popup.combobox, false);
+     }
 }
 
 static void

-- 


Reply via email to