[gnome-music/wip/jfelder/smartplaylists-ui-v2: 11/11] playlistswidget: Rename to UserPlaylistWidget



commit 255e62e71d99a1bdbacbca7d912911a72b706186
Author: Jean Felder <jfelder src gnome org>
Date:   Sat Jan 18 22:17:36 2020 +0100

    playlistswidget: Rename to UserPlaylistWidget
    
    This widget only deals with user playlists now.

 data/org.gnome.Music.gresource.xml                               | 2 +-
 data/ui/{PlaylistsWidget.ui => UserPlaylistWidget.ui}            | 2 +-
 gnomemusic/views/playlistsview.py                                | 4 ++--
 gnomemusic/widgets/{playlistswidget.py => userplaylistwidget.py} | 8 ++++----
 4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/data/org.gnome.Music.gresource.xml b/data/org.gnome.Music.gresource.xml
index eb4f8440..9b61c74c 100644
--- a/data/org.gnome.Music.gresource.xml
+++ b/data/org.gnome.Music.gresource.xml
@@ -23,7 +23,6 @@
     <file preprocess="xml-stripblanks">ui/PlaylistDialog.ui</file>
     <file preprocess="xml-stripblanks">ui/PlaylistDialogRow.ui</file>
     <file preprocess="xml-stripblanks">ui/PlaylistsView.ui</file>
-    <file preprocess="xml-stripblanks">ui/PlaylistsWidget.ui</file>
     <file preprocess="xml-stripblanks">ui/PlaylistTile.ui</file>
     <file preprocess="xml-stripblanks">ui/SearchHeaderBar.ui</file>
     <file preprocess="xml-stripblanks">ui/SearchView.ui</file>
@@ -33,6 +32,7 @@
     <file preprocess="xml-stripblanks">ui/SmartPlaylistsWidget.ui</file>
     <file preprocess="xml-stripblanks">ui/SongWidget.ui</file>
     <file preprocess="xml-stripblanks">ui/TwoLineTip.ui</file>
+    <file preprocess="xml-stripblanks">ui/UserPlaylistWidget.ui</file>
     <file preprocess="xml-stripblanks">ui/Window.ui</file>
   </gresource>
 </gresources>
diff --git a/data/ui/PlaylistsWidget.ui b/data/ui/UserPlaylistWidget.ui
similarity index 95%
rename from data/ui/PlaylistsWidget.ui
rename to data/ui/UserPlaylistWidget.ui
index 02a0c801..1149b4ad 100644
--- a/data/ui/PlaylistsWidget.ui
+++ b/data/ui/UserPlaylistWidget.ui
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
-  <template class="PlaylistsWidget" parent="GtkBox">
+  <template class="UserPlaylistWidget" parent="GtkBox">
     <property name="orientation">vertical</property>
     <property name="visible">True</property>
     <child>
diff --git a/gnomemusic/views/playlistsview.py b/gnomemusic/views/playlistsview.py
index 94cfcfcb..17dcbc46 100644
--- a/gnomemusic/views/playlistsview.py
+++ b/gnomemusic/views/playlistsview.py
@@ -27,7 +27,7 @@ from gettext import gettext as _
 from gi.repository import GObject, Gtk
 
 from gnomemusic.grilowrappers.grltrackerplaylists import Playlist
-from gnomemusic.widgets.playlistswidget import PlaylistsWidget
+from gnomemusic.widgets.userplaylistwidget import UserPlaylistWidget
 from gnomemusic.widgets.playlisttile import PlaylistTile
 from gnomemusic.widgets.smartplaylistswidget import SmartPlaylistsWidget
 
@@ -60,7 +60,7 @@ class PlaylistsView(Gtk.Stack):
         self._window = application.props.window
         self._player = player
 
-        self._user_playlist_view = PlaylistsWidget(application, self)
+        self._user_playlist_view = UserPlaylistWidget(application, self)
         self._main_container.add(self._user_playlist_view)
 
         self._smart_playlist_view = SmartPlaylistsWidget(
diff --git a/gnomemusic/widgets/playlistswidget.py b/gnomemusic/widgets/userplaylistwidget.py
similarity index 97%
rename from gnomemusic/widgets/playlistswidget.py
rename to gnomemusic/widgets/userplaylistwidget.py
index 216269ac..a34df5db 100644
--- a/gnomemusic/widgets/playlistswidget.py
+++ b/gnomemusic/widgets/userplaylistwidget.py
@@ -32,11 +32,11 @@ from gnomemusic.widgets.playlistdialog import PlaylistDialog
 from gnomemusic.widgets.songwidget import SongWidget
 
 
-@Gtk.Template(resource_path="/org/gnome/Music/ui/PlaylistsWidget.ui")
-class PlaylistsWidget(Gtk.Box):
-    """Widget to display the playlist controls and list"""
+@Gtk.Template(resource_path="/org/gnome/Music/ui/UserPlaylistWidget.ui")
+class UserPlaylistWidget(Gtk.Box):
+    """Widget to display playlist content a list"""
 
-    __gtype_name__ = "PlaylistsWidget"
+    __gtype_name__ = "UserPlaylistWidget"
 
     _pl_ctrls = Gtk.Template.Child()
     _songs_list = Gtk.Template.Child()


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