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



commit 5c30594856c5c6c2fa889f1d6eb5235de9424cb8
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} | 6 +++---
 4 files changed, 7 insertions(+), 7 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 f3c1d345..fab4ac26 100644
--- a/gnomemusic/views/playlistsview.py
+++ b/gnomemusic/views/playlistsview.py
@@ -28,7 +28,7 @@ from gi.repository import GObject, Gtk
 
 from gnomemusic import log
 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
 
@@ -69,7 +69,7 @@ class PlaylistsView(Gtk.Stack):
             self._coremodel, player)
         self._main_container.add(self._smart_playlist_view)
 
-        self._user_playlist_view = PlaylistsWidget(application, self)
+        self._user_playlist_view = UserPlaylistWidget(application, self)
         self._main_container.add(self._user_playlist_view)
 
         self._user_sidebar.bind_model(
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 618564f3..2ea4d8e2 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):
+@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]