[baobab/import-export: 7/7] Save the scan timestamp in the report
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/import-export: 7/7] Save the scan timestamp in the report
- Date: Sun, 9 Sep 2012 13:02:58 +0000 (UTC)
commit dbd44ff1ce4f7249cc59f24de657f5c96cb81ed0
Author: Stefano Facchini <stefano facchini gmail com>
Date: Sun Sep 9 15:00:52 2012 +0200
Save the scan timestamp in the report
And load it back
src/baobab-scanner.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/baobab-scanner.vala b/src/baobab-scanner.vala
index 4c082f0..2916c87 100644
--- a/src/baobab-scanner.vala
+++ b/src/baobab-scanner.vala
@@ -416,6 +416,7 @@ namespace Baobab {
var obj = new Json.Object ();
obj.set_int_member ("flags", scan_flags);
+ obj.set_int_member ("timestamp", last_scan_timestamp);
Gtk.TreeIter first;
get_iter_first (out first);
@@ -460,6 +461,7 @@ namespace Baobab {
var path = tree_array.get_object_element (0).get_string_member ("p");
directory = File.new_for_path (path);
scan_flags = (ScanFlags) obj.get_int_member ("flags");
+ last_scan_timestamp = obj.get_int_member ("timestamp");
setup_scanner ();
load_children (null, tree_array, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]