[rygel/gnome-2-32] tracker: Join item ID components by ', ' rather than ':'
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/gnome-2-32] tracker: Join item ID components by ', ' rather than ':'
- Date: Mon, 18 Oct 2010 20:58:01 +0000 (UTC)
commit a4ece7935d48430a95519fc0a6c2b90d6d008f23
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Sep 27 00:22:17 2010 +0300
tracker: Join item ID components by ',' rather than ':'
Use ',' intead of ':' to join SearchContainer's ID and item's URN in the
child item's ID. This fixes item queries for Tracker backend. This issue
has been there since commit 51e4fdb (Feb 19 2010) but it didn't realize
so far because the default slow search used to kick-in and save the day.
.../tracker/rygel-tracker-search-container.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-search-container.vala b/src/plugins/tracker/rygel-tracker-search-container.vala
index 537af49..d04c9d1 100644
--- a/src/plugins/tracker/rygel-tracker-search-container.vala
+++ b/src/plugins/tracker/rygel-tracker-search-container.vala
@@ -164,11 +164,11 @@ public class Rygel.Tracker.SearchContainer : Rygel.MediaContainer {
}
public string create_child_id_for_urn (string urn) {
- return this.id + ":" + urn;
+ return this.id + "," + urn;
}
private bool is_our_child (string id) {
- return id.has_prefix (this.id + ":");
+ return id.has_prefix (this.id + ",");
}
private async void get_children_count () {
@@ -268,7 +268,7 @@ public class Rygel.Tracker.SearchContainer : Rygel.MediaContainer {
// if item_id is invalid
private string? get_item_info (string item_id,
out string parent_id) {
- var tokens = item_id.split (":", 2);
+ var tokens = item_id.split (",", 2);
if (tokens[0] != null && tokens[1] != null) {
parent_id = tokens[0];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]