[gnome-music/wip/mschraal/gtk4: 33/69] window: Gesture 'fixes'



commit 2af95cd6887ecd0b30b262aeb4e8ed92729be4fb
Author: Marinus Schraal <mschraal gnome org>
Date:   Thu Oct 31 15:30:45 2019 +0100

    window: Gesture 'fixes'

 gnomemusic/window.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index a550ceba..2522cd3c 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -244,10 +244,10 @@ class Window(Gtk.ApplicationWindow):
         self._on_notify_model_id = self._stack.connect(
             'notify::visible-child', self._on_notify_mode)
         self.connect('destroy', self._notify_mode_disconnect)
-        self._key_press_event_id = self.connect(
-            'key_press_event', self._on_key_press)
+        # self._key_press_event_id = self.connect(
+        #    'key_press_event', self._on_key_press)
 
-        self._btn_ctrl = Gtk.GestureMultiPress().new(self)
+        self._btn_ctrl = Gtk.GestureClick().new()
         self._btn_ctrl.props.propagation_phase = Gtk.PropagationPhase.CAPTURE
         # Mouse button 8 is the back button.
         self._btn_ctrl.props.button = 8


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