epiphany r8579 - trunk/src



Author: diegoe
Date: Sun Oct 12 22:35:44 2008
New Revision: 8579
URL: http://svn.gnome.org/viewvc/epiphany?rev=8579&view=rev

Log:
Fix conflicting mnemonics in Clear All Personal Data

Reuse existing strings, closes: bug #549892. Patch by Juan Percy Rojas Cruz.

Modified:
   trunk/src/pdm-dialog.c

Modified: trunk/src/pdm-dialog.c
==============================================================================
--- trunk/src/pdm-dialog.c	(original)
+++ trunk/src/pdm-dialog.c	Sun Oct 12 22:35:44 2008
@@ -307,6 +307,7 @@
 	GtkWidget *dialog, *vbox;
 	GtkWidget *check, *label;
 	PdmClearAllDialogButtons *checkbuttons;
+	GtkWidget *button, *icon;
 
 	dialog = gtk_message_dialog_new_with_markup (GTK_WINDOW (parent),
 						     GTK_DIALOG_DESTROY_WITH_PARENT |
@@ -322,14 +323,22 @@
 						    "check the types of information that you "
 						    "want to remove:"));
 	gtk_window_set_title (GTK_WINDOW (dialog), _("Clear All Personal Data"));
+
 	gtk_dialog_add_buttons (GTK_DIALOG (dialog),
 				GTK_STOCK_HELP,
 				GTK_RESPONSE_HELP,
 				GTK_STOCK_CANCEL,
 				GTK_RESPONSE_CANCEL,
-				GTK_STOCK_CLEAR,
-				GTK_RESPONSE_OK,
 				NULL);
+
+	/* Clear button */
+	button = gtk_dialog_add_button (GTK_DIALOG (dialog),
+					_("Cl_ear"),
+					GTK_RESPONSE_OK);
+	icon = gtk_image_new_from_stock (GTK_STOCK_CLEAR, GTK_ICON_SIZE_BUTTON);
+	gtk_button_set_image (GTK_BUTTON (button), icon);
+	gtk_widget_show (button);
+
 	gtk_dialog_set_default_response (GTK_DIALOG (dialog),
 					 GTK_RESPONSE_CANCEL);
 	gtk_label_set_selectable (GTK_LABEL (GTK_MESSAGE_DIALOG (dialog)->label),
@@ -368,7 +377,7 @@
 	}
 
 	/* History */
-	check = gtk_check_button_new_with_mnemonic (_("_History"));
+	check = gtk_check_button_new_with_mnemonic (_("Hi_story"));
 	checkbuttons->checkbutton_history = check;
 	gtk_box_pack_start (GTK_BOX (vbox), check,
 			    FALSE, FALSE, 0);



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