Permalink
Browse files

Fixes: Now works with latest Rhythmbox in Ubuntu Precise

  • Loading branch information...
1 parent 0f35f15 commit 452fad7f9c4e74934c586a0ab9275b94a538e988 @owais committed Dec 9, 2011
Showing with 10 additions and 8 deletions.
  1. +5 −5 schemas/org.gnome.rhythmbox.plugins.remember-the-rhythm.gschema.xml
  2. +5 −3 src/remember-the-rhythm.py
@@ -4,22 +4,22 @@
<key type="s" name="last-entry-location">
<default>''</default>
<summary>Location of the last playing entry</summary>
- <description>This entry will be automatically played by rhythmbox upon startup and will be changed to last playing entry upon shutdown.</description>
+ <description>This entry will be automatically played by rhythmbox upon startup.</description>
</key>
<key type="u" name="playback-time">
<default>0</default>
<summary>Playback time of the last playing entry</summary>
- <description>Rhythmbox will resume playback from time second on the last playing entry</description>
+ <description>Rhythmbox will resume playback from this second.</description>
</key>
<key type="aas" name="browser-values">
- <default>[[],[],[]]</default>
+ <default>[]</default>
<summary>Genre/Artist/Album</summary>
- <description>Remembers the filters in RBLibraryBrowser and sets on start up</description>
+ <description>Remembers the filters in RBLibraryBrowser and sets on start up.</description>
</key>
<key type="s" name="playlist">
<default>''</default>
<summary>Last playlist</summary>
- <description>Name of the last playing playlist if any</description>
+ <description>Name of the last playing playlist if any.</description>
</key>
</schema>
</schemalist>
@@ -35,12 +35,12 @@ def do_activate(self):
self.shell = self.object
self.library = self.shell.props.library_source
self.shell_player = self.shell.props.shell_player
+ self.playlist_manager = self.shell.props.playlist_manager
self.db = self.shell.props.db
- self.playlist_manager = self.shell.get_playlist_manager()
self.backend_player = self.shell_player.props.player
self.shell_player.connect('playing-changed', self.playing_changed)
self.shell_player.connect('playing-source-changed', self.playing_source_changed)
- self.shell.connect('database-load-complete', self.load_complete)
+ self.shell.props.db.connect('load-complete', self.load_complete)
self.shell_player.connect('elapsed-changed', self.elapsed_changed)
def do_deactivate(self):
@@ -108,8 +108,10 @@ def init_source(self):
views = self.source.get_property_views()
for i, view in enumerate(views):
value = self.browser_values_list[i]
- view.set_selection(value)
+ if value:
+ view.set_selection(value)
self.shell.props.display_page_tree.select(self.source)
+ self.shell_player.jump_to_current()
def save_rhythm(self, pb_time=None):
if self.location:

0 comments on commit 452fad7

Please sign in to comment.