[rygel] tracker: Use filters to make search query specific
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] tracker: Use filters to make search query specific
- Date: Sat, 5 Dec 2009 01:22:19 +0000 (UTC)
commit 9dac5fdf9b70977d6db7f9c5cfa43eeeb0b75eb9
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Dec 3 19:07:56 2009 +0200
tracker: Use filters to make search query specific
.../tracker/rygel-tracker-metadata-values.vala | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-metadata-values.vala b/src/plugins/tracker/rygel-tracker-metadata-values.vala
index cad91b8..c3efc4e 100644
--- a/src/plugins/tracker/rygel-tracker-metadata-values.vala
+++ b/src/plugins/tracker/rygel-tracker-metadata-values.vala
@@ -137,16 +137,20 @@ public class Rygel.TrackerMetadataValues : Rygel.SimpleContainer {
var title = this.title_func (value);
// The child container can use the same mandatory triplets we used
- // in our query except that last value is now fixed
+ // in our query.
var child_mandatory = new TrackerQueryTriplets.clone (mandatory);
- child_mandatory.last ().obj = "\"" + value + "\"";
+
+ // However we constrain the object of our last mandatory triplet.
+ var filters = new ArrayList<string> ();
+ var filter = child_mandatory.last ().obj + " = \"" + value + "\"";
+ filters.add (filter);
var container = new TrackerSearchContainer (value,
this,
title,
this.item_factory,
child_mandatory,
- null);
+ filters);
this.add_child (container);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]