diff options
author | Bastien Nocera <hadess@hadess.net> | 2009-12-14 16:44:09 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2009-12-14 16:44:09 +0000 |
commit | 23b9911ee010f3a3b24356c124473042fa61f513 (patch) | |
tree | 69077c0a3a0b5240baa8f263ecfcd6257992fe31 /sendto/main.c | |
parent | 2c25ff2a5ff81b8efa46016f64b07e7be1a7bc72 (diff) | |
download | gnome-bluetooth-23b9911ee010f3a3b24356c124473042fa61f513.tar.gz |
Fix progress bar with multiple files, show cancel button when retrying
Diffstat (limited to 'sendto/main.c')
-rw-r--r-- | sendto/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sendto/main.c b/sendto/main.c index 38ad0787..e12a9010 100644 --- a/sendto/main.c +++ b/sendto/main.c @@ -537,7 +537,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); @@ -566,7 +567,7 @@ static gboolean error_callback(DBusGMethodInvocation *context, gtk_widget_show (image_status); gtk_label_set_markup(GTK_LABEL(label_status), message); - set_response_visible (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL, FALSE); + set_response_visible (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL, TRUE); set_response_visible (GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE, FALSE); set_response_visible (GTK_DIALOG (dialog), RESPONSE_RETRY, TRUE); @@ -595,7 +596,7 @@ static void send_notify(DBusGProxy *proxy, gtk_label_set_markup(GTK_LABEL(label_status), message); g_free (message); - set_response_visible (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL, FALSE); + set_response_visible (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL, TRUE); set_response_visible (GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE, FALSE); set_response_visible (GTK_DIALOG (dialog), RESPONSE_RETRY, TRUE); return; |