[gnome-bluetooth] sendto: clear the progress bar text when there's an error



commit f7dc44fa05157fa07f97192e21b5d4a7e0b55514
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Fri May 17 13:55:51 2013 +0200

    sendto: clear the progress bar text when there's an error
    
    https://bugzilla.gnome.org/show_bug.cgi?id=685717

 sendto/main.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/sendto/main.c b/sendto/main.c
index b079fad..1dd3434 100644
--- a/sendto/main.c
+++ b/sendto/main.c
@@ -120,6 +120,10 @@ handle_error (GError *error)
        gtk_label_set_markup (GTK_LABEL (label_status), message);
        g_free (message);
 
+       /* Clear the progress bar as it may be saying 'Connecting' or
+        * 'Sending file 1 of 1' which is not true. */
+       gtk_progress_bar_set_text (GTK_PROGRESS_BAR (progress), "");
+
        gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), RESPONSE_RETRY, TRUE);
 }
 


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