[gnome-music/wip/mschraal/gtk4: 134/143] artistsview: Fix event controller



commit 4c66ee774b8203e0accbbaf0f3828eadd8607fc1
Author: Marinus Schraal <mschraal gnome org>
Date:   Wed Nov 6 23:36:16 2019 +0100

    artistsview: Fix event controller

 gnomemusic/views/artistsview.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/views/artistsview.py b/gnomemusic/views/artistsview.py
index e7a0259b..8f4e9c62 100644
--- a/gnomemusic/views/artistsview.py
+++ b/gnomemusic/views/artistsview.py
@@ -78,10 +78,10 @@ class ArtistsView(BaseView):
         self._sidebar.props.selection_mode = Gtk.SelectionMode.SINGLE
         self._sidebar.connect('row-activated', self._on_artist_activated)
 
-        self._ctrl = Gtk.GestureClick().new()
-        self._ctrl.props.propagation_phase = Gtk.PropagationPhase.CAPTURE
-        self._ctrl.props.button = Gdk.BUTTON_PRIMARY
-        self._ctrl.connect("released", self._on_sidebar_clicked)
+        ctrl = Gtk.GestureClick().new()
+        ctrl.props.button = Gdk.BUTTON_PRIMARY
+        ctrl.connect("released", self._on_sidebar_clicked)
+        self.add_controller(ctrl)
 
         self._loaded_artists = []
         self._loading_id = 0


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