[gnome-applets] cpufreq: avoid deprecated polkit_authority_get
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets] cpufreq: avoid deprecated polkit_authority_get
- Date: Tue, 13 Dec 2016 18:09:04 +0000 (UTC)
commit cda0e0c2ea8be649dae23eeb161713662b33f4b5
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Dec 13 18:28:53 2016 +0200
cpufreq: avoid deprecated polkit_authority_get
configure.ac | 2 +-
.../cpufreq-selector/cpufreq-selector-service.c | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index db4b912..0701ea1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -73,7 +73,7 @@ ADWAITA_ICON_THEME_REQUIRED=3.14.0
LIBXML_REQUIRED=2.5.0
GWEATHER_REQUIRED=3.17.1
GUCHARMAP3_REQUIRED=2.33.0
-POLKIT_REQUIRED=0.92
+POLKIT_REQUIRED=0.97
dnl ***************************************************************************
IT_PROG_INTLTOOL([0.35.0])
diff --git a/cpufreq/src/cpufreq-selector/cpufreq-selector-service.c
b/cpufreq/src/cpufreq-selector/cpufreq-selector-service.c
index 7645063..ea004ea 100644
--- a/cpufreq/src/cpufreq-selector/cpufreq-selector-service.c
+++ b/cpufreq/src/cpufreq-selector/cpufreq-selector-service.c
@@ -228,7 +228,10 @@ cpufreq_selector_service_register (CPUFreqSelectorService *service,
return FALSE;
}
- service->authority = polkit_authority_get ();
+ service->authority = polkit_authority_get_sync (NULL, error);
+
+ if (!service->authority)
+ return FALSE;
service->system_bus = connection;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]