[gnome-music/wip/merge: 119/343] grilo: correctly create options and make requests



commit cb4d55111223a4ba90dce1488d49378cbe60ac80
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Mon Jul 15 16:48:53 2013 +0200

    grilo: correctly create options and make requests

 gnomemusic/grilo.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/grilo.py b/gnomemusic/grilo.py
index 3ccfef4..52a113b 100644
--- a/gnomemusic/grilo.py
+++ b/gnomemusic/grilo.py
@@ -56,19 +56,19 @@ class Grilo(GObject.GObject):
         self.populateItems(Query.songs, offset, callback)
 
     def populateItems(self, query, offset, callback, count=50):
-        options = Grl.OperationOptions(None)
+        options = Grl.OperationOptions()
         options.set_flags(Grl.ResolutionFlags.FULL |
                           Grl.ResolutionFlags.IDLE_RELAY)
         options.set_skip(offset)
         options.set_count(count)
-        self.tracker.query(query, self.METADATA_KEYS, options, callback)
+        self.tracker.query(query, self.METADATA_KEYS, options, callback, None)
 
     def getAlbumSongs(self, album_id, callback):
         query = Query.album_songs(album_id)
-        options = Grl.OperationOptions(None)
+        options = Grl.OperationOptions()
         options.set_flags(Grl.ResolutionFlags.FULL |
                           Grl.ResolutionFlags.IDLE_RELAY)
-        self.tracker.query(query, self.METADATA_KEYS, options, callback)
+        self.tracker.query(query, self.METADATA_KEYS, options, callback, None)
 
     def _searchCallback(self):
         print("yeah")


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