summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcommon/src/ug-nfc-setting-main.c20
-rwxr-xr-xmobile/src/ug-nfc-setting-main.c20
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);