[gnome-music/wip/jfelder/mpris-cleanup: 10/13] mpris: Make player_toolbar attribute internal
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/mpris-cleanup: 10/13] mpris: Make player_toolbar attribute internal
- Date: Thu, 21 Mar 2019 21:44:50 +0000 (UTC)
commit e775f71c64eb01b0964f397eeb3cac8f5feca398
Author: Jean Felder <jfelder src gnome org>
Date: Thu Mar 14 11:08:38 2019 +0100
mpris: Make player_toolbar attribute internal
gnomemusic/mpris.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/mpris.py b/gnomemusic/mpris.py
index aebc02ce..cce47ec0 100644
--- a/gnomemusic/mpris.py
+++ b/gnomemusic/mpris.py
@@ -290,9 +290,10 @@ class MPRIS(DBusInterface):
self._player.connect(
'playlist-changed', self._on_player_playlist_changed)
- self.player_toolbar = app.get_active_window()._player_toolbar
- self.player_toolbar.connect(
+ self._player_toolbar = app.get_active_window()._player_toolbar
+ self._player_toolbar.connect(
'thumbnail-updated', self._on_thumbnail_updated)
+
playlists = Playlists.get_default()
playlists.connect('playlist-created', self._on_playlists_count_changed)
playlists.connect('playlist-deleted', self._on_playlists_count_changed)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]