[gnome-music/wip/mschraal/gtk4: 31/66] window: Gesture 'fixes'



commit d9c69fcf991927ca7c1b81cd74f137f7217d1e20
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 45bffe1b..8312a122 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]