[gnome-music/wip/mschraal/gtk4: 3/10] artistsview: Fix event controller
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/gtk4: 3/10] artistsview: Fix event controller
- Date: Tue, 18 Feb 2020 11:44:01 +0000 (UTC)
commit cbad2659c835fddab368c7e19da6eaba30cc613d
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 fa5687e1..f8467e4e 100644
--- a/gnomemusic/views/artistsview.py
+++ b/gnomemusic/views/artistsview.py
@@ -69,10 +69,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]