[gnome-music/wip/jfelder/gtk4-v3: 56/259] playlistview: Use end-child property to add playlist widget




commit 1028b6c96491aa101b16b923b7c9aba4add89d86
Author: Marinus Schraal <mschraal gnome org>
Date:   Mon Apr 12 17:36:44 2021 +0200

    playlistview: Use end-child property to add playlist widget

 gnomemusic/views/playlistsview.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/views/playlistsview.py b/gnomemusic/views/playlistsview.py
index 4c1a2f782..58c107e7c 100644
--- a/gnomemusic/views/playlistsview.py
+++ b/gnomemusic/views/playlistsview.py
@@ -63,7 +63,7 @@ class PlaylistsView(Gtk.Paned):
         self._untouched_list = True
 
         self._playlist_widget = PlaylistsWidget(application, self)
-        self.add(self._playlist_widget)
+        self.props.end_child = self._playlist_widget
 
         self._sidebar.set_header_func(self._sidebar_header_func)
         self._sidebar.bind_model(self._model, self._add_playlist_to_sidebar)


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