[gnome-music] Set offset using Grilo options



commit e93c91ab765ee66117e3841e5467e9d97ef2065a
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Wed Apr 3 19:52:23 2013 +0000

    Set offset using Grilo options
    
    Do not hardcode it in the SPARQL query.

 src/grilo.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/grilo.js b/src/grilo.js
index 6b6c96b..3f19508 100644
--- a/src/grilo.js
+++ b/src/grilo.js
@@ -76,8 +76,8 @@ const Grilo = new Lang.Class({
     populateItems: function (query, offset, callback) {
         var options = Grl.OperationOptions.new(null);
         options.set_flags (Grl.ResolutionFlags.FULL | Grl.ResolutionFlags.IDLE_RELAY);
+       options.set_skip (offset);
         options.set_count(50);
-        query = query + " OFFSET " + offset;
         print ("populateItems:", query);
         grilo.tracker.query(
             query,


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