[rygel] tracker: Get rid of SearchContainer().filter



commit 626ba91d3bd570007bdb3dd54ed11d593b4a1f09
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Dec 2 02:10:17 2009 +0200

    tracker: Get rid of SearchContainer().filter

 .../tracker/rygel-tracker-metadata-values.vala     |    3 +--
 .../tracker/rygel-tracker-search-container.vala    |    9 ++-------
 2 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-metadata-values.vala b/src/plugins/tracker/rygel-tracker-metadata-values.vala
index 62d6a57..3bf6e5d 100644
--- a/src/plugins/tracker/rygel-tracker-metadata-values.vala
+++ b/src/plugins/tracker/rygel-tracker-metadata-values.vala
@@ -138,8 +138,7 @@ public class Rygel.TrackerMetadataValues : Rygel.SimpleContainer {
                                                         this,
                                                         value,
                                                         this.item_factory,
-                                                        child_mandatory,
-                                                        null);
+                                                        child_mandatory);
 
             this.add_child (container);
         }
diff --git a/src/plugins/tracker/rygel-tracker-search-container.vala b/src/plugins/tracker/rygel-tracker-search-container.vala
index a2c1819..0646d79 100644
--- a/src/plugins/tracker/rygel-tracker-search-container.vala
+++ b/src/plugins/tracker/rygel-tracker-search-container.vala
@@ -46,8 +46,7 @@ public class Rygel.TrackerSearchContainer : Rygel.MediaContainer {
                                    MediaContainer        parent,
                                    string                title,
                                    TrackerItemFactory    item_factory,
-                                   TrackerQueryTriplets? mandatory = null,
-                                   ArrayList<string>?    filters = null) {
+                                   TrackerQueryTriplets? mandatory = null) {
         base (id, parent, title, 0);
 
         this.item_factory = item_factory;
@@ -86,7 +85,7 @@ public class Rygel.TrackerSearchContainer : Rygel.MediaContainer {
         this.query = new TrackerQuery (variables,
                                        our_mandatory,
                                        optional,
-                                       filters,
+                                       null,
                                        MODIFIED_VARIABLE);
 
         try {
@@ -203,11 +202,7 @@ public class Rygel.TrackerSearchContainer : Rygel.MediaContainer {
         }
 
         var query = new TrackerQuery.clone (this.query);
-
         if (filter != null) {
-            var filters = query.filters;
-            query.filters = new ArrayList<string> ();
-            query.filters.add_all (filters);
             query.filters.add (filter);
         }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]