[rygel] tracker: SearchContainer.get_item_info() now protected
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] tracker: SearchContainer.get_item_info() now protected
- Date: Fri, 29 Oct 2010 12:35:29 +0000 (UTC)
commit 4b2a42501f41aef3d6e1aaaf2f449a2f037f80de
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Oct 27 20:58:03 2010 +0300
tracker: SearchContainer.get_item_info() now protected
.../tracker/rygel-tracker-search-container.vala | 30 ++++++++++----------
1 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-search-container.vala b/src/plugins/tracker/rygel-tracker-search-container.vala
index 81a7112..252d21c 100644
--- a/src/plugins/tracker/rygel-tracker-search-container.vala
+++ b/src/plugins/tracker/rygel-tracker-search-container.vala
@@ -173,6 +173,21 @@ public class Rygel.Tracker.SearchContainer : Rygel.MediaContainer {
return this.id + "," + urn;
}
+ // Returns the URN and the ID of the parent this item belongs to, or null
+ // if item_id is invalid
+ protected string? get_item_info (string item_id,
+ out string parent_id) {
+ var tokens = item_id.split (",", 2);
+
+ if (tokens[0] != null && tokens[1] != null) {
+ parent_id = tokens[0];
+
+ return tokens[1];
+ } else {
+ return null;
+ }
+ }
+
private bool is_our_child (string id) {
return id.has_prefix (this.id + ",");
}
@@ -272,21 +287,6 @@ public class Rygel.Tracker.SearchContainer : Rygel.MediaContainer {
return filter;
}
- // Returns the URN and the ID of the parent this item belongs to, or null
- // if item_id is invalid
- private string? get_item_info (string item_id,
- out string parent_id) {
- var tokens = item_id.split (",", 2);
-
- if (tokens[0] != null && tokens[1] != null) {
- parent_id = tokens[0];
-
- return tokens[1];
- } else {
- return null;
- }
- }
-
/**
* Chops the tail of a particular row in a 2-dimensional string array.
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]