[rhythmbox] Update Magnatune and Jamendo plugins to work with display pages (bug #636987)
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] Update Magnatune and Jamendo plugins to work with display pages (bug #636987)
- Date: Fri, 10 Dec 2010 22:29:07 +0000 (UTC)
commit a1ee9523c5472795d6857c01a43f81ae2372ed69
Author: Uri Sivan <tartif gmail com>
Date: Sat Dec 11 08:28:06 2010 +1000
Update Magnatune and Jamendo plugins to work with display pages (bug #636987)
plugins/jamendo/jamendo/__init__.py | 4 ++--
plugins/magnatune/magnatune/__init__.py | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plugins/jamendo/jamendo/__init__.py b/plugins/jamendo/jamendo/__init__.py
index 9ad2d11..ca590c8 100644
--- a/plugins/jamendo/jamendo/__init__.py
+++ b/plugins/jamendo/jamendo/__init__.py
@@ -93,7 +93,7 @@ class Jamendo(rb.Plugin):
action = gtk.Action('JamendoDownloadAlbum', _('_Download Album'),
_("Download this album using BitTorrent"),
'gtk-save')
- action.connect('activate', lambda a: shell.get_property("selected-source").download_album())
+ action.connect('activate', lambda a: shell.get_property("selected-page").download_album())
self.action_group = gtk.ActionGroup('JamendoPluginActions')
self.action_group.add_action(action)
@@ -101,7 +101,7 @@ class Jamendo(rb.Plugin):
action = gtk.Action('JamendoDonateArtist', _('_Donate to Artist'),
_("Donate Money to this Artist"),
'gtk-jump-to')
- action.connect('activate', lambda a: shell.get_property("selected-source").launch_donate())
+ action.connect('activate', lambda a: shell.get_property("selected-page").launch_donate())
self.action_group.add_action(action)
manager.insert_action_group(self.action_group, 0)
diff --git a/plugins/magnatune/magnatune/__init__.py b/plugins/magnatune/magnatune/__init__.py
index 28b7c40..fd661c2 100644
--- a/plugins/magnatune/magnatune/__init__.py
+++ b/plugins/magnatune/magnatune/__init__.py
@@ -115,17 +115,17 @@ class Magnatune(rb.Plugin):
action = gtk.Action('MagnatuneDownloadAlbum', _('Download Album'),
_("Download this album from Magnatune"),
'gtk-save')
- action.connect('activate', lambda a: self.shell.get_property("selected-source").download_album())
+ action.connect('activate', lambda a: self.shell.get_property("selected-page").download_album())
self.action_group.add_action(action)
action = gtk.Action('MagnatuneArtistInfo', _('Artist Information'),
_("Get information about this artist"),
'gtk-info')
- action.connect('activate', lambda a: self.shell.get_property("selected-source").display_artist_info())
+ action.connect('activate', lambda a: self.shell.get_property("selected-page").display_artist_info())
self.action_group.add_action(action)
action = gtk.Action('MagnatuneCancelDownload', _('Cancel Downloads'),
_("Stop downloading purchased albums"),
'gtk-stop')
- action.connect('activate', lambda a: self.shell.get_property("selected-source").cancel_downloads())
+ action.connect('activate', lambda a: self.shell.get_property("selected-page").cancel_downloads())
action.set_sensitive(False)
self.action_group.add_action(action)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]