summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Lis <m.lis@samsung.com>2014-04-07 15:56:36 +0200
committerMarcin Lis <m.lis@samsung.com>2014-05-06 12:22:39 +0200
commit783b89c3d7b9270781c2bd3e1196c1f49d0e3809 (patch)
treef7eb44db6653cbe5ade74d19f9c0416e0c7565e5
parent1dcb341941b687f0ab2bc978b3522d784c59707e (diff)
downloadquickpanel-783b89c3d7b9270781c2bd3e1196c1f49d0e3809.tar.gz
quickpanel-783b89c3d7b9270781c2bd3e1196c1f49d0e3809.tar.bz2
quickpanel-783b89c3d7b9270781c2bd3e1196c1f49d0e3809.zip
Update deprecated libprivilege-control API functions.
Change-Id: I01dd99ac782a28900851f62d678adfa75a175437 Signed-off-by: Marcin Lis <m.lis@samsung.com>
-rwxr-xr-xdaemon/quickpanel-ui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/quickpanel-ui.c b/daemon/quickpanel-ui.c
index 721a561..afe997e 100755
--- a/daemon/quickpanel-ui.c
+++ b/daemon/quickpanel-ui.c
@@ -1039,9 +1039,9 @@ int main(int argc, char *argv[])
struct appdata ad;
app_event_callback_s app_callback = {0,};
- r = control_privilege();
- if (r != 0) {
- WARN("Failed to control privilege!");
+ r = perm_app_set_privilege("org.tizen.quickpanel", NULL, NULL);
+ if (r != PC_OPERATION_SUCCESS) {
+ WARN("Failed to set privilege!");
}
app_callback.create = quickpanel_app_create;