[gnome-music/wip/carlosg/tracker3: 31/68] coregrilo: Add a registry property
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/carlosg/tracker3: 31/68] coregrilo: Add a registry property
- Date: Wed, 17 Jun 2020 18:37:56 +0000 (UTC)
commit 05d787cfbd8e4c894f5a9eca5620e182dfc37410
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 the new Grilo Wrappers.
gnomemusic/coregrilo.py | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/gnomemusic/coregrilo.py b/gnomemusic/coregrilo.py
index 63ddbf5c..72ff0507 100644
--- a/gnomemusic/coregrilo.py
+++ b/gnomemusic/coregrilo.py
@@ -104,6 +104,16 @@ class CoreGrilo(GObject.GObject):
weakref.finalize(self, Grl.deinit)
+ @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
+
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]