nautilus-cd-burner r2256 - in trunk: . src



Author: hadess
Date: Tue Dec 16 10:29:09 2008
New Revision: 2256
URL: http://svn.gnome.org/viewvc/nautilus-cd-burner?rev=2256&view=rev

Log:
2008-12-16  Bastien Nocera  <hadess hadess net>

	* src/ncb-selection-dialog.c (update_source),
	(ncb_selection_dialog_init): When copying a disc, make the
	action button be "Copy" and not "Write" (Closes: #548211)



Modified:
   trunk/ChangeLog
   trunk/src/ncb-selection-dialog.c

Modified: trunk/src/ncb-selection-dialog.c
==============================================================================
--- trunk/src/ncb-selection-dialog.c	(original)
+++ trunk/src/ncb-selection-dialog.c	Tue Dec 16 10:29:09 2008
@@ -50,6 +50,7 @@
 struct NcbSelectionDialogPrivate
 {
         GladeXML                *xml;
+        GtkWidget               *write_button;
         NcbSelection            *selection;
         guint                    update_selection_idle_id;
 };
@@ -171,6 +172,8 @@
                 gtk_window_set_title (GTK_WINDOW (dialog), _("Copy Disc"));
                 widget = glade_xml_get_widget (dialog->priv->xml, "target_label");
                 gtk_label_set_text_with_mnemonic (GTK_LABEL (widget), _("Copy disc _to:"));
+                /* Translators: This is "Copy" as in the action to copy the disc onto another one */
+                gtk_button_set_label (GTK_BUTTON (dialog->priv->write_button), _("_Copy"));
         } else {
                 gtk_window_set_title (GTK_WINDOW (dialog), _("Write to Disc"));
         }
@@ -603,7 +606,6 @@
 ncb_selection_dialog_init (NcbSelectionDialog *dialog)
 {
         GtkWidget *vbox;
-        GtkWidget *button;
         GtkWidget *entry;
 
         dialog->priv = NCB_SELECTION_DIALOG_GET_PRIVATE (dialog);
@@ -634,7 +636,7 @@
 
         gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_HELP, GTK_RESPONSE_HELP);
         gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
-        button = gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Write"), GTK_RESPONSE_OK);
+        dialog->priv->write_button = gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Write"), GTK_RESPONSE_OK);
 
         init_dialog (dialog);
 



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