[gnome-music/wip/jfelder/songeditor-gtk4: 62/76] coregrilo: Add a registry property
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/songeditor-gtk4: 62/76] coregrilo: Add a registry property
- Date: Wed, 23 Feb 2022 20:36:45 +0000 (UTC)
commit 0925dc07cf46d0e2497a9ac1929b5cc42988f459
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 d18ed6d8a..d2eb6a05d 100644
--- a/gnomemusic/coregrilo.py
+++ b/gnomemusic/coregrilo.py
@@ -121,6 +121,16 @@ class CoreGrilo(GObject.GObject):
self._log.debug(
"Failed to activate {} plugin.".format(plugin_id))
+ @GObject.Property(
+ type=Grl.Registry, default=None, flags=GObject.ParamFlags.READABLE)
+ def registry(self) -> Grl.Registry:
+ """Get Grilo Registry.
+
+ :returns: the Grilo Registry
+ :rtype: Grl.Registry
+ """
+ return self._registry
+
def _on_tracker_available_changed(self, klass, value):
# FIXME:No removal support yet.
new_state = self._tracker_wrapper.props.tracker_available
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]