[gnome-music/wip/jfelder/mpris-cleanup: 113/117] mpris: Make player_toolbar attribute internal



commit 7a350da0d426a327a3ff179299a09e0f8df7fdfb
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 090484f5..b0c0f0a6 100644
--- a/gnomemusic/mpris.py
+++ b/gnomemusic/mpris.py
@@ -288,9 +288,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)
+
         self._playlists = Playlists.get_default()
         self._playlists.connect(
             'playlist-created', self._on_playlists_count_changed)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]