Fix invalid vconf key and incorrect debug output
authorChengwei Yang <chengwei.yang@intel.com>
Tue, 23 Oct 2012 09:25:11 +0000 (17:25 +0800)
committerbaik <knhoon.baik@samsung.com>
Thu, 6 Dec 2012 10:11:03 +0000 (19:11 +0900)
This commit does two things.

* idle_screen is a typo, should be idle-screen
* error info doesn't correct

Change-Id: I32eb47f7a0652415814da35fe5ecc03fc10bed94
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
debian/org.tizen.menu-screen.postinst
packaging/org.tizen.menu-screen.spec
src/menu_screen.c

index 129d28f68ab58a626057332bd8c674243afc8836..e16c323b9dfb76e95c828f50292d443b3b1facc9 100644 (file)
@@ -8,7 +8,7 @@ init_vconf()
        vconftool set -t int memory/menu-screen/is_menu_screen_done 0 -i -f
 
        # for menu-screen
-       vconftool set -t int memory/idle_screen/top 0 -i -u 5000 -f
+       vconftool set -t int memory/idle-screen/top 0 -i -u 5000 -f
        vconftool set -t string db/setting/menuscreen/package_name "org.tizen.menu-screen" -i -u 5000 -f
 }
 
index 9699b0f66c903b3bfdb405bad05ea68545794e31..50ddee2b1693b99d1869f0a7cc06241c1aa510f6 100644 (file)
@@ -71,7 +71,7 @@ init_vconf()
        vconftool set -t int memory/menu-screen/is_menu_screen_done 0 -i -f
 
        # for menu-screen
-       vconftool set -t int memory/idle_screen/top 0 -i -u 5000 -f
+       vconftool set -t int memory/idle-screen/top 0 -i -u 5000 -f
        vconftool set -t string db/setting/menuscreen/package_name "org.tizen.menu-screen" -i -u 5000 -f
 }
 
index ce55d8a4da55dcbe1ca8d9cfec34839f2fa87bdd..791639227c23aa569b8275ea74822e48b22fa50a 100644 (file)
@@ -372,7 +372,7 @@ static void _pause_cb(void *data)
        _D("Pause start");
 
        if (vconf_set_int(VCONFKEY_IDLE_SCREEN_TOP, VCONFKEY_IDLE_SCREEN_TOP_FALSE) < 0) {
-               _E("Failed to set memory/idle/top to 0");
+               _E("Failed to set %s to 0", VCONFKEY_IDLE_SCREEN_TOP);
        }
 
        menu_screen_info.state = APP_STATE_PAUSE;
@@ -385,7 +385,7 @@ static void _resume_cb(void *data)
        _D("START RESUME");
 
        if (vconf_set_int(VCONFKEY_IDLE_SCREEN_TOP, VCONFKEY_IDLE_SCREEN_TOP_TRUE) < 0) {
-               _E("Failed to set memory/idle/top to 1");
+               _E("Failed to set %s to 1", VCONFKEY_IDLE_SCREEN_TOP);
        }
 
        utilx_hide_fake_effect(
@@ -403,7 +403,7 @@ static void _service_cb(service_h service, void *data)
        _D("START RESET : %d", menu_screen_info.state);
 
        if (vconf_set_int(VCONFKEY_IDLE_SCREEN_TOP, VCONFKEY_IDLE_SCREEN_TOP_TRUE) < 0) {
-               _E("Failed to set memory/idle/top to 1");
+               _E("Failed to set %s to 1", VCONFKEY_IDLE_SCREEN_TOP);
        }
 
        utilx_hide_fake_effect(