[gnome-music/wip/mschraal/gtk4: 109/143] songsview: Cleanup gesture & pack
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/gtk4: 109/143] songsview: Cleanup gesture & pack
- Date: Sun, 19 Jan 2020 10:53:28 +0000 (UTC)
commit 82ec71b698de85ff77025bf17f5dee542ba1b9a2
Author: Marinus Schraal <mschraal gnome org>
Date: Thu Oct 31 15:39:19 2019 +0100
songsview: Cleanup gesture & pack
gnomemusic/views/songsview.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/views/songsview.py b/gnomemusic/views/songsview.py
index 756635d5..372f9228 100644
--- a/gnomemusic/views/songsview.py
+++ b/gnomemusic/views/songsview.py
@@ -73,7 +73,7 @@ class SongsView(BaseView):
@log
def _setup_view(self):
view_container = Gtk.ScrolledWindow(hexpand=True, vexpand=True)
- self._box.pack_start(view_container, True, True, 0)
+ self._box.add(view_container)
self._view = Gtk.TreeView()
self._view.props.headers_visible = False
@@ -81,7 +81,7 @@ class SongsView(BaseView):
self._view.props.model = self._coremodel.props.songs_gtkliststore
self._view.props.activate_on_single_click = True
- self._ctrl = Gtk.GestureMultiPress().new(self._view)
+ self._ctrl = Gtk.GestureClick().new()
self._ctrl.props.propagation_phase = Gtk.PropagationPhase.CAPTURE
self._ctrl.connect("released", self._on_view_clicked)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]