Merge lp:~sil/rhythmbox-ubuntuone/use-libu1-udf-location into lp:~sil/rhythmbox-ubuntuone/trunk

Proposed by Stuart Langridge
Status: Merged
Approved by: Stuart Langridge
Approved revision: 48
Merged at revision: not available
Proposed branch: lp:~sil/rhythmbox-ubuntuone/use-libu1-udf-location
Merge into: lp:~sil/rhythmbox-ubuntuone/trunk
Diff against target: 22 lines (+3/-2)
1 file modified
umusicstore/__init__.py (+3/-2)
To merge this branch: bzr merge lp:~sil/rhythmbox-ubuntuone/use-libu1-udf-location
Reviewer Review Type Date Requested Status
Guillermo Gonzalez (community) Approve
Tim Cole (community) Approve
Stuart Langridge Pending
Review via email: mp+21923@code.launchpad.net

Description of the change

Get the library path from libu1

To post a comment you must log in.
Revision history for this message
Tim Cole (tcole) :
review: Approve
Revision history for this message
Guillermo Gonzalez (verterok) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'umusicstore/__init__.py'
2--- umusicstore/__init__.py 2010-03-11 16:21:50 +0000
3+++ umusicstore/__init__.py 2010-03-23 11:21:32 +0000
4@@ -32,7 +32,8 @@
5 gettext.bindtextdomain("rhythmbox-ubuntuone-music-store", "/usr/share/locale")
6 gettext.textdomain("rhythmbox-ubuntuone-music-store")
7
8-U1LIBRARYPATH = os.path.expanduser("~/.ubuntuone/Purchased from Ubuntu One")
9+MUSIC_STORE_WIDGET = U1MusicStore() # keep this around for later
10+U1LIBRARYPATH = MUSIC_STORE_WIDGET.get_library_location()
11 RB_LIBRARY_LOCATIONS = "/apps/rhythmbox/library_locations"
12
13 class U1MusicStorePlugin (rb.Plugin):
14@@ -347,7 +348,7 @@
15
16 def add_music_store_widget(self):
17 """Display the music store widget in Rhythmbox."""
18- self.browser = U1MusicStore()
19+ self.browser = MUSIC_STORE_WIDGET
20 self.add(self.browser)
21 self.show_all()
22 self.browser.set_no_show_all(True)

Subscribers

People subscribed via source and target branches

to all changes: