[gnome-music/wip/mschraal/gtk4: 107/143] artistsview: Cleanup gesture & show_all
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/gtk4: 107/143] artistsview: Cleanup gesture & show_all
- Date: Sun, 19 Jan 2020 10:53:18 +0000 (UTC)
commit ccface9bdcd962586a2aefb73801f3f455d3eb38
Author: Marinus Schraal <mschraal gnome org>
Date: Thu Oct 31 15:35:37 2019 +0100
artistsview: Cleanup gesture & show_all
gnomemusic/views/artistsview.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/views/artistsview.py b/gnomemusic/views/artistsview.py
index 9ada990c..e7a0259b 100644
--- a/gnomemusic/views/artistsview.py
+++ b/gnomemusic/views/artistsview.py
@@ -78,7 +78,7 @@ class ArtistsView(BaseView):
self._sidebar.props.selection_mode = Gtk.SelectionMode.SINGLE
self._sidebar.connect('row-activated', self._on_artist_activated)
- self._ctrl = Gtk.GestureMultiPress().new(self._sidebar)
+ self._ctrl = Gtk.GestureClick().new()
self._ctrl.props.propagation_phase = Gtk.PropagationPhase.CAPTURE
self._ctrl.props.button = Gdk.BUTTON_PRIMARY
self._ctrl.connect("released", self._on_sidebar_clicked)
@@ -86,8 +86,6 @@ class ArtistsView(BaseView):
self._loaded_artists = []
self._loading_id = 0
- self.show_all()
-
def _create_widget(self, coreartist):
row = ArtistTile(coreartist)
row.props.text = coreartist.props.artist
@@ -133,7 +131,7 @@ class ArtistsView(BaseView):
@log
def _setup_view(self):
self._view_container = Gtk.ScrolledWindow(hexpand=True, vexpand=True)
- self._box.pack_start(self._view_container, True, True, 0)
+ self._box.add(self._view_container)
self._view = Gtk.Stack(
transition_type=Gtk.StackTransitionType.CROSSFADE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]