From 6b1393b1f19eeb9a0ae49c917c8f2e8422e7bf7e Mon Sep 17 00:00:00 2001 From: Jaeho Lee Date: Sat, 19 Jan 2013 18:19:36 +0900 Subject: [PATCH] fixed rotation bug Signed-off-by: Jaeho Lee --- packaging/app-core.spec | 2 +- src/appcore-rotation.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packaging/app-core.spec b/packaging/app-core.spec index e717bf5..4c4c838 100644 --- a/packaging/app-core.spec +++ b/packaging/app-core.spec @@ -2,7 +2,7 @@ Name: app-core Summary: Application basic Version: 1.2 -Release: 40 +Release: 41 Group: TO_BE/FILLED_IN License: Apache License, Version 2.0 Source0: app-core-%{version}.tar.gz diff --git a/src/appcore-rotation.c b/src/appcore-rotation.c index e876439..c6657db 100755 --- a/src/appcore-rotation.c +++ b/src/appcore-rotation.c @@ -132,7 +132,7 @@ static void __lock_cb(keynode_t *node, void *data) enum appcore_rm m; int ret; - rot.lock = vconf_keynode_get_bool(node); + rot.lock = !vconf_keynode_get_bool(node); if (rot.lock) { m = APPCORE_RM_PORTRAIT_NORMAL; @@ -164,20 +164,20 @@ static void __add_rotlock(void *data) int lock; lock = 0; - r = vconf_get_bool(VCONFKEY_SETAPPL_ROTATE_LOCK_BOOL, &lock); + r = vconf_get_bool(VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL, &lock); if (r) { _DBG("[APP %d] Rotation vconf get bool failed", getpid()); } - rot.lock = lock; + rot.lock = !lock; - vconf_notify_key_changed(VCONFKEY_SETAPPL_ROTATE_LOCK_BOOL, __lock_cb, + vconf_notify_key_changed(VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL, __lock_cb, data); } static void __del_rotlock(void) { - vconf_ignore_key_changed(VCONFKEY_SETAPPL_ROTATE_LOCK_BOOL, __lock_cb); + vconf_ignore_key_changed(VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL, __lock_cb); rot.lock = 0; } -- 2.7.4