[gnome-music/wip/mschraal/gtk4: 77/102] playlistcontextmenu: Replace relative-to with set_parent



commit e8ca47b31763e1acd40af48ab315823e77e8b2b3
Author: Marinus Schraal <mschraal gnome org>
Date:   Wed Apr 29 01:48:55 2020 +0200

    playlistcontextmenu: Replace relative-to with set_parent

 gnomemusic/widgets/playlistcontextmenu.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/widgets/playlistcontextmenu.py b/gnomemusic/widgets/playlistcontextmenu.py
index 0a17ad71..3744a15e 100644
--- a/gnomemusic/widgets/playlistcontextmenu.py
+++ b/gnomemusic/widgets/playlistcontextmenu.py
@@ -42,7 +42,7 @@ class PlaylistContextMenu(Gtk.Popover):
 
         window = application.props.window
 
-        self.props.relative_to = view
+        self.set_parent(view)
 
         # self.bind_model(self._song_menu, None)
 


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