[gnome-music/wip/mschraal/gtk4: 50/81] albumsview: get_allocated_size -> get_allocation



commit 589ec38bf2036d984cf5cb22e4e24ba0cee2d318
Author: Marinus Schraal <mschraal gnome org>
Date:   Wed Nov 6 14:17:11 2019 +0100

    albumsview: get_allocated_size -> get_allocation

 gnomemusic/views/albumsview.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/views/albumsview.py b/gnomemusic/views/albumsview.py
index 81eb14f3..c66a28be 100644
--- a/gnomemusic/views/albumsview.py
+++ b/gnomemusic/views/albumsview.py
@@ -114,11 +114,11 @@ class AlbumsView(Gtk.Stack):
         if first_cover is None:
             return GLib.SOURCE_REMOVE
 
-        cover_size, _ = first_cover.get_allocated_size()
+        cover_size = first_cover.get_allocation()
         if cover_size.width == 0 or cover_size.height == 0:
             return GLib.SOURCE_REMOVE
 
-        viewport_size, _ = self._viewport.get_allocated_size()
+        viewport_size = self._viewport.get_allocation()
 
         h_space = self._flowbox.get_column_spacing()
         v_space = self._flowbox.get_row_spacing()


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