[gnome-music/wip/mschraal/coresong-thumbnail-prop: 32/35] artistalbumwidget: Drop old coverstack use
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/coresong-thumbnail-prop: 32/35] artistalbumwidget: Drop old coverstack use
- Date: Sun, 5 Jan 2020 16:16:01 +0000 (UTC)
commit 07cd953776e1fd3b8049ab203f8e264b58bfa8be
Author: Marinus Schraal <mschraal gnome org>
Date: Tue Dec 24 17:03:54 2019 +0100
artistalbumwidget: Drop old coverstack use
gnomemusic/widgets/artistalbumwidget.py | 3 ++-
gnomemusic/widgets/coverstack.py | 28 ++++++++++++++--------------
2 files changed, 16 insertions(+), 15 deletions(-)
---
diff --git a/gnomemusic/widgets/artistalbumwidget.py b/gnomemusic/widgets/artistalbumwidget.py
index 9d90fb2c..ff94c91e 100644
--- a/gnomemusic/widgets/artistalbumwidget.py
+++ b/gnomemusic/widgets/artistalbumwidget.py
@@ -63,7 +63,8 @@ class ArtistAlbumWidget(Gtk.Box):
self._selection_mode_allowed = selection_mode_allowed
self._cover_stack.props.size = Art.Size.MEDIUM
- self._cover_stack.update(corealbum)
+ # self._cover_stack.update(corealbum)
+ self._cover_stack.props.corealbum = corealbum
allowed = self._selection_mode_allowed
self._disc_list_box.props.selection_mode_allowed = allowed
diff --git a/gnomemusic/widgets/coverstack.py b/gnomemusic/widgets/coverstack.py
index d644ecf8..044752b9 100644
--- a/gnomemusic/widgets/coverstack.py
+++ b/gnomemusic/widgets/coverstack.py
@@ -116,27 +116,27 @@ class CoverStack(Gtk.Stack):
art.query(self._corealbum)
- @log
- def update(self, coresong):
- """Update the stack with the given CoreSong
-
- Update the stack with the art retrieved from the given Coresong.
- :param CoreSong coresong: The CoreSong object
- """
- if self._handler_id and self._art:
+ # @log
+ # def update(self, coresong):
+ # """Update the stack with the given CoreSong
+
+ # Update the stack with the art retrieved from the given Coresong.
+ # :param CoreSong coresong: The CoreSong object
+ # """
+ # if self._handler_id and self._art:
# Remove a possible dangling 'finished' callback if update
# is called again, but it is still looking for the previous
# art.
- self._art.disconnect(self._handler_id)
+ # self._art.disconnect(self._handler_id)
# Set the loading state only after a delay to make between
# song transitions smooth if loading time is negligible.
- self._timeout = GLib.timeout_add(100, self._set_loading_child)
+ # self._timeout = GLib.timeout_add(100, self._set_loading_child)
- self._active_child = self.props.visible_child_name
+ # self._active_child = self.props.visible_child_name
- self._art = Art(self.props.size, coresong, self.props.scale_factor)
- self._handler_id = self._art.connect('finished', self._art_retrieved)
- self._art.lookup()
+ # self._art = Art(self.props.size, coresong, self.props.scale_factor)
+ # self._handler_id = self._art.connect('finished', self._art_retrieved)
+ # self._art.lookup()
@log
def _set_loading_child(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]