[gnome-music/wip/jfelder/mpris-cleanup: 20/24] mpris: Make player_toolbar attribute internal



commit 15a8ddda029abe5d9ab6ecfbc30e17e209edcdf4
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 8db159ad..328e662b 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]