[gnome-music/wip/mschraal/core: 1/2] Rename Grilo sources to wrappers



commit feeb4f03efd2b3892b6530c1b150d12207422072
Author: Marinus Schraal <mschraal gnome org>
Date:   Sun Jul 14 01:06:35 2019 +0200

    Rename Grilo sources to wrappers
    
    The symbols might clash with Grilo and it is more fitting.

 gnomemusic/coregrilo.py                                           | 8 ++++----
 .../grilowrappers/{grldleynasource.py => grldleynawrapper.py}     | 4 ++--
 .../grilowrappers/{grltrackersource.py => grltrackerwrapper.py}   | 4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gnomemusic/coregrilo.py b/gnomemusic/coregrilo.py
index 3ec1368d..cd0ab67b 100644
--- a/gnomemusic/coregrilo.py
+++ b/gnomemusic/coregrilo.py
@@ -2,9 +2,9 @@ import gi
 gi.require_version('Grl', '0.3')
 from gi.repository import Grl, GLib, GObject
 
-# from gnomemusic.grilowrappers.grldleynasource import GrlDLeynaSource
+# from gnomemusic.grilowrappers.grldleynawrapper import GrlDLeynaWrapper
 from gnomemusic.grilowrappers.grlsearchwrapper import GrlSearchWrapper
-from gnomemusic.grilowrappers.grltrackersource import GrlTrackerSource
+from gnomemusic.grilowrappers.grltrackerwrapper import GrlTrackerWrapper
 
 
 class CoreGrilo(GObject.GObject):
@@ -77,11 +77,11 @@ class CoreGrilo(GObject.GObject):
 
         if (source.props.source_id == "grl-tracker-source"
                 and source.props.source_id not in self._wrappers.keys()):
-            new_wrapper = GrlTrackerSource(
+            new_wrapper = GrlTrackerWrapper(
                 source, self._coremodel, self._coreselection, self)
             self._wrappers[source.props.source_id] = new_wrapper
         # elif source.props.source_id[:10] == "grl-dleyna":
-        #     new_wrapper = GrlDLeynaSource(
+        #     new_wrapper = GrlDLeynaWrapper(
         #         source, self._coremodel, self._coreselection, self)
         #     self._wrappers.append(new_wrapper)
             print("wrapper", new_wrapper)
diff --git a/gnomemusic/grilowrappers/grldleynasource.py b/gnomemusic/grilowrappers/grldleynawrapper.py
similarity index 97%
rename from gnomemusic/grilowrappers/grldleynasource.py
rename to gnomemusic/grilowrappers/grldleynawrapper.py
index 12defbb7..5b199806 100644
--- a/gnomemusic/grilowrappers/grldleynasource.py
+++ b/gnomemusic/grilowrappers/grldleynawrapper.py
@@ -5,7 +5,7 @@ from gi.repository import Grl, GObject
 from gnomemusic.coreartist import CoreArtist
 
 
-class GrlDLeynaSource(GObject.GObject):
+class GrlDLeynaWrapper(GObject.GObject):
 
     METADATA_KEYS = [
         Grl.METADATA_KEY_ALBUM,
@@ -26,7 +26,7 @@ class GrlDLeynaSource(GObject.GObject):
     ]
 
     def __repr__(self):
-        return "<GrlDLeynaSource>"
+        return "<GrlDLeynaWrapper>"
 
     def __init__(self, source, coremodel, core_selection, grilo):
         super().__init__()
diff --git a/gnomemusic/grilowrappers/grltrackersource.py b/gnomemusic/grilowrappers/grltrackerwrapper.py
similarity index 99%
rename from gnomemusic/grilowrappers/grltrackersource.py
rename to gnomemusic/grilowrappers/grltrackerwrapper.py
index 33e324ea..6c0d835b 100644
--- a/gnomemusic/grilowrappers/grltrackersource.py
+++ b/gnomemusic/grilowrappers/grltrackerwrapper.py
@@ -9,7 +9,7 @@ from gnomemusic.coresong import CoreSong
 from gnomemusic.grilowrappers.grltrackerplaylists import GrlTrackerPlaylists
 
 
-class GrlTrackerSource(GObject.GObject):
+class GrlTrackerWrapper(GObject.GObject):
 
     METADATA_KEYS = [
         Grl.METADATA_KEY_ALBUM,
@@ -34,7 +34,7 @@ class GrlTrackerSource(GObject.GObject):
     ]
 
     def __repr__(self):
-        return "<GrlTrackerSource>"
+        return "<GrlTrackerWrapper>"
 
     def __init__(self, source, coremodel, coreselection, grilo):
         super().__init__()


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