[gnome-music/wip/jfelder/gtk4-v3: 80/98] window: Enable all views




commit d0d867c39a538c596b5dc20baff92953c09b300a
Author: Jean Felder <jfelder src gnome org>
Date:   Wed Feb 2 12:17:42 2022 +0100

    window: Enable all views

 gnomemusic/window.py | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index c3719987f..dd9bd96c7 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -33,11 +33,11 @@ from gnomemusic.search import Search
 from gnomemusic.trackerwrapper import TrackerState
 from gnomemusic.utils import View
 from gnomemusic.views.albumsview import AlbumsView
-# from gnomemusic.views.artistsview import ArtistsView
+from gnomemusic.views.artistsview import ArtistsView
 from gnomemusic.views.emptyview import EmptyView
-# from gnomemusic.views.searchview import SearchView
-# from gnomemusic.views.songsview import SongsView
-# from gnomemusic.views.playlistsview import PlaylistsView
+from gnomemusic.views.searchview import SearchView
+from gnomemusic.views.songsview import SongsView
+from gnomemusic.views.playlistsview import PlaylistsView
 from gnomemusic.widgets.headerbar import HeaderBar
 from gnomemusic.widgets.notificationspopup import NotificationsPopup  # noqa
 from gnomemusic.widgets.playertoolbar import PlayerToolbar  # noqa: F401
@@ -238,18 +238,16 @@ class Window(Adw.ApplicationWindow):
 
         self._headerbar.props.state = HeaderBar.State.MAIN
         self.views[View.ALBUM] = AlbumsView(self._app)
-        self.views[View.ARTIST] = Gtk.Box()  # ArtistsView(self._app)
-        self.views[View.SONG] = Gtk.Box()  # SongsView(self._app)
-        self.views[View.PLAYLIST] = Gtk.Box()  # PlaylistsView(self._app)
-        self.views[View.SEARCH] = Gtk.Box()  # SearchView(self._app)
+        self.views[View.ARTIST] = ArtistsView(self._app)
+        self.views[View.SONG] = SongsView(self._app)
+        self.views[View.PLAYLIST] = PlaylistsView(self._app)
+        self.views[View.SEARCH] = SearchView(self._app)
 
         # empty view has already been created in self._setup_view starting at
         # View.ALBUM
         # empty view state is changed once album view is visible to prevent it
         # from being displayed during startup
         for i in self.views[View.ALBUM:]:
-            if isinstance(i, Gtk.Box):
-                continue
             if i.props.title:
                 stackpage = self._stack.add_titled(
                     i, i.props.name, i.props.title)


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