[gnome-music/wip/mschraal/gtk4: 112/141] songsview: Cleanup gesture & pack
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/gtk4: 112/141] songsview: Cleanup gesture & pack
- Date: Mon, 17 Feb 2020 19:35:43 +0000 (UTC)
commit 4ff80966e6965de1e4da21e44ad09dc9eb368409
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 d76cd0e1..ff8cd3db 100644
--- a/gnomemusic/views/songsview.py
+++ b/gnomemusic/views/songsview.py
@@ -63,7 +63,7 @@ class SongsView(BaseView):
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
@@ -71,7 +71,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]