rygel r584 - trunk/src/plugins/tracker
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r584 - trunk/src/plugins/tracker
- Date: Sat, 14 Feb 2009 15:28:05 +0000 (UTC)
Author: zeeshanak
Date: Sat Feb 14 15:28:05 2009
New Revision: 584
URL: http://svn.gnome.org/viewvc/rygel?rev=584&view=rev
Log:
Add/Remove the search results to the list at the correct time.
Modified:
trunk/src/plugins/tracker/rygel-tracker-container.vala
Modified: trunk/src/plugins/tracker/rygel-tracker-container.vala
==============================================================================
--- trunk/src/plugins/tracker/rygel-tracker-container.vala (original)
+++ trunk/src/plugins/tracker/rygel-tracker-container.vala Sat Feb 14 15:28:05 2009
@@ -120,6 +120,8 @@
AsyncReadyCallback callback) {
var res = new TrackerSearchResult (this, callback);
+ this.results.add (res);
+
this.search.Query (0,
this.category,
this.get_metadata_keys (),
@@ -132,8 +134,6 @@
(int) offset,
(int) max_count,
res.search_result_ready);
-
- this.results.add (res);
}
public override Gee.List<MediaObject>? get_children_finish (
@@ -141,6 +141,8 @@
throws GLib.Error {
var search_res = (Rygel.TrackerSearchResult) res;
+ this.results.remove (search_res);
+
if (search_res.error != null) {
throw search_res.error;
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]