add ui-gadget and fix them
[apps/home/settings.git] / setting-security / src / setting-security.c
index 459c56b..40efd84 100755 (executable)
@@ -279,17 +279,18 @@ int pwd_handler_sec_pw_pin1_blocked(SettingSecurityUG *data, void *arg)
        char popup_text[2048] = {0,};
        snprintf(popup_text, 2048, "%s", _(PIN_BLOCKED_ENTER_PUK_DESC));
 
+       int ret = 0;
+
+#if 0
        Ecore_X_Window xwin = 0;
        Ecore_X_Display *disp = NULL;
 
-       int ret = 0;
        disp = ecore_x_display_get();
        xwin = elm_win_xwindow_get(ad->win_get);
 
        ecore_x_netwm_window_type_set(xwin, ECORE_X_WINDOW_TYPE_NOTIFICATION);
        utilx_set_system_notification_level(disp, xwin, UTILX_NOTIFICATION_LEVEL_LOW);
 
-#if 0
        ret = utilx_grab_key(disp, xwin, KEY_BACK, EXCLUSIVE_GRAB);
        if (ret)
                SETTING_TRACE("utilx_grab_key() failed.");
@@ -302,7 +303,6 @@ int pwd_handler_sec_pw_pin1_blocked(SettingSecurityUG *data, void *arg)
        ret = utilx_grab_key(disp, xwin, KEY_VOLUMEDOWN, TOP_POSITION_GRAB);
        if (ret)
                SETTING_TRACE("utilx_grab_key() failed.");
-#endif
        unsigned int val[3];
        val[0] = 0;     /* always enable F */
        val[1] = 0;             /* quickpanel enable F */
@@ -311,6 +311,7 @@ int pwd_handler_sec_pw_pin1_blocked(SettingSecurityUG *data, void *arg)
        Ecore_X_Atom ATOM_PANEL_SCROLLABLE_STATE = 0;
        ATOM_PANEL_SCROLLABLE_STATE = ecore_x_atom_get("_E_MOVE_PANEL_SCROLLABLE_STATE");
        ecore_x_window_prop_card32_set(xwin, ATOM_PANEL_SCROLLABLE_STATE, val, 3);
+#endif
 
        ad->sim_popup = setting_create_popup_with_btn(ad, ad->win_get, NULL,
                                                      popup_text,
@@ -534,10 +535,10 @@ static void setting_security_ug_on_pause(ui_gadget_h ug, app_control_h service,
                app_manager_is_running("org.tizen.pwlock", &is_running);
                if (is_running) {
                        SETTING_TRACE_DEBUG("pwlock is running");
-                       Ecore_X_Window xwin = 0;
-                       Ecore_X_Display *disp = NULL;
 
 #if 0
+                       Ecore_X_Window xwin = 0;
+                       Ecore_X_Display *disp = NULL;
                        disp = ecore_x_display_get();
                        xwin = elm_win_xwindow_get(securityUG->win_get);
 
@@ -884,13 +885,13 @@ void setting_security_end_password_ug_cb(ui_gadget_h ug,
 
        if (setting_view_security_sim_settings.is_create == TRUE && ad->pw_type == SETTING_SEC_PW_PIN1_UNBLOCKED) {
                SETTING_TRACE("ungrab keys");
+#if 0
                /* ungrab keys. */
                Ecore_X_Window xwin = 0;
                Ecore_X_Display *disp = NULL;
 
                int ret = 0;
 
-#if 0
                disp = ecore_x_display_get();
                xwin = elm_win_xwindow_get((Evas_Object *)ug_get_window());