File rhythmbox-3.0.1-libsecret018.patch of Package rhythmbox

--- rhythmbox-3.0.1/./plugins/magnatune/MagnatuneAccount.py~	2013-07-09 14:31:22.000000000 +0200
+++ rhythmbox-3.0.1/./plugins/magnatune/MagnatuneAccount.py	2014-03-07 11:20:34.306050533 +0100
@@ -34,7 +34,7 @@
 	# 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 @@
 			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.
openSUSE Build Service is sponsored by