[rhythmbox] require libsecret 0.18; formerly unstable API is now stable
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] require libsecret 0.18; formerly unstable API is now stable
- Date: Sun, 3 Aug 2014 06:21:25 +0000 (UTC)
commit f370706edfedffda1e74d80b806db73a36c5a54e
Author: Jonathan Matthew <jonathan d14n org>
Date: Sun Aug 3 16:20:27 2014 +1000
require libsecret 0.18; formerly unstable API is now stable
https://bugzilla.gnome.org/show_bug.cgi?id=725884
configure.ac | 2 +-
plugins/magnatune/MagnatuneAccount.py | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a700131..1671837 100644
--- a/configure.ac
+++ b/configure.ac
@@ -57,7 +57,7 @@ LIBMTP_REQS=0.3.0
LIBPEAS_REQS=0.7.3
GRILO_REQS=0.2.0
LIBXML2_REQS=2.7.8
-LIBSECRET_REQS=0.14
+LIBSECRET_REQS=0.18
LIBNOTIFY_REQS=0.7.0
BRASERO_MIN_REQS=2.31.5
diff --git a/plugins/magnatune/MagnatuneAccount.py b/plugins/magnatune/MagnatuneAccount.py
index d327534..97f13ee 100644
--- a/plugins/magnatune/MagnatuneAccount.py
+++ b/plugins/magnatune/MagnatuneAccount.py
@@ -34,7 +34,7 @@ if rbconfig.libsecret_enabled:
# Till libsecret completely replaces gnome-keyring, we'll fall back to not
# saving the password if libsecret can't be found. This code can be removed later.
try:
- from gi.repository import Secret, SecretUnstable
+ from gi.repository import Secret
# We need to be able to fetch passwords stored by libgnome-keyring, so we use
# a schema with SECRET_SCHEMA_DONT_MATCH_NAME set.
# See: http://developer.gnome.org/libsecret/unstable/migrating-schemas.html
@@ -65,10 +65,10 @@ class MagnatuneAccount(object):
print ("Account details will not be saved because libsecret was not found")
return
# Haha.
- self.secret_service =
SecretUnstable.Service.get_sync(SecretUnstable.ServiceFlags.OPEN_SESSION, None)
+ self.secret_service = Secret.Service.get_sync(Secret.ServiceFlags.OPEN_SESSION, None)
items = self.secret_service.search_sync(MAGNATUNE_SCHEMA,
self.keyring_attributes,
- SecretUnstable.SearchFlags.LOAD_SECRETS,
+ Secret.SearchFlags.LOAD_SECRETS,
None)
if not items:
# The Python API doesn't seem to have a way to differentiate between errors and no
results.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]