[gnome-bluetooth/gnome-2-28] Fix progress bar with multiple files



commit a62113e0ee5b11016c7d237063f677feddae6bb7
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Dec 14 16:45:38 2009 +0000

    Fix progress bar with multiple files

 sendto/main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/sendto/main.c b/sendto/main.c
index 79ce233..3068400 100644
--- a/sendto/main.c
+++ b/sendto/main.c
@@ -478,7 +478,8 @@ static gboolean complete_callback(DBusGMethodInvocation *context,
 	g_object_unref (current_transfer);
 	current_transfer = NULL;
 
-	gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress), 1.0);
+	if (file_index == file_count)
+		gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress), 1.0);
 
 	dbus_g_method_return(context);
 



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