[rygel] Revert "tracker: Don't use default parameters for arrays"
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] Revert "tracker: Don't use default parameters for arrays"
- Date: Fri, 16 Oct 2009 16:24:06 +0000 (UTC)
commit bc31ab78b29fbdf944817fe33c2eaec2176748b0
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Oct 5 19:06:38 2009 +0300
Revert "tracker: Don't use default parameters for arrays"
This reverts commit 8ade721ee6e2fff152f93e42b71a59eada17e1df.
src/plugins/tracker/rygel-tracker-keywords.vala | 1 +
.../tracker/rygel-tracker-metadata-values.vala | 1 -
.../tracker/rygel-tracker-root-container.vala | 9 +++------
.../tracker/rygel-tracker-search-container.vala | 5 ++---
4 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-keywords.vala b/src/plugins/tracker/rygel-tracker-keywords.vala
index fce1012..cd7b8ff 100644
--- a/src/plugins/tracker/rygel-tracker-keywords.vala
+++ b/src/plugins/tracker/rygel-tracker-keywords.vala
@@ -74,6 +74,7 @@ public class Rygel.TrackerKeywords : Rygel.SimpleContainer {
this,
keyword,
SERVICE,
+ "",
keywords);
this.add_child (container);
diff --git a/src/plugins/tracker/rygel-tracker-metadata-values.vala b/src/plugins/tracker/rygel-tracker-metadata-values.vala
index 9064459..b7f3c09 100644
--- a/src/plugins/tracker/rygel-tracker-metadata-values.vala
+++ b/src/plugins/tracker/rygel-tracker-metadata-values.vala
@@ -101,7 +101,6 @@ public class Rygel.TrackerMetadataValues : Rygel.SimpleContainer {
this,
value,
SERVICE,
- new string[0],
query_condition);
this.add_child (container);
diff --git a/src/plugins/tracker/rygel-tracker-root-container.vala b/src/plugins/tracker/rygel-tracker-root-container.vala
index fb97eaf..de7ac8e 100644
--- a/src/plugins/tracker/rygel-tracker-root-container.vala
+++ b/src/plugins/tracker/rygel-tracker-root-container.vala
@@ -37,20 +37,17 @@ public class Rygel.TrackerRootContainer : Rygel.SimpleContainer {
"16",
this,
"Pictures",
- TrackerImageItem.SERVICE,
- new string[0]));
+ TrackerImageItem.SERVICE));
this.add_child (new TrackerSearchContainer (
"14",
this,
"Music",
- TrackerMusicItem.SERVICE,
- new string[0]));
+ TrackerMusicItem.SERVICE));
this.add_child (new TrackerSearchContainer (
"15",
this,
"Videos",
- TrackerVideoItem.SERVICE,
- new string[0]));
+ TrackerVideoItem.SERVICE));
this.add_child (new TrackerMetadataValues ("Audio:Artist",
"17",
this,
diff --git a/src/plugins/tracker/rygel-tracker-search-container.vala b/src/plugins/tracker/rygel-tracker-search-container.vala
index b82ebde..f56bb50 100644
--- a/src/plugins/tracker/rygel-tracker-search-container.vala
+++ b/src/plugins/tracker/rygel-tracker-search-container.vala
@@ -54,11 +54,10 @@ public class Rygel.TrackerSearchContainer : Rygel.MediaContainer {
MediaContainer parent,
string title,
string service,
- string[] keywords,
- string query_condition = "") {
+ string query_condition = "",
+ string[] keywords = new string[0]) {
base (id, parent, title, 0);
- this.keywords = keywords;
this.service = service;
this.keywords = keywords;
this.query_condition = query_condition;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]