jaehyun pushed a commit to branch master.


commit 84a165c5d6904684931ec68a629a8c24b772bb5e
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Wed Feb 24 17:46:42 2016 +0900

    edj_viewer: Fix to call "part,clicked" callback for newly created group.
    Part name list of new group is set before new group is loaded into
    layout. So part name list of new group is not set and "part,clicked"
    signal callback for each part is not called.
    To fix this issue, part name list of new group is set after new group is
    loaded into layout.
 src/lib/edj_viewer.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/lib/edj_viewer.c b/src/lib/edj_viewer.c
index 3a15658..d9911f4 100644
--- a/src/lib/edj_viewer.c
+++ b/src/lib/edj_viewer.c
@@ -52,6 +52,9 @@ struct viewer_s
 const char *PART_NAME = "part_name";
+static void
+view_obj_parts_callbacks_set(view_data *vd);
 static Eina_Bool
 exe_del_event_cb(void *data, int type, void *even);
@@ -158,6 +161,8 @@ view_obj_create_post_job(view_data *vd)
    if (eo_do_ret(vd->enventor, ret, enventor_obj_dummy_parts_get()))
+   view_obj_parts_callbacks_set(vd);
    evas_object_smart_callback_call(vd->enventor, SIG_LIVE_VIEW_LOADED,
@@ -447,8 +452,6 @@ view_obj_create(view_data *vd)
    evas_object_smart_callback_add(vd->layout, "dummy,clicked",
                                   dummy_clicked_cb, vd);
-   view_obj_parts_callbacks_set(vd);
 static void


Reply via email to