rimmed pushed a commit to branch master.

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

commit 8ede7aeb349a083f7f9fcb930740a0cca56b927b
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Wed Dec 16 18:53:12 2015 +0200

    group_navigator: enable arrows when part_item is selected and can be 
restacked
---
 src/bin/ui/group_navigator.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/bin/ui/group_navigator.c b/src/bin/ui/group_navigator.c
index ec27fd8..6e30664 100644
--- a/src/bin/ui/group_navigator.c
+++ b/src/bin/ui/group_navigator.c
@@ -461,6 +461,19 @@ _selected_cb(void *data,
              elm_object_disabled_set(pl->btn_up, false);
           }
      }
+   else if ((itc == pl->itc_item))
+     {
+        if (elm_genlist_item_item_class_get(elm_genlist_item_prev_get(glit)) 
== pl->itc_item)
+          elm_object_disabled_set(pl->btn_up, false);
+        else
+          elm_object_disabled_set(pl->btn_up, true);
+
+        next_item = elm_genlist_item_next_get(glit);
+        if (next_item && (elm_genlist_item_item_class_get(next_item) == 
pl->itc_item))
+          elm_object_disabled_set(pl->btn_down, false);
+        else
+          elm_object_disabled_set(pl->btn_down, true);
+     }
    else
      {
         elm_object_disabled_set(pl->btn_down, true);

-- 


Reply via email to