[gnome-bluetooth] sendto: Rename Cancel button to Close when done



commit 6c300a8fc0ffb0666c0b37389472e8a09e945b82
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Aug 18 17:07:16 2014 +0200

    sendto: Rename Cancel button to Close when done
    
    https://bugzilla.gnome.org/show_bug.cgi?id=734974

 sendto/main.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/sendto/main.c b/sendto/main.c
index 10d576d..ca1fa04 100644
--- a/sendto/main.c
+++ b/sendto/main.c
@@ -630,6 +630,7 @@ on_transfer_complete (void)
        current_transfer = NULL;
 
        if (file_index == file_count) {
+               GtkWidget *button;
                char *complete;
 
                gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress), 1.0);
@@ -641,6 +642,9 @@ on_transfer_complete (void)
                                                      file_count), file_count);
                gtk_label_set_text (GTK_LABEL (label_status), complete);
                g_free (complete);
+
+               button = gtk_dialog_get_widget_for_response(GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL);
+               gtk_button_set_label (GTK_BUTTON (button), _("_Close"));
        } else {
                send_next_file ();
        }


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