[baobab/wip/vala: 28/44] threaded scanner: report toplevel results
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/wip/vala: 28/44] threaded scanner: report toplevel results
- Date: Sun, 8 Jan 2012 15:28:02 +0000 (UTC)
commit 5978c4392a3a1cd2796b41fa430a854327b4519b
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Jan 5 21:24:43 2012 -0500
threaded scanner: report toplevel results
src/baobab-threaded-scanner.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/baobab-threaded-scanner.vala b/src/baobab-threaded-scanner.vala
index 07e4b96..2018923 100644
--- a/src/baobab-threaded-scanner.vala
+++ b/src/baobab-threaded-scanner.vala
@@ -156,13 +156,13 @@ namespace Baobab {
void* scan_in_thread () {
try {
var array = new ResultsArray ();
-
var info = directory.query_info (ATTRIBUTES, 0, cancellable);
var results = add_directory (directory, info);
results.percent = 100.0;
array.results += (owned) results;
- //max_depth = results.max_depth;
- } catch { }
+ results_queue.push ((owned) array);
+ } catch {
+ }
// drop the thread's reference on the Scanner object
this.self = null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]