[rygel] tracker: Populate MetadataContainer children
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] tracker: Populate MetadataContainer children
- Date: Sun, 20 Sep 2009 23:28:18 +0000 (UTC)
commit 6dbf35fd7a778513c1df4fc4f47e3d2c81ab3801
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sat Sep 19 04:21:29 2009 +0300
tracker: Populate MetadataContainer children
.../tracker/rygel-tracker-metadata-values.vala | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-metadata-values.vala b/src/plugins/tracker/rygel-tracker-metadata-values.vala
index 353d730..eed89a8 100644
--- a/src/plugins/tracker/rygel-tracker-metadata-values.vala
+++ b/src/plugins/tracker/rygel-tracker-metadata-values.vala
@@ -35,6 +35,13 @@ public class Rygel.TrackerMetadataValues : Rygel.SimpleContainer {
private const string METADATA_IFACE = "org.freedesktop.Tracker.Metadata";
private const string CATEGORY = "Files";
+ private const string QUERY_CONDITION =
+ "<rdfq:Condition>\n" +
+ "<rdfq:contains>\n" +
+ "<rdfq:Property name=\"%s\" />\n" +
+ "<rdf:String>%s</rdf:String>\n" +
+ "</rdfq:contains>\n" +
+ "</rdfq:Condition>";
public dynamic DBus.Object metadata;
@@ -83,7 +90,14 @@ public class Rygel.TrackerMetadataValues : Rygel.SimpleContainer {
for (uint i = 0; i < search_result.length; i++) {
string value = search_result[i][0];
- var container = new SimpleContainer (value, this, value);
+ var query_condition = QUERY_CONDITION.printf (
+ this.key,
+ Markup.escape_text (value));
+ var container = new TrackerSearchContainer (value,
+ this,
+ value,
+ CATEGORY,
+ query_condition);
this.children.add (container);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]