add ui-gadget and fix them
[apps/home/settings.git] / setting-profile / src / setting-profile-common.c
index 1e6c8a1..90bfb79 100644 (file)
@@ -23,7 +23,7 @@
 #include <sys/stat.h>
 #include <dirent.h>
 #include <iniparser.h>
-#include <utilX.h>
+//#include <utilX.h>
 #include <app_manager.h>
 #include <metadata_extractor.h>
 #include <player.h>
@@ -614,6 +614,7 @@ static Eina_Bool __volume_down_timer_cb(void *data)
        return EINA_TRUE;
 }
 
+#if 0
 static Eina_Bool __volume_key_up_cb(void *data, int type, void *event)
 {
        SETTING_TRACE_BEGIN;
@@ -634,7 +635,9 @@ static Eina_Bool __volume_key_up_cb(void *data, int type, void *event)
        }
        return EINA_TRUE;
 }
+#endif
 
+#if 0
 static Eina_Bool __volume_key_down_cb(void *data, int type, void *event)
 {
        SETTING_TRACE_BEGIN;
@@ -812,22 +815,24 @@ static Eina_Bool __volume_key_down_cb(void *data, int type, void *event)
                        }
                }
                ad->updown_timer = ecore_timer_add(0.5, __volume_down_timer_cb, ad);
-       } else if (!safeStrCmp(key, KEY_MENU)) {
+       }
+       #if 0
+       else if (!safeStrCmp(key, KEY_MENU)) {
                SETTING_TRACE("KEY_MENU CLICK.");
        } else if (!safeStrCmp(key, KEY_HOME)) { /*XF86Phone*/
                SETTING_TRACE("KEY_HOME is pressed");
                if (!safeStrCmp(ad->viewtype, "org.tizen.volume"))
                        ug_destroy_me(ad->ug);
        }
+       #endif
 
        return EINA_TRUE;
 }
+#endif
 
 void __setting_sound_ug_key_grab(SettingProfileUG *ad)
 {
        SETTING_TRACE_BEGIN;
-       Ecore_X_Window xwin = 0;
-       Ecore_X_Display *disp = NULL;
 
        int ret = 0;
 
@@ -838,6 +843,8 @@ void __setting_sound_ug_key_grab(SettingProfileUG *ad)
        vconf_set_int(VCONFKEY_STARTER_USE_VOLUME_KEY, 2);
 
 #if 0
+       Ecore_X_Window xwin = 0;
+       Ecore_X_Display *disp = NULL;
        disp = ecore_x_display_get();
        xwin = elm_win_xwindow_get(ad->win_get);
 
@@ -849,7 +856,6 @@ void __setting_sound_ug_key_grab(SettingProfileUG *ad)
        if (ret) {
                SETTING_TRACE_DEBUG("KEY_VOLUMEDOWN grab failed");
        }
-#endif
        if (ad->keydown_handler) {
                ecore_event_handler_del(ad->keydown_handler);
                ad->keydown_handler = NULL;
@@ -866,14 +872,13 @@ void __setting_sound_ug_key_grab(SettingProfileUG *ad)
        if (!ad->keyup_handler)
                SETTING_TRACE_DEBUG("ecore_event_handler_add() failed");
 
+#endif
        SETTING_TRACE_END;
 }
 
 void __setting_sound_ug_key_ungrab(SettingProfileUG *ad)
 {
        SETTING_TRACE_BEGIN;
-       Ecore_X_Window xwin = 0;
-       Ecore_X_Display *disp = NULL;
 
        int ret = 0;
 
@@ -882,6 +887,9 @@ void __setting_sound_ug_key_ungrab(SettingProfileUG *ad)
 
        /* To prevent conflict with volume app */
        vconf_set_int(VCONFKEY_STARTER_USE_VOLUME_KEY, 0);
+#if 0
+       Ecore_X_Window xwin = 0;
+       Ecore_X_Display *disp = NULL;
 
        disp = ecore_x_display_get();
        xwin = elm_win_xwindow_get(ad->win_get);
@@ -907,6 +915,7 @@ void __setting_sound_ug_key_ungrab(SettingProfileUG *ad)
                ecore_event_handler_del(ad->keyup_handler);
                ad->keyup_handler = NULL;
        }
+#endif
 }
 
 Evas_Object *setting_sound_init(void *data)