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



commit 5ab4982a29263ef1a9700f61fd8bfeee33b8fdf8
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]