Fix 64bit build error
[apps/native/ug-wifi-direct.git] / popup-wifidirect / src / wfd-app-popup-view.c
index c7e4b02..d58170b 100755 (executable)
@@ -3,7 +3,7 @@
 *
 * Copyright 2012  Samsung Electronics Co., Ltd
 
-* Licensed under the Flora License, Version 1.0 (the "License");
+* Licensed under the Flora License, Version 1.1 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 
@@ -81,7 +81,7 @@ static void __popup_resp_cb(void *data, Evas_Object * obj, void *event_info)
        char msg[WFD_POP_STR_MAX_LEN] = {0};
        char *format_str = NULL;
 
-       WFD_APP_LOG(WFD_APP_LOG_HIGH, "popup resp : %d\n", resp);
+       WFD_APP_LOG(WFD_APP_LOG_HIGH, "popup resp : %lu\n", resp);
 
        switch (resp) {
        case /* MT */ WFD_POP_RESP_APRV_CONNECT_PBC_YES:
@@ -438,7 +438,7 @@ static void _smart_ime_cb(void *data, Evas_Object * obj, void *event_info)
 
        char *txt = elm_entry_markup_to_utf8(elm_entry_entry_get((const Evas_Object *) imf_context));
        if (NULL != txt) {
-               WFD_APP_LOG(WFD_APP_LOG_LOW, "* text [%s], len=[%d]", txt, strlen(txt));
+               WFD_APP_LOG(WFD_APP_LOG_LOW, "* text [%s], len=[%zu]", txt, strlen(txt));
                strncpy(connection->wps_pin, txt, sizeof(connection->wps_pin) - 1);
                WFD_IF_FREE_MEM(txt);
        } else {
@@ -846,7 +846,7 @@ static Evas_Object *__wfd_pin_entry_icon_get(void *data, Evas_Object *obj,
        Evas_Object *entry = NULL;
        Evas_Object *button = NULL;
        Ecore_IMF_Context *imf_context;
-       if (g_strcmp0(part, "elm.icon.entry")) {
+       if (g_strcmp0(part, "elm.swallow.content")) {
                __WFD_APP_FUNC_EXIT__;
                return NULL;
        }
@@ -898,7 +898,6 @@ static Evas_Object *__wfd_pin_entry_icon_get(void *data, Evas_Object *obj,
        evas_object_event_callback_add(entry, EVAS_CALLBACK_KEY_DOWN,
                        _entry_keydown_cb, ad);
 
-       elm_object_content_set(obj, entry);
        evas_object_show(entry);
        evas_object_smart_callback_add(entry, "changed", _smart_ime_cb, NULL);
        elm_object_focus_set(entry, EINA_TRUE);
@@ -938,8 +937,7 @@ static void _gl_pswd_check_box_sel(void *data, Evas_Object *obj, void *ei)
        elm_genlist_item_selected_set(item, EINA_FALSE);
        Eina_Bool state = elm_check_state_get(ck);
        elm_check_state_set(ck, !state);
-       if (ad)
-               _chk_changed_cb(ad->pin_entry, ck, NULL);
+       _chk_changed_cb(ad->pin_entry, ck, NULL);
 
        __WFD_APP_FUNC_EXIT__;
 }
@@ -1050,7 +1048,7 @@ Evas_Object *wfd_draw_pop_type_keypad(Evas_Object * win, wfd_popup_t * pop)
 
        ad->pin_entry_itc = elm_genlist_item_class_new();
        if (ad->pin_entry_itc != NULL) {
-               ad->pin_entry_itc->item_style = "entry";
+               ad->pin_entry_itc->item_style = WFD_GENLIST_SWALLOW_CONTENT_STYLE;
                ad->pin_entry_itc->func.text_get = NULL;
                ad->pin_entry_itc->func.content_get = __wfd_pin_entry_icon_get;
                ad->pin_entry_itc->func.state_get = NULL;