[gnome-music/wip/mschraal/gtk4: 30/64] window: Gesture 'fixes'



commit b7dd31b1af2c40622d93fb3b47b568fd875a325f
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 12ebe41b..44d68937 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -233,10 +233,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]