[network-manager-applet/NMA_0_8] editor: use accelerator keys for "Edit", "Delete" and "Save" buttons



commit 160ca46bede2bbecfaff07cdbb9f0eb7b979e1c0
Author: JiÅ?í KlimeÅ¡ <jklimes redhat com>
Date:   Tue Oct 12 11:09:43 2010 +0200

    editor: use accelerator keys for "Edit", "Delete" and "Save" buttons

 src/connection-editor/nm-connection-editor.c |    5 +++--
 src/connection-editor/nm-connection-list.c   |   10 ++++++----
 2 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/src/connection-editor/nm-connection-editor.c b/src/connection-editor/nm-connection-editor.c
index 59e7149..39c8b31 100644
--- a/src/connection-editor/nm-connection-editor.c
+++ b/src/connection-editor/nm-connection-editor.c
@@ -416,13 +416,14 @@ nm_connection_editor_new (NMConnection *connection,
 		use_polkit = TRUE;
 	}
 
-	editor->ok_button = ce_polkit_button_new (_("Save"),
+	editor->ok_button = ce_polkit_button_new (_("_Save"),
 	                                          _("Save any changes made to this connection."),
-	                                          _("Save..."),
+	                                          _("_Save..."),
 	                                          _("Authenticate to save this connection for all users of this machine."),
 	                                          GTK_STOCK_APPLY,
 	                                          settings,
 	                                          NM_SETTINGS_SYSTEM_PERMISSION_CONNECTION_MODIFY);
+	gtk_button_set_use_underline (GTK_BUTTON (editor->ok_button), TRUE);
 	ce_polkit_button_set_use_polkit (CE_POLKIT_BUTTON (editor->ok_button), use_polkit);
 
 	g_signal_connect (editor->ok_button, "actionable",
diff --git a/src/connection-editor/nm-connection-list.c b/src/connection-editor/nm-connection-list.c
index 1791698..a836c6b 100644
--- a/src/connection-editor/nm-connection-list.c
+++ b/src/connection-editor/nm-connection-list.c
@@ -1279,13 +1279,14 @@ add_connection_buttons (NMConnectionList *self,
 
 	/* Edit */
 	info = action_info_new (self, treeview, GTK_WINDOW (self->dialog), NULL);
-	button = ce_polkit_button_new (_("Edit"),
+	button = ce_polkit_button_new (_("_Edit"),
 	                               _("Edit the selected connection"),
-	                               _("Edit..."),
+	                               _("_Edit..."),
 	                               _("Authenticate to edit the selected connection"),
 	                               GTK_STOCK_EDIT,
 	                               self->system_settings,
 	                               NM_SETTINGS_SYSTEM_PERMISSION_CONNECTION_MODIFY);
+	gtk_button_set_use_underline (GTK_BUTTON (button), TRUE);
 	gtk_box_pack_end (GTK_BOX (hbox), button, TRUE, TRUE, 0);
 
 	action_info_set_button (info, button);
@@ -1296,13 +1297,14 @@ add_connection_buttons (NMConnectionList *self,
 
 	/* Delete */
 	info = action_info_new (self, treeview, GTK_WINDOW (self->dialog), NULL);
-	button = ce_polkit_button_new (_("Delete"),
+	button = ce_polkit_button_new (_("_Delete"),
 	                               _("Delete the selected connection"),
-	                               _("Delete..."),
+	                               _("_Delete..."),
 	                               _("Authenticate to delete the selected connection"),
 	                               GTK_STOCK_DELETE,
 	                               self->system_settings,
 	                               NM_SETTINGS_SYSTEM_PERMISSION_CONNECTION_MODIFY);
+	gtk_button_set_use_underline (GTK_BUTTON (button), TRUE);
 	gtk_box_pack_end (GTK_BOX (hbox), button, TRUE, TRUE, 0);
 
 	action_info_set_button (info, button);



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