[gnome-music/wip/mschraal/gtk4: 34/52] playlistsview: Cleanup gesture & margins
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/gtk4: 34/52] playlistsview: Cleanup gesture & margins
- Date: Thu, 31 Oct 2019 15:40:35 +0000 (UTC)
commit ccbcb2e5606b067ba8923861f7bce43bb84b0c2c
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 02d2e66b..c0f04520 100644
--- a/gnomemusic/views/playlistsview.py
+++ b/gnomemusic/views/playlistsview.py
@@ -123,16 +123,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]