[gnome-music/wip/mschraal/gtk4: 37/66] songsview: Cleanup gesture & pack
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/gtk4: 37/66] songsview: Cleanup gesture & pack
- Date: Wed, 6 Nov 2019 23:22:24 +0000 (UTC)
commit 0f150ba5c15ec37c43a7b8ca8db4a3dd5d4453ed
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 c56c4dc2..cf9547b9 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]