[baobab/wip/new-design: 50/59] Default to false for "exclude_mounts" argument in scan_directory



commit 1ae8329b50c72a165faa1b3bdc0deb48cff1187d
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Mon Mar 12 00:30:18 2012 +0100

    Default to false for "exclude_mounts" argument in scan_directory

 src/baobab-window.vala |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index edafb86..8716ebc 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -128,7 +128,7 @@ namespace Baobab {
 
 		void on_scan_home_activate () {
 			var dir = File.new_for_path (GLib.Environment.get_home_dir ());
-			scan_directory (dir, false);
+			scan_directory (dir);
 		}
 
 		void on_scan_volume_activate () {
@@ -194,7 +194,7 @@ namespace Baobab {
 			file_chooser.response.connect ((response) => {
 				if (response == Gtk.ResponseType.ACCEPT) {
 					var dir = file_chooser.get_file ();
-					scan_directory (dir, false);
+					scan_directory (dir);
 				}
 				file_chooser.destroy ();
 			});
@@ -208,7 +208,7 @@ namespace Baobab {
 			connect_server.selected.connect ((uri) => {
 				if (uri != null) {
 					var dir = File.new_for_uri (uri);
-					scan_directory (dir, false);
+					scan_directory (dir);
 				}
 			});
 
@@ -298,7 +298,7 @@ namespace Baobab {
 			if (dir != null) {
 				// finish drop before scanning, since the it can time out
 				Gtk.drag_finish (context, true, false, time);
-				scan_directory (dir, false);
+				scan_directory (dir);
 			} else {
 				Gtk.drag_finish (context, false, false, time);
 			}
@@ -498,7 +498,7 @@ namespace Baobab {
 			treeview.set_headers_visible (false);
 		}
 
-		public void scan_directory (File directory, bool exclude_mounts) {
+		public void scan_directory (File directory, bool exclude_mounts = false) {
 			if (!check_dir (directory)) {
 				return;
 			}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]