[baobab/wip/vala: 31/41] Implement two trivial handlers



commit 363e2c339bad0ffd2b21402c4f2ba039eaf6901f
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 3c452d9..b427c09 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]