[gnome-music/wip/mschraal/gtk4-v2: 60/69] artistalbumswidget: Use set_child for add




commit c40304263b6b7fc069a08895c7e3f31c41bff0e4
Author: Marinus Schraal <mschraal gnome org>
Date:   Mon Apr 12 17:18:56 2021 +0200

    artistalbumswidget: Use set_child for add

 gnomemusic/widgets/artistalbumswidget.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/widgets/artistalbumswidget.py b/gnomemusic/widgets/artistalbumswidget.py
index 701ff9991..498cc8594 100644
--- a/gnomemusic/widgets/artistalbumswidget.py
+++ b/gnomemusic/widgets/artistalbumswidget.py
@@ -88,7 +88,7 @@ class ArtistAlbumsWidget(Gtk.ListBox):
             GObject.BindingFlags.BIDIRECTIONAL
             | GObject.BindingFlags.SYNC_CREATE)
 
-        row.add(widget)
+        row.set_child(widget)
         widget.connect("song-activated", self._song_activated)
 
         return row


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