[PATCH] Set file operation progress dialog to "Preparing Foo..." when counting source file sizes



The attached patch makes the nautilus progress dialog at least display a
"Preparing..." info during preflight. There is still much to improve
(especially making the preflight properly cancellable), but it is a good
start.

Related bug report:
http://bugzilla.gnome.org/show_bug.cgi?id=311342

-- 
Christian Neumair <chris gnome-de org>
Index: libnautilus-private/nautilus-file-operations-progress.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-file-operations-progress.c,v
retrieving revision 1.50
diff -u -p -r1.50 nautilus-file-operations-progress.c
--- libnautilus-private/nautilus-file-operations-progress.c	18 Mar 2006 07:13:49 -0000	1.50
+++ libnautilus-private/nautilus-file-operations-progress.c	2 Apr 2006 16:04:41 -0000
@@ -151,9 +151,8 @@ nautilus_file_operations_progress_update
 	char *remaining_time_string = NULL;
 
 	if (progress->details->bytes_total == 0) {
-		/* We haven't set up the file count yet, do not update
-		 * the progress bar until we do.
-		 */
+		/* We haven't set up the file count yet */
+		gtk_progress_bar_set_text (GTK_PROGRESS_BAR (progress->details->progress_bar), progress->details->progress_title);
 		return;
 	}
 
@@ -550,6 +549,8 @@ nautilus_file_operations_progress_set_op
 
 	g_free (progress->details->progress_title);
 	progress->details->progress_title = g_strdup (operation_string);
+
+	nautilus_file_operations_progress_update (progress);
 }
 
 void


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