Tizen directory path migration
[apps/native/ug-wifi-direct.git] / ug-wifidirect / src / wfd_ug_popup.c
index d78b65b..5405eeb 100755 (executable)
@@ -23,7 +23,6 @@
 #include <Elementary.h>
 #include <vconf.h>
 #include <ui-gadget-module.h>
-#include <wifi-direct.h>
 #include <efl_extension.h>
 
 #include "wfd_ug.h"
@@ -102,7 +101,6 @@ static void _mouseup_wifi_cb(void *data, Evas *e, Evas_Object *obj, void *event_
 
 static void _keydown_wifi_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
 {
-
        Evas_Event_Key_Down *ev = event_info;
        if (!strcmp(ev->keyname, KEY_BACK)) {
                struct ug_data *ugd = (struct ug_data *) data;
@@ -130,6 +128,8 @@ static void _mouseup_hotspot_cb(void *data, Evas *e, Evas_Object *obj, void *eve
                ugd->act_popup = NULL;
        }
 }
+
+#if 0
 static void _keydown_hotspot_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
 {
        Evas_Event_Key_Down *ev = event_info;
@@ -143,6 +143,7 @@ static void _keydown_hotspot_cb(void *data, Evas *e, Evas_Object *obj, void *eve
                ugd->act_popup = NULL;
        }
 }
+#endif
 
 static void _mouseup_disconnect_all_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
 {
@@ -316,7 +317,7 @@ gboolean _wfd_disconnect_idle_cb(gpointer user_data)
                return FALSE;
        }
        Evas_Object *content;
-       content = elm_object_part_content_unset(ugd->layout, "button.next");
+       content = elm_object_part_content_unset(ugd->button_layout, "button.next");
        WFD_IF_DEL_OBJ(content);
 
        wfd_ug_view_init_genlist(ugd, true);
@@ -530,10 +531,10 @@ void wfd_ug_act_popup(void *data, const char *message, int popup_type)
 
        popup = elm_popup_add(ugd->base);
        elm_popup_align_set(popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
-       eext_object_event_callback_add(popup, EA_CALLBACK_BACK, eext_popup_back_cb, NULL);
+       eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK, eext_popup_back_cb, NULL);
        evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
        elm_object_domain_translatable_part_text_set(popup, "title,text",
-                        PACKAGE, _("IDS_WIFI_HEADER_WI_FI_DIRECT_CONNECTION_ABB"));
+                        PACKAGE, D_("IDS_WIFI_HEADER_WI_FI_DIRECT_CONNECTION_ABB"));
        elm_object_domain_translatable_text_set(popup, PACKAGE, message);
        evas_object_smart_callback_add(popup, "language,changed", act_popup_language_changed, (void *)popup_type);
 
@@ -755,7 +756,7 @@ void warn_popup_language_changed(void *data, Evas_Object *obj, void *event_info)
                                "IDS_ST_POP_DEVICE_CONNECTED_TO_ANOTHER_DEVICE");
                break;
        case POP_TYPE_MULTI_CONNECT_POPUP:
-               snprintf(popup_text, MAX_POPUP_TEXT_SIZE, _("IDS_ST_POP_YOU_CAN_CONNECT_UP_TO_PD_DEVICES_AT_THE_SAME_TIME"), MAX_CONNECTED_PEER_NUM);
+               snprintf(popup_text, MAX_POPUP_TEXT_SIZE, D_("IDS_ST_POP_YOU_CAN_CONNECT_UP_TO_PD_DEVICES_AT_THE_SAME_TIME"), MAX_CONNECTED_PEER_NUM);
                elm_object_domain_translatable_text_set(ugd->warn_popup, PACKAGE,
                                popup_text);
                break;
@@ -782,7 +783,7 @@ void wfd_ug_warn_popup(void *data, const char *message, int popup_type)
 
        popup = elm_popup_add(ugd->base);
        elm_popup_align_set(popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
-       eext_object_event_callback_add(popup, EA_CALLBACK_BACK, eext_popup_back_cb, NULL);
+       eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK, eext_popup_back_cb, NULL);
        evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
        if (popup_type == POP_TYPE_MULTI_CONNECT_POPUP ||
                popup_type == POP_TYPE_BUSY_DEVICE_POPUP) {
@@ -790,7 +791,7 @@ void wfd_ug_warn_popup(void *data, const char *message, int popup_type)
                                 PACKAGE, "IDS_WIFI_HEADER_UNABLE_TO_CONNECT_ABB2");
        } else {
                elm_object_domain_translatable_part_text_set(popup, "title,text",
-                                PACKAGE, _("IDS_WIFI_HEADER_WI_FI_DIRECT_CONNECTION_ABB"));
+                                PACKAGE, D_("IDS_WIFI_HEADER_WI_FI_DIRECT_CONNECTION_ABB"));
        }
        elm_object_domain_translatable_text_set(popup, PACKAGE, message);
        evas_object_smart_callback_add(popup, "language,changed", warn_popup_language_changed, (void *)popup_type);