summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJihoon Jung <jh8801.jung@samsung.com>2016-09-09 13:59:55 +0900
committerJihoon Jung <jh8801.jung@samsung.com>2016-09-09 14:00:33 +0900
commitb0d01d09d68049b3b4fc99e7c1c85d3b0d33cd22 (patch)
tree3b844433f7bde5a0be3661a9566f3b06f88483ad /common
parentaa3c922f31e523ef427131ebf9add2aca56d654a (diff)
downloadug-nfc-efl-b0d01d09d68049b3b4fc99e7c1c85d3b0d33cd22.tar.gz
ug-nfc-efl-b0d01d09d68049b3b4fc99e7c1c85d3b0d33cd22.tar.bz2
ug-nfc-efl-b0d01d09d68049b3b4fc99e7c1c85d3b0d33cd22.zip
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com> Change-Id: Idf9a546cde1a0bc2bb65ca1613ca1d587166d5b4
Diffstat (limited to 'common')
-rwxr-xr-xcommon/src/ug-nfc-setting-main.c20
1 files changed, 19 insertions, 1 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);