rimmed pushed a commit to branch master.

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

commit 6488295768be77520a4e7a43cb66589b00bb7d77
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Fri Feb 12 17:30:54 2016 +0200

    group_navigator: passing data to part_ok callback simplified
---
 src/bin/ui/group_navigator.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/bin/ui/group_navigator.c b/src/bin/ui/group_navigator.c
index 07d0563..e85a4e6 100644
--- a/src/bin/ui/group_navigator.c
+++ b/src/bin/ui/group_navigator.c
@@ -705,13 +705,13 @@ _popup_cancel_clicked(void *data,
 }
 
 static void
-_popup_add_part_ok_clicked(void *data __UNUSED__,
+_popup_add_part_ok_clicked(void *data,
                            Evas_Object *obj __UNUSED__,
                            void *event_info __UNUSED__)
 {
    Ewe_Combobox_Item *item;
    Edje_Part_Type type = EDJE_PART_TYPE_NONE;
-   Part_List *pl = evas_object_data_get(obj, GROUP_NAVIGATOR_DATA);
+   Part_List *pl = data;
    const char *name;
    Eina_Stringshare *msg;
    Change *change;
@@ -832,8 +832,7 @@ _on_menu_add_part_clicked(void *data __UNUSED__,
 
    elm_object_content_set(ap.popup, box);
    BUTTON_ADD(box, pl->popup.btn_add, _("Add"));
-   evas_object_data_set(pl->popup.btn_add, GROUP_NAVIGATOR_DATA, pl);
-   evas_object_smart_callback_add(pl->popup.btn_add, "clicked", 
_popup_add_part_ok_clicked, NULL);
+   evas_object_smart_callback_add(pl->popup.btn_add, "clicked", 
_popup_add_part_ok_clicked, pl);
    elm_object_part_content_set(ap.popup, "button1", pl->popup.btn_add);
    elm_object_disabled_set(pl->popup.btn_add, true);
 

-- 


Reply via email to