[baobab/wip/vala: 24/45] Implement two trivial handlers
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/wip/vala: 24/45] Implement two trivial handlers
- Date: Sun, 29 Jan 2012 14:45:35 +0000 (UTC)
commit dbee9d0d5ced0ddd0c1a99d9727c38f23752257d
Author: Paolo Borelli <pborelli gnome org>
Date: Fri Jan 6 11:16:15 2012 +0100
Implement two trivial handlers
Implement scan home and scan filesystem.
src/baobab-window.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index e708d64..ddc0730 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -63,11 +63,13 @@ namespace Baobab {
}
void on_scan_home_activate () {
- print ("sh\n");
+ var dir = File.new_for_path (GLib.Environment.get_home_dir ());
+ scan_directory (dir);
}
void on_scan_filesystem_activate () {
- print ("sfs\n");
+ var dir = File.new_for_uri ("file:///");
+ scan_directory (dir);
}
void on_scan_folder_activate () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]