[gnome-music/wip/jfelder/grilo-reload-tracker-source: 1/4] coregrilo: Add a registry property



commit b1f579ef9c67fd82435faff475f7293897ea9ae2
Author: Jean Felder <jfelder src gnome org>
Date:   Wed Feb 19 16:30:54 2020 +0100

    coregrilo: Add a registry property

 gnomemusic/coregrilo.py | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/gnomemusic/coregrilo.py b/gnomemusic/coregrilo.py
index 628645fb..957f0a74 100644
--- a/gnomemusic/coregrilo.py
+++ b/gnomemusic/coregrilo.py
@@ -90,6 +90,16 @@ class CoreGrilo(GObject.GObject):
 
         self._registry.load_all_plugins(True)
 
+    @GObject.Property(
+        type=Grl.Registry, default=None, flags=GObject.ParamFlags.READABLE)
+    def registry(self):
+        """Get grilo plugin manager
+
+        :returns: Grilo Registry object
+        :rtype: Grl.Registry
+        """
+        return self._registry
+
     def _on_tracker_available_changed(self, klass, value):
         new_state = self._tracker_wrapper.props.tracker_available
         # FIXME:No removal support yet.


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