rimmed pushed a commit to branch master.

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

commit a40c9bfb915102182bd0e525b4daa383401a584a
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Wed Jan 20 12:42:21 2016 +0000

    property_group: callback for Program Select use it's name and not entire 
resource
---
 src/bin/ui/group_navigator.c | 8 +++++++-
 src/bin/ui/property_group.c  | 6 +++---
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/bin/ui/group_navigator.c b/src/bin/ui/group_navigator.c
index bf21358..d11c878 100644
--- a/src/bin/ui/group_navigator.c
+++ b/src/bin/ui/group_navigator.c
@@ -474,6 +474,12 @@ _selected_cb(void *data,
      {
         if (pl->selected_part_item)
           _unselect_part(pl);
+        if (pl->group->current_program)
+          {
+             eina_stringshare_del(pl->group->current_program);
+             pl->group->current_program = NULL;
+          }
+        evas_object_smart_callback_call(ap.win, SIGNAL_PROGRAM_SELECTED, NULL);
         return;
      }
    itc = elm_genlist_item_item_class_get(glit);
@@ -492,7 +498,7 @@ _selected_cb(void *data,
         elm_object_disabled_set(pl->btn_del, false);
         res = elm_object_item_data_get(glit);
         pl->group->current_program = eina_stringshare_add(res->name);
-        evas_object_smart_callback_call(ap.win, SIGNAL_PROGRAM_SELECTED, (void 
*)res);
+        evas_object_smart_callback_call(ap.win, SIGNAL_PROGRAM_SELECTED, (void 
*)res->name);
      }
    else
      {
diff --git a/src/bin/ui/property_group.c b/src/bin/ui/property_group.c
index 6b6c24b..96c980c 100644
--- a/src/bin/ui/property_group.c
+++ b/src/bin/ui/property_group.c
@@ -629,15 +629,15 @@ _on_program_selected(void *data,
 {
    Evas_Object *property = data;
    GROUP_PROP_DATA_GET()
-   Resource *res = event_info;
+   const char *name = event_info;
 
    _on_part_selected(data, obj, NULL);
-   if (!res)
+   if (!name)
      {
         _ui_property_program_unset(property);
         return;
      }
-   _ui_property_program_set(property, res->name);
+   _ui_property_program_set(property, name);
 }
 static void
 _on_program_unselected(void *data,

-- 


Reply via email to