[gnome-music] Set offset using Grilo options
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Set offset using Grilo options
- Date: Wed, 3 Apr 2013 19:58:24 +0000 (UTC)
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]