[gnome-music/wip/mschraal/gtk4: 31/69] mediakeys: Fix controller



commit 2b25181e20765e48eda210a7e8266b408aaedaf2
Author: Marinus Schraal <mschraal gnome org>
Date:   Thu Oct 31 14:25:41 2019 +0100

    mediakeys: Fix controller

 gnomemusic/mediakeys.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/mediakeys.py b/gnomemusic/mediakeys.py
index cf89438e..a5ee82f4 100644
--- a/gnomemusic/mediakeys.py
+++ b/gnomemusic/mediakeys.py
@@ -81,7 +81,7 @@ class MediaKeys(GObject.GObject):
 
         self._media_keys_proxy.connect("g-signal", self._handle_media_keys)
 
-        self._ctrlr = Gtk.EventControllerKey().new(self._window)
+        self._ctrlr = Gtk.EventControllerKey().new()
         self._ctrlr.props.propagation_phase = Gtk.PropagationPhase.CAPTURE
         self._ctrlr.connect("focus-in", self._grab_media_player_keys)
 


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