[gnome-music/wip/mschraal/core-thumb-property: 8/18] artstack: Add default size setter



commit 51d59bab79ce6f7c59693a66cdb08d8d5bfc6a2b
Author: Marinus Schraal <mschraal gnome org>
Date:   Tue Apr 28 16:11:30 2020 +0200

    artstack: Add default size setter
    
    With the removal of the DefaultIcon logic, the image widget is set too
    late to influence the size of the stack when it is first shown. This
    results in the widget visually changing size for no reason.
    
    It is however known which size the image wants to be, set it
    accordingly.

 gnomemusic/widgets/artstack.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gnomemusic/widgets/artstack.py b/gnomemusic/widgets/artstack.py
index db963637..0e16c7f5 100644
--- a/gnomemusic/widgets/artstack.py
+++ b/gnomemusic/widgets/artstack.py
@@ -79,6 +79,7 @@ class ArtStack(Gtk.Stack):
 
         :param Art.Size value: The size to use for the cover
         """
+        self._cover_a.set_size_request(value.width, value.height)
         self._size = value
 
     @GObject.Property(type=object, default=None)


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