diff options
author | Jihoon Jung <jh8801.jung@samsung.com> | 2016-09-09 13:59:55 +0900 |
---|---|---|
committer | Jihoon Jung <jh8801.jung@samsung.com> | 2016-09-09 14:00:33 +0900 |
commit | b0d01d09d68049b3b4fc99e7c1c85d3b0d33cd22 (patch) | |
tree | 3b844433f7bde5a0be3661a9566f3b06f88483ad | |
parent | aa3c922f31e523ef427131ebf9add2aca56d654a (diff) | |
download | ug-nfc-efl-submit/tizen/20160912.103710.tar.gz ug-nfc-efl-submit/tizen/20160912.103710.tar.bz2 ug-nfc-efl-submit/tizen/20160912.103710.zip |
Remove warning error in Common and Mobile profilesubmit/tizen/20160912.103710submit/tizen/20160909.060657accepted/tizen/wearable/20160912.215638accepted/tizen/mobile/20160912.215604accepted/tizen/common/20160912.181845accepted/tizen/common/20160909.115114
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Change-Id: Idf9a546cde1a0bc2bb65ca1613ca1d587166d5b4
-rwxr-xr-x | common/src/ug-nfc-setting-main.c | 20 | ||||
-rwxr-xr-x | mobile/src/ug-nfc-setting-main.c | 20 |
2 files changed, 38 insertions, 2 deletions
diff --git a/common/src/ug-nfc-setting-main.c b/common/src/ug-nfc-setting-main.c index f27218e..63277b8 100755 --- a/common/src/ug-nfc-setting-main.c +++ b/common/src/ug-nfc-setting-main.c @@ -123,6 +123,24 @@ static void __nfc_activation_changed_cb(bool activated , void *user_data) LOGD("END >>>>"); } +static void __evas_back_click_cb(void *data, Evas_Object *obj, void *event_info) +{ + ugdata_t *ug_data = (ugdata_t *)data; + + LOGD("BEGIN >>>>"); + + if (!ug_data) { + LOGE("data is null"); + return; + } + + __reply_to_launch_request(ug_data->service, APP_CONTROL_RESULT_FAILED); + + ug_destroy_me(ug_data->nfc_setting_ug); + + LOGD("END >>>>"); +} + static Eina_Bool __back_clicked_cb(void *data, Elm_Object_Item *it) { @@ -395,7 +413,7 @@ static void *__ug_nfc_create(ui_gadget_h ug, enum ug_mode mode, /* Push navifreme */ l_button = elm_button_add(ug_data->base_naviframe); elm_object_style_set(l_button, "naviframe/back_btn/default"); - evas_object_smart_callback_add(l_button, "clicked", __back_clicked_cb, ug_data); + evas_object_smart_callback_add(l_button, "clicked", __evas_back_click_cb, ug_data); eext_object_event_callback_add(ug_data->base_naviframe, EEXT_CALLBACK_BACK, eext_naviframe_back_cb, NULL); diff --git a/mobile/src/ug-nfc-setting-main.c b/mobile/src/ug-nfc-setting-main.c index f27218e..63277b8 100755 --- a/mobile/src/ug-nfc-setting-main.c +++ b/mobile/src/ug-nfc-setting-main.c @@ -123,6 +123,24 @@ static void __nfc_activation_changed_cb(bool activated , void *user_data) LOGD("END >>>>"); } +static void __evas_back_click_cb(void *data, Evas_Object *obj, void *event_info) +{ + ugdata_t *ug_data = (ugdata_t *)data; + + LOGD("BEGIN >>>>"); + + if (!ug_data) { + LOGE("data is null"); + return; + } + + __reply_to_launch_request(ug_data->service, APP_CONTROL_RESULT_FAILED); + + ug_destroy_me(ug_data->nfc_setting_ug); + + LOGD("END >>>>"); +} + static Eina_Bool __back_clicked_cb(void *data, Elm_Object_Item *it) { @@ -395,7 +413,7 @@ static void *__ug_nfc_create(ui_gadget_h ug, enum ug_mode mode, /* Push navifreme */ l_button = elm_button_add(ug_data->base_naviframe); elm_object_style_set(l_button, "naviframe/back_btn/default"); - evas_object_smart_callback_add(l_button, "clicked", __back_clicked_cb, ug_data); + evas_object_smart_callback_add(l_button, "clicked", __evas_back_click_cb, ug_data); eext_object_event_callback_add(ug_data->base_naviframe, EEXT_CALLBACK_BACK, eext_naviframe_back_cb, NULL); |