[gnome-music/wip/mschraal/tageditor-13feb2020: 13/25] coregrilo: Add a registry property



commit 3936663160c74e5214fff1e32b1abdf44e78235d
Author: Jean Felder <jfelder src gnome org>
Date:   Sat Nov 23 13:57:13 2019 +0100

    coregrilo: Add a registry property
    
    This property will be used by new Grilo Wrappers.

 gnomemusic/coregrilo.py | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/gnomemusic/coregrilo.py b/gnomemusic/coregrilo.py
index 5cce9bc5..9c2687ea 100644
--- a/gnomemusic/coregrilo.py
+++ b/gnomemusic/coregrilo.py
@@ -236,3 +236,13 @@ class CoreGrilo(GObject.GObject):
             if wrapper.source.props.source_id == "grl-tracker-source":
                 wrapper.create_playlist(playlist_title, callback)
                 break
+
+    @GObject.Property(
+        type=Grl.Registry, default=None, flags=GObject.ParamFlags.READABLE)
+    def registry(self):
+        """Get Grilo Registry.
+
+        :returns: the Grilo Registry
+        :rtype: Grl.Registry
+        """
+        return self._registry


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