[gnome-music] Rename playlistview to playlistsview
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Rename playlistview to playlistsview
- Date: Fri, 31 May 2019 12:41:36 +0000 (UTC)
commit 9fc67e3e4e7975af5cba90b95d9cc7b621870fa1
Author: Jesus Bermudez Velazquez <jesus bv suse com>
Date: Tue May 28 18:55:03 2019 +0100
Rename playlistview to playlistsview
For consistency, rename PlaylistView to PlaylistsView.
The rest of views names are in plural:
- AlbumsView
- ArtistsView
- SongsView
Closes: https://gitlab.gnome.org/GNOME/gnome-music/issues/290
gnomemusic/views/{playlistview.py => playlistsview.py} | 4 ++--
gnomemusic/window.py | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/views/playlistview.py b/gnomemusic/views/playlistsview.py
similarity index 99%
rename from gnomemusic/views/playlistview.py
rename to gnomemusic/views/playlistsview.py
index 8179e0ed..aad54a63 100644
--- a/gnomemusic/views/playlistview.py
+++ b/gnomemusic/views/playlistsview.py
@@ -41,11 +41,11 @@ import gnomemusic.utils as utils
playlists = Playlists.get_default()
-class PlaylistView(BaseView):
+class PlaylistsView(BaseView):
"""Main view for playlists"""
def __repr__(self):
- return '<PlaylistView>'
+ return '<PlaylistsView>'
@log
def __init__(self, window, player):
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 959fbb26..7b7141dc 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -39,7 +39,7 @@ 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.playlistview import PlaylistView
+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
@@ -249,7 +249,7 @@ class Window(Gtk.ApplicationWindow):
self.views[View.ALBUM] = AlbumsView(self, self._player)
self.views[View.ARTIST] = ArtistsView(self, self._player)
self.views[View.SONG] = SongsView(self, self._player)
- self.views[View.PLAYLIST] = PlaylistView(self, self._player)
+ self.views[View.PLAYLIST] = PlaylistsView(self, self._player)
self.views[View.SEARCH] = SearchView(self, self._player)
selectable_views = [View.ALBUM, View.ARTIST, View.SONG, View.SEARCH]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]