Replaced Wi-Fi CAPI with Wi-Fi manager CAPI
[apps/native/ug-mobile-ap.git] / src / mh_popup.c
index 397474b..2c9a088 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
 
@@ -395,7 +395,7 @@ static void __language_changed_cb(void *data, Evas_Object *obj, void *event_info
 
        switch (ad->type) {
        case TETHERING_TYPE_WIFI:
-               wifi_is_activated(&wifi_state);
+               wifi_manager_is_activated(ad->wifi_handle, &wifi_state);
                _set_vconf_prev_wifi_state(wifi_state);
                if (wifi_state == true || _is_wifi_direct_on() == true)
                        fmt = STR_TETH_ON_DESC_1;
@@ -556,6 +556,7 @@ Eina_Bool _create_popup(mh_appdata_t *ad)
 
        case MH_POPUP_WIFI_OFF:
                popup = elm_popup_add(ad->win);
+               elm_popup_align_set(popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
                ad->popup = popup;
 
                elm_object_domain_translatable_part_text_set(popup, "title,text", PACKAGE,
@@ -591,6 +592,7 @@ Eina_Bool _create_popup(mh_appdata_t *ad)
        case MH_POPUP_FLIGHT_MODE:
        case MH_POPUP_NETWORK_OUT_OF_RANGE:
                popup = elm_popup_add(ad->win);
+               elm_popup_align_set(popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
                ad->popup = popup;
                evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND,
                                EVAS_HINT_EXPAND);
@@ -618,6 +620,7 @@ Eina_Bool _create_popup(mh_appdata_t *ad)
 
        case MH_POPUP_MOBILE_DATA_OFF:
                popup = elm_popup_add(ad->win);
+               elm_popup_align_set(popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
                ad->popup = popup;
                evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND,
                                EVAS_HINT_EXPAND);
@@ -647,6 +650,7 @@ Eina_Bool _create_popup(mh_appdata_t *ad)
 
        case MH_POPUP_WIFI_AP_OFF:
                popup = elm_popup_add(ad->win);
+               elm_popup_align_set(popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
                ad->popup = popup;
                evas_object_size_hint_weight_set(popup,
                                EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);