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



commit ca55343b26d1fad57a975a5aef5f49b4c964a2e5
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 5bdadb4f..6e35dd4c 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -234,10 +234,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]