[gnome-music/wip/mschraal/gtk4: 111/143] playlistsview: Cleanup gesture & margins



commit 62673555e8b239f460e46760f0cb9497d6e4d23c
Author: Marinus Schraal <mschraal gnome org>
Date:   Thu Oct 31 15:43:26 2019 +0100

    playlistsview: Cleanup gesture & margins

 gnomemusic/views/playlistsview.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gnomemusic/views/playlistsview.py b/gnomemusic/views/playlistsview.py
index ec3d2541..b8b12766 100644
--- a/gnomemusic/views/playlistsview.py
+++ b/gnomemusic/views/playlistsview.py
@@ -104,16 +104,16 @@ class PlaylistsView(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.ListBox()
         self._view.get_style_context().add_class("songs-list")
-        self._view.props.margin_top = 20
-        self._view.props.margin_left = 80
-        self._view.props.margin_right = 80
+        # self._view.props.margin_top = 20
+        # self._view.props.margin_left = 80
+        # self._view.props.margin_right = 80
         self._view.props.valign = Gtk.Align.START
 
-        self._controller = Gtk.GestureMultiPress().new(self._view)
+        self._controller = Gtk.GestureClick().new()
         self._controller.props.propagation_phase = Gtk.PropagationPhase.CAPTURE
         self._controller.props.button = Gdk.BUTTON_SECONDARY
         self._controller.connect("pressed", self._on_view_right_clicked)


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