From: Chengwei Yang Date: Tue, 23 Oct 2012 09:25:11 +0000 (+0800) Subject: Fix invalid vconf key and incorrect debug output X-Git-Tag: submit/tizen_2.1/20130424.223356~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b40ff757c03742249b76518b4e656cf20c67109;p=apps%2Fhome%2Fmenu-screen.git Fix invalid vconf key and incorrect debug output 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 --- diff --git a/debian/org.tizen.menu-screen.postinst b/debian/org.tizen.menu-screen.postinst index 129d28f..e16c323 100644 --- a/debian/org.tizen.menu-screen.postinst +++ b/debian/org.tizen.menu-screen.postinst @@ -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 } diff --git a/packaging/org.tizen.menu-screen.spec b/packaging/org.tizen.menu-screen.spec index 9699b0f..50ddee2 100644 --- a/packaging/org.tizen.menu-screen.spec +++ b/packaging/org.tizen.menu-screen.spec @@ -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 } diff --git a/src/menu_screen.c b/src/menu_screen.c index ce55d8a..7916392 100644 --- a/src/menu_screen.c +++ b/src/menu_screen.c @@ -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(