[gnome-music/wip/mschraal/tageditor-13feb2020: 43/53] coregrilo: Add a registry property
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/tageditor-13feb2020: 43/53] coregrilo: Add a registry property
- Date: Wed, 26 Feb 2020 15:15:11 +0000 (UTC)
commit 035bff75659748dc67713464a91b1edf78c5bdc4
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 3fcdb3ec..e9752d63 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]