[gnome-music/wip/jfelder/searchview-new-style: 12/15] searchview: Add ScrolledWindow for artist results
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/searchview-new-style: 12/15] searchview: Add ScrolledWindow for artist results
- Date: Mon, 5 Aug 2019 21:39:06 +0000 (UTC)
commit a4eacd9477025ef6b8f3891c9197f3d2a86df783
Author: Marinus Schraal <mschraal gnome org>
Date: Mon Aug 5 23:04:45 2019 +0200
searchview: Add ScrolledWindow for artist results
gnomemusic/views/searchview.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/views/searchview.py b/gnomemusic/views/searchview.py
index bdf5a769..defe0395 100644
--- a/gnomemusic/views/searchview.py
+++ b/gnomemusic/views/searchview.py
@@ -332,7 +332,11 @@ class SearchView(Gtk.Stack):
self._artist_albums_widget = ArtistAlbumsWidget(
coreartist, self._application, False)
- self.add(self._artist_albums_widget)
+ # FIXME: Adding scrolled windows without removing them.
+ scrolled_window = Gtk.ScrolledWindow()
+ scrolled_window.add(self._artist_albums_widget)
+ scrolled_window.props.visible = True
+ self.add(scrolled_window)
self._artist_albums_widget.show()
self.bind_property(
@@ -343,7 +347,7 @@ class SearchView(Gtk.Stack):
self._headerbar.props.title = coreartist.props.artist
self._headerbar.props.subtitle = None
- self.set_visible_child(self._artist_albums_widget)
+ self.set_visible_child(scrolled_window)
self.props.search_mode_active = False
@Gtk.Template.Callback()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]