[TSAM-9583] Add on off callback into check object 65/96165/1 accepted/tizen/common/20161109.140422 accepted/tizen/mobile/20161110.000524 accepted/tizen/wearable/20161110.000544 submit/tizen/20161109.013821
authorJihoon Jung <jh8801.jung@samsung.com>
Tue, 8 Nov 2016 05:11:28 +0000 (14:11 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Tue, 8 Nov 2016 05:21:15 +0000 (21:21 -0800)
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Change-Id: I630c4f28793c4d22590b864134b4f299717f77b6

wearable/app/src/nsa-view-main.c

index 8ccdbff..b2cb7ff 100755 (executable)
@@ -164,6 +164,8 @@ static Evas_Object *__gl_content_get_on_off(void *data, Evas_Object *obj,
                evas_object_propagate_events_set(check, EINA_FALSE);
                evas_object_repeat_events_set(check, EINA_TRUE);
 
+               evas_object_smart_callback_add(check, "changed", __gl_on_off_clicked_cb, data);
+
                return check;
        } else {
                return NULL;
@@ -248,7 +250,7 @@ static Evas_Object *__create_nfc_setting_list(void *data)
                NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
 
        ad->on_off = elm_genlist_item_append(genlist, itc_on_off,
-               NULL, NULL, ELM_GENLIST_ITEM_NONE, __gl_on_off_clicked_cb, ad);
+               ad, NULL, ELM_GENLIST_ITEM_NONE, __gl_on_off_clicked_cb, ad);
 
        ad->tap_n_pay = elm_genlist_item_append(genlist, itc_list,
                ad, NULL, ELM_GENLIST_ITEM_NONE, __gl_tap_n_pay_clicked_cb, ad);