[baobab/wip/vala: 17/53] Implement two trivial handlers



commit c7a9fe9bbfbf92841f8418c2a12c2c4694342d43
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]