[gnome-music/wip/jfelder/playback-status-v4: 12/22] artistalbumswidget: Store coreartist instead of artist name



commit 2c11e034d143ddc741938613db18841519313c62
Author: Jean Felder <jfelder src gnome org>
Date:   Sat Jan 11 23:44:38 2020 +0100

    artistalbumswidget: Store coreartist instead of artist name
    
    It will be used by the active_media property from the CoreModel
    introduced in a later commit.

 gnomemusic/widgets/artistalbumswidget.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/widgets/artistalbumswidget.py b/gnomemusic/widgets/artistalbumswidget.py
index abf8084f..be262e2b 100644
--- a/gnomemusic/widgets/artistalbumswidget.py
+++ b/gnomemusic/widgets/artistalbumswidget.py
@@ -49,7 +49,7 @@ class ArtistAlbumsWidget(Gtk.ListBox):
         super().__init__()
 
         self._application = application
-        self._artist = coreartist.props.artist
+        self._artist = coreartist
         self._model = coreartist.props.model
         self._player = self._application.props.player
 
@@ -111,4 +111,4 @@ class ArtistAlbumsWidget(Gtk.ListBox):
     @GObject.Property(type=str, flags=GObject.ParamFlags.READABLE)
     def artist(self):
         """Artist name"""
-        return self._artist
+        return self._artist.props.artist


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