[baobab/wip/vala: 24/45] Implement two trivial handlers



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]