[gnome-music] grilo: init Grilo inside __init__
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] grilo: init Grilo inside __init__
- Date: Fri, 4 Mar 2016 12:12:42 +0000 (UTC)
commit e8b7f7a69c43de6a1f4edaac1934ca9b2cc54fcf
Author: fosero <fosero users noreply github com>
Date: Sat Feb 27 16:00:14 2016 +0100
grilo: init Grilo inside __init__
https://bugzilla.gnome.org/show_bug.cgi?id=762821
gnomemusic/grilo.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/grilo.py b/gnomemusic/grilo.py
index 61d6f16..1bcad84 100644
--- a/gnomemusic/grilo.py
+++ b/gnomemusic/grilo.py
@@ -72,6 +72,8 @@ class Grilo(GObject.GObject):
"gnome-music", "playlists"])
if not (GLib.file_test(self.playlist_path, GLib.FileTest.IS_DIR)):
GLib.mkdir_with_parents(self.playlist_path, int("0755", 8))
+
+ Grl.init(None)
self.options = Grl.OperationOptions()
self.options.set_resolution_flags(Grl.ResolutionFlags.FAST_ONLY |
Grl.ResolutionFlags.IDLE_RELAY)
@@ -319,6 +321,4 @@ class Grilo(GObject.GObject):
self.tracker.query(query, self.METADATA_KEYS, options, callback, None)
-Grl.init(None)
-
grilo = Grilo()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]