[gnome-music/wip/mschraal/gtk4: 45/81] mediakeys: Fix controller



commit d17a9ee3cfea3f42607d379349d6eb36b56bf4c1
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 f0ba1623..a6576dfe 100644
--- a/gnomemusic/mediakeys.py
+++ b/gnomemusic/mediakeys.py
@@ -74,7 +74,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]