summaryrefslogtreecommitdiff
path: root/cpufreq/src/cpufreq-selector
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-08-05 15:07:13 +0200
committerraveit65 <[email protected]>2016-08-31 15:29:57 +0200
commita5f369c480c768173881486ad057335cae6228d9 (patch)
treee51f472bab7f062fad6af70e11b5eebb0910c425 /cpufreq/src/cpufreq-selector
parent6f3b04cf976b231d31d6704b0a69a25f10ab7d7d (diff)
downloadmate-applets-a5f369c480c768173881486ad057335cae6228d9.tar.bz2
mate-applets-a5f369c480c768173881486ad057335cae6228d9.tar.xz
cpu-freq: avoid deprecated polkit_authority_get
And bump polkit requirement. polkit_authority_get is deprecated since polkit-0.97 from 2010. So the requirement bump should be save for all distros.
Diffstat (limited to 'cpufreq/src/cpufreq-selector')
-rw-r--r--cpufreq/src/cpufreq-selector/cpufreq-selector-service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpufreq/src/cpufreq-selector/cpufreq-selector-service.c b/cpufreq/src/cpufreq-selector/cpufreq-selector-service.c
index e373c55c..e2962e16 100644
--- a/cpufreq/src/cpufreq-selector/cpufreq-selector-service.c
+++ b/cpufreq/src/cpufreq-selector/cpufreq-selector-service.c
@@ -231,7 +231,7 @@ cpufreq_selector_service_register (CPUFreqSelectorService *service,
return FALSE;
}
- service->authority = polkit_authority_get ();
+ service->authority = polkit_authority_get_sync (NULL, NULL);
service->system_bus = connection;