rimmed pushed a commit to branch master.

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

commit 77a9b28d1f62eccc18e060305052d19f57242278
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Tue Sep 13 17:25:34 2016 +0300

    group_navigator: fix incorrect cast on part_item selection
---
 src/bin/ui/workspace/group_navigator.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/bin/ui/workspace/group_navigator.c 
b/src/bin/ui/workspace/group_navigator.c
index 6624f44..2c4f5e3 100644
--- a/src/bin/ui/workspace/group_navigator.c
+++ b/src/bin/ui/workspace/group_navigator.c
@@ -738,7 +738,7 @@ _selected_cb(void *data,
         if (pl->group->current_selected->resource_type == RESOURCE_TYPE_PART)
           {
              pl->part = (Part *)pl->group->current_selected;
-             evas_object_smart_callback_call(pl->layout, 
SIGNAL_GROUP_NAVIGATOR_PART_SELECTED, pl->group->current_selected);
+             evas_object_smart_callback_call(pl->layout, 
SIGNAL_GROUP_NAVIGATOR_PART_SELECTED, pl->part);
 #if HAVE_TIZEN
              Evas_Object *check = elm_object_item_part_content_get(glit, 
"elm.swallow.icon");
              if (check)
@@ -748,7 +748,7 @@ _selected_cb(void *data,
         else if (pl->group->current_selected->resource_type == 
RESOURCE_TYPE_STATE)
           {
              pl->part = ((State *)pl->group->current_selected)->part;
-             evas_object_smart_callback_call(pl->layout, 
SIGNAL_GROUP_NAVIGATOR_PART_SELECTED, ((State 
*)pl->group->current_selected)->part);
+             evas_object_smart_callback_call(pl->layout, 
SIGNAL_GROUP_NAVIGATOR_PART_SELECTED, pl->part);
              state = elm_object_item_data_get(glit);
              
CRIT_ON_FAIL(editor_part_selected_state_set(pl->group->edit_object, NULL, 
false, true,
                                                          state->part->name,
@@ -758,7 +758,7 @@ _selected_cb(void *data,
         else if (pl->group->current_selected->resource_type == 
RESOURCE_TYPE_ITEM)
           {
              pl->part = ((Part_Item *)pl->group->current_selected)->part;
-             evas_object_smart_callback_call(pl->layout, 
SIGNAL_GROUP_NAVIGATOR_PART_SELECTED, ((State 
*)pl->group->current_selected)->part);
+             evas_object_smart_callback_call(pl->layout, 
SIGNAL_GROUP_NAVIGATOR_PART_SELECTED, pl->part);
           }
         else
           evas_object_smart_callback_call(pl->layout, 
SIGNAL_GROUP_NAVIGATOR_PART_SELECTED, NULL);

-- 


Reply via email to