From 99645630821b59dd13e00c9089f25a8a7a86804f Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Sun, 9 Jul 2017 13:15:51 +0100 Subject: [PATCH] Fix mistake in changing button labels from stock Did not add the alt key option --- .../gnc-plugin-page-owner-tree.c | 4 ++-- src/business/business-ledger/gncEntryLedger.c | 2 +- .../business-ledger/gncEntryLedgerControl.c | 2 +- src/gnome-search/dialog-search.c | 4 ++-- src/gnome-search/search-account.c | 4 ++-- src/gnome-utils/dialog-account.c | 4 ++-- src/gnome-utils/gnc-file.c | 16 ++++++++-------- src/gnome-utils/gnc-gui-query.c | 4 ++-- src/gnome-utils/gnc-main-window.c | 4 ++-- src/gnome-utils/gnc-recurrence.c | 4 ++-- src/gnome-utils/gnc-tree-control-split-reg.c | 6 +++--- src/gnome-utils/gnc-tree-view-split-reg.c | 2 +- src/gnome/dialog-commodities.c | 4 ++-- src/gnome/dialog-price-edit-db.c | 4 ++-- src/gnome/dialog-tax-info.c | 4 ++-- src/gnome/gnc-plugin-budget.c | 4 ++-- src/gnome/gnc-plugin-page-account-tree.c | 4 ++-- src/gnome/gnc-plugin-page-register.c | 2 +- src/gnome/gnc-plugin-page-register2.c | 2 +- src/gnome/gnc-split-reg.c | 18 +++++++++--------- .../csv-exp/assistant-csv-export.c | 2 +- .../csv-imp/assistant-csv-account-import.c | 6 +++--- src/plugins/bi_import/dialog-bi-import-gui.c | 6 +++--- .../dialog-customer-import-gui.c | 6 +++--- .../ledger-core/split-register-control.c | 2 +- 25 files changed, 60 insertions(+), 60 deletions(-) diff --git a/src/business/business-gnome/gnc-plugin-page-owner-tree.c b/src/business/business-gnome/gnc-plugin-page-owner-tree.c index ce3b462e478..bf41b5300fe 100644 --- a/src/business/business-gnome/gnc-plugin-page-owner-tree.c +++ b/src/business/business-gnome/gnc-plugin-page-owner-tree.c @@ -1086,8 +1086,8 @@ gnc_plugin_page_owner_tree_cmd_delete_owner (GtkAction *action, GncPluginPageOwn "%s", message); g_free(message); gtk_dialog_add_buttons(GTK_DIALOG(dialog), - _("Cancel"), GTK_RESPONSE_CANCEL, - _("Delete"), GTK_RESPONSE_ACCEPT, + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_Delete"), GTK_RESPONSE_ACCEPT, (gchar *)NULL); gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_CANCEL); response = gtk_dialog_run(GTK_DIALOG(dialog)); diff --git a/src/business/business-ledger/gncEntryLedger.c b/src/business/business-ledger/gncEntryLedger.c index 1c6243e5388..8257c5107ec 100644 --- a/src/business/business-ledger/gncEntryLedger.c +++ b/src/business/business-ledger/gncEntryLedger.c @@ -915,7 +915,7 @@ gnc_entry_ledger_duplicate_current_entry (GncEntryLedger *ledger) gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), "%s", message); gtk_dialog_add_buttons(GTK_DIALOG(dialog), - _("Cancel"), GTK_RESPONSE_CANCEL, + _("_Cancel"), GTK_RESPONSE_CANCEL, _("_Record"), GTK_RESPONSE_ACCEPT, NULL); response = gnc_dialog_run(GTK_DIALOG(dialog), GNC_PREF_WARN_INV_ENTRY_DUP); diff --git a/src/business/business-ledger/gncEntryLedgerControl.c b/src/business/business-ledger/gncEntryLedgerControl.c index a948de54700..ec0e84c610b 100644 --- a/src/business/business-ledger/gncEntryLedgerControl.c +++ b/src/business/business-ledger/gncEntryLedgerControl.c @@ -896,7 +896,7 @@ static gboolean gnc_entry_ledger_traverse (VirtualLocation *p_new_virt_loc, "%s", message); gtk_dialog_add_buttons(GTK_DIALOG(dialog), _("_Don't Record"), GTK_RESPONSE_REJECT, - _("Cancel"), GTK_RESPONSE_CANCEL, + _("_Cancel"), GTK_RESPONSE_CANCEL, _("_Record"), GTK_RESPONSE_ACCEPT, NULL); response = gnc_dialog_run(GTK_DIALOG(dialog), GNC_PREF_WARN_INV_ENTRY_MOD); diff --git a/src/gnome-search/dialog-search.c b/src/gnome-search/dialog-search.c index d6384fd860c..fcb208e4da8 100644 --- a/src/gnome-search/dialog-search.c +++ b/src/gnome-search/dialog-search.c @@ -724,7 +724,7 @@ attach_element (GtkWidget *element, GNCSearchWindow *sw, int row) gtk_widget_set_halign (element, GTK_ALIGN_FILL); g_object_set (element, "margin", 0, NULL); - remove = gtk_button_new_with_label (_("Remove")); + remove = gtk_button_new_with_mnemonic (_("_Remove")); g_object_set_data (G_OBJECT (remove), "element", element); g_signal_connect (G_OBJECT (remove), "clicked", G_CALLBACK (remove_element), sw); @@ -1175,7 +1175,7 @@ gnc_search_dialog_init_widgets (GNCSearchWindow *sw, const gchar *title) gtk_label_set_text (GTK_LABEL (label), type_label); /* Set the 'add criterion' button */ - add = gtk_button_new_with_label (_("Add")); + add = gtk_button_new_with_mnemonic (_("_Add")); g_signal_connect (G_OBJECT (add), "clicked", G_CALLBACK (add_criterion), sw); box = GTK_WIDGET(gtk_builder_get_object (builder, "add_button_box")); diff --git a/src/gnome-search/search-account.c b/src/gnome-search/search-account.c index eb9532d1286..faf53f2a5f1 100644 --- a/src/gnome-search/search-account.c +++ b/src/gnome-search/search-account.c @@ -259,8 +259,8 @@ button_clicked (GtkButton *button, GNCSearchAccount *fi) GTK_DIALOG(gtk_dialog_new_with_buttons(_("Select the Accounts to Compare"), NULL, 0, - _("Cancel"), GTK_RESPONSE_CANCEL, - _("OK"), GTK_RESPONSE_OK, + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_OK"), GTK_RESPONSE_OK, NULL)); /* Put the dialog together */ diff --git a/src/gnome-utils/dialog-account.c b/src/gnome-utils/dialog-account.c index 7b7d89fdbcc..ba658f9301d 100644 --- a/src/gnome-utils/dialog-account.c +++ b/src/gnome-utils/dialog-account.c @@ -644,8 +644,8 @@ verify_children_compatible (AccountWindow *aw) GTK_WINDOW(aw->dialog), GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL, - _("Cancel"), GTK_RESPONSE_CANCEL, - _("OK"), GTK_RESPONSE_OK, + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_OK"), GTK_RESPONSE_OK, NULL); gtk_window_set_skip_taskbar_hint (GTK_WINDOW (dialog), TRUE); diff --git a/src/gnome-utils/gnc-file.c b/src/gnome-utils/gnc-file.c index 7ca838e044d..3431df2e7ea 100644 --- a/src/gnome-utils/gnc-file.c +++ b/src/gnome-utils/gnc-file.c @@ -85,7 +85,7 @@ gnc_file_dialog (const char * title, GtkWidget *file_box; const char *internal_name; char *file_name = NULL; - gchar * okbutton = _("Open"); + gchar * okbutton = _("_Open"); const gchar *ok_icon = NULL; GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_OPEN; gint response; @@ -96,7 +96,7 @@ gnc_file_dialog (const char * title, { case GNC_FILE_DIALOG_OPEN: action = GTK_FILE_CHOOSER_ACTION_OPEN; - okbutton = _("Open"); + okbutton = _("_Open"); if (title == NULL) title = _("Open"); break; @@ -108,7 +108,7 @@ gnc_file_dialog (const char * title, break; case GNC_FILE_DIALOG_SAVE: action = GTK_FILE_CHOOSER_ACTION_SAVE; - okbutton = _("Save"); + okbutton = _("_Save"); if (title == NULL) title = _("Save"); break; @@ -126,7 +126,7 @@ gnc_file_dialog (const char * title, title, NULL, action, - _("Cancel"), GTK_RESPONSE_CANCEL, + _("_Cancel"), GTK_RESPONSE_CANCEL, NULL); if (ok_icon) gnc_gtk_dialog_add_button(file_box, okbutton, ok_icon, GTK_RESPONSE_ACCEPT); @@ -313,7 +313,7 @@ show_session_error (QofBackendError io_error, fmt, displayname); gtk_dialog_add_buttons(GTK_DIALOG(dialog), - _("Cancel"), GTK_RESPONSE_CANCEL, + _("_Cancel"), GTK_RESPONSE_CANCEL, label, GTK_RESPONSE_YES, NULL); if (parent == NULL) @@ -611,9 +611,9 @@ gnc_file_query_save (gboolean can_cancel) if (can_cancel) gtk_dialog_add_button(GTK_DIALOG(dialog), - _("Cancel"), GTK_RESPONSE_CANCEL); + _("_Cancel"), GTK_RESPONSE_CANCEL); gtk_dialog_add_button(GTK_DIALOG(dialog), - _("Save"), GTK_RESPONSE_YES); + _("_Save"), GTK_RESPONSE_YES); gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_YES); @@ -802,7 +802,7 @@ gnc_post_file_open (const char * filename, gboolean is_readonly) "document-open", RESPONSE_OPEN); if (shutdown_cb) gtk_dialog_add_button(GTK_DIALOG(dialog), - _("Quit"), RESPONSE_QUIT); + _("_Quit"), RESPONSE_QUIT); rc = gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); g_free (displayname); diff --git a/src/gnome-utils/gnc-gui-query.c b/src/gnome-utils/gnc-gui-query.c index b329629893d..c31a380b6a0 100644 --- a/src/gnome-utils/gnc-gui-query.c +++ b/src/gnome-utils/gnc-gui-query.c @@ -337,10 +337,10 @@ gnc_choose_radio_option_dialog(GtkWidget *parent, } if (!button_name) - button_name = _("OK"); + button_name = _("_OK"); dialog = gtk_dialog_new_with_buttons (title, GTK_WINDOW(parent), GTK_DIALOG_DESTROY_WITH_PARENT, - _("Cancel"), GTK_RESPONSE_CANCEL, + _("_Cancel"), GTK_RESPONSE_CANCEL, button_name, GTK_RESPONSE_OK, NULL); diff --git a/src/gnome-utils/gnc-main-window.c b/src/gnome-utils/gnc-main-window.c index bd088c4144d..c60add56bce 100644 --- a/src/gnome-utils/gnc-main-window.c +++ b/src/gnome-utils/gnc-main-window.c @@ -1260,8 +1260,8 @@ gnc_main_window_prompt_for_save (GtkWidget *window) } gtk_dialog_add_buttons(GTK_DIALOG(dialog), _("Close _Without Saving"), GTK_RESPONSE_CLOSE, - _("Cancel"), GTK_RESPONSE_CANCEL, - _("Save"), GTK_RESPONSE_APPLY, + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_Save"), GTK_RESPONSE_APPLY, NULL); gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_APPLY); diff --git a/src/gnome-utils/gnc-recurrence.c b/src/gnome-utils/gnc-recurrence.c index 300fbee6f4c..67ff5505766 100644 --- a/src/gnome-utils/gnc-recurrence.c +++ b/src/gnome-utils/gnc-recurrence.c @@ -546,10 +546,10 @@ gnc_recurrence_comp_init(GncRecurrenceComp *grc) gtk_box_set_homogeneous (GTK_BOX (grc->vbox), FALSE); grc->rlist = NULL; - grc->buttAdd = GTK_BUTTON(gtk_button_new_with_label(_("Add"))); + grc->buttAdd = GTK_BUTTON(gtk_button_new_with_mnemonic(_("_Add"))); g_signal_connect(G_OBJECT(grc->buttAdd), "clicked", G_CALLBACK(addClicked), grc); - grc->buttRemove = GTK_BUTTON(gtk_button_new_with_label(_("Remove"))); + grc->buttRemove = GTK_BUTTON(gtk_button_new_with_mnemonic(_("_Remove"))); g_signal_connect(G_OBJECT(grc->buttRemove), "clicked", G_CALLBACK(removeClicked), grc); diff --git a/src/gnome-utils/gnc-tree-control-split-reg.c b/src/gnome-utils/gnc-tree-control-split-reg.c index 42a41a33e39..2cd0c922030 100644 --- a/src/gnome-utils/gnc-tree-control-split-reg.c +++ b/src/gnome-utils/gnc-tree-control-split-reg.c @@ -884,7 +884,7 @@ gnc_tree_control_split_reg_reinit (GncTreeViewSplitReg *view, gpointer data) } gtk_dialog_add_button (GTK_DIALOG (dialog), - _("Cancel"), GTK_RESPONSE_CANCEL); + _("_Cancel"), GTK_RESPONSE_CANCEL); gnc_gtk_dialog_add_button(dialog, _("_Remove Splits"), "edit-delete", GTK_RESPONSE_ACCEPT); response = gnc_dialog_run (GTK_DIALOG(dialog), warning); @@ -1021,7 +1021,7 @@ gnc_tree_control_split_reg_delete (GncTreeViewSplitReg *view, gpointer data) } gtk_dialog_add_button (GTK_DIALOG (dialog), - _("Cancel"), GTK_RESPONSE_CANCEL); + _("_Cancel"), GTK_RESPONSE_CANCEL); gnc_gtk_dialog_add_button (dialog, _("_Delete Split"), "edit-delete", GTK_RESPONSE_ACCEPT); response = gnc_dialog_run (GTK_DIALOG (dialog), warning); @@ -1061,7 +1061,7 @@ gnc_tree_control_split_reg_delete (GncTreeViewSplitReg *view, gpointer data) warning = GNC_PREF_WARN_REG_TRANS_DEL; } gtk_dialog_add_button (GTK_DIALOG (dialog), - _("Cancel"), GTK_RESPONSE_CANCEL); + _("_Cancel"), GTK_RESPONSE_CANCEL); gnc_gtk_dialog_add_button (dialog, _("_Delete Transaction"), "edit-delete", GTK_RESPONSE_ACCEPT); response = gnc_dialog_run (GTK_DIALOG (dialog), warning); diff --git a/src/gnome-utils/gnc-tree-view-split-reg.c b/src/gnome-utils/gnc-tree-view-split-reg.c index cdff7e55ea8..2dfc06ec682 100644 --- a/src/gnome-utils/gnc-tree-view-split-reg.c +++ b/src/gnome-utils/gnc-tree-view-split-reg.c @@ -2452,7 +2452,7 @@ gtv_sr_transaction_changed_confirm (GncTreeViewSplitReg *view, "%s", message); gtk_dialog_add_buttons (GTK_DIALOG(dialog),_("_Discard Changes"), GTK_RESPONSE_REJECT, - _("Cancel"), GTK_RESPONSE_CANCEL, + _("_Cancel"), GTK_RESPONSE_CANCEL, _("_Record Changes"), GTK_RESPONSE_ACCEPT, NULL); response = gnc_dialog_run (GTK_DIALOG (dialog), GNC_PREF_WARN_REG_TRANS_MOD); diff --git a/src/gnome/dialog-commodities.c b/src/gnome/dialog-commodities.c index 7646871664b..b317f3bce6b 100644 --- a/src/gnome/dialog-commodities.c +++ b/src/gnome/dialog-commodities.c @@ -187,8 +187,8 @@ remove_clicked (CommoditiesDialog *cd) gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), "%s", message); gtk_dialog_add_buttons(GTK_DIALOG(dialog), - _("Cancel"), GTK_RESPONSE_CANCEL, - _("Delete"), GTK_RESPONSE_OK, + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_Delete"), GTK_RESPONSE_OK, (gchar *)NULL); response = gnc_dialog_run(GTK_DIALOG(dialog), warning); gtk_widget_destroy(dialog); diff --git a/src/gnome/dialog-price-edit-db.c b/src/gnome/dialog-price-edit-db.c index 0d6c3f34948..0cb8cf5d47c 100644 --- a/src/gnome/dialog-price-edit-db.c +++ b/src/gnome/dialog-price-edit-db.c @@ -195,8 +195,8 @@ gnc_prices_dialog_remove_clicked (GtkWidget *widget, gpointer data) "%s", message); g_free(message); gtk_dialog_add_buttons(GTK_DIALOG(dialog), - _("Cancel"), GTK_RESPONSE_CANCEL, - _("Delete"), GTK_RESPONSE_YES, + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_Delete"), GTK_RESPONSE_YES, (gchar *)NULL); gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_YES); response = gnc_dialog_run(GTK_DIALOG(dialog), GNC_PREF_WARN_PRICE_QUOTES_DEL); diff --git a/src/gnome/dialog-tax-info.c b/src/gnome/dialog-tax-info.c index 230cf9d8dfa..68f9cdf8251 100644 --- a/src/gnome/dialog-tax-info.c +++ b/src/gnome/dialog-tax-info.c @@ -1138,9 +1138,9 @@ identity_edit_clicked_cb (GtkButton *button, (GtkWindow *)ti_dialog->dialog, GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, - _("Cancel"), + _("_Cancel"), GTK_RESPONSE_CANCEL, - _("Apply"), + _("_Apply"), GTK_RESPONSE_APPLY, NULL); diff --git a/src/gnome/gnc-plugin-budget.c b/src/gnome/gnc-plugin-budget.c index 9441e578c59..b5750eb7896 100644 --- a/src/gnome/gnc-plugin-budget.c +++ b/src/gnome/gnc-plugin-budget.c @@ -285,8 +285,8 @@ gnc_budget_gui_select_budget(QofBook *book) dlg = GTK_DIALOG(gtk_dialog_new_with_buttons( _("Select a Budget"), NULL, GTK_DIALOG_MODAL, - _("OK"), GTK_RESPONSE_OK, - _("Cancel"), GTK_RESPONSE_CANCEL, NULL)); + _("_OK"), GTK_RESPONSE_OK, + _("_Cancel"), GTK_RESPONSE_CANCEL, NULL)); tv = GTK_TREE_VIEW(gtk_tree_view_new()); sel = gtk_tree_view_get_selection(tv); diff --git a/src/gnome/gnc-plugin-page-account-tree.c b/src/gnome/gnc-plugin-page-account-tree.c index 6ff83e71725..f7ec46b56b4 100644 --- a/src/gnome/gnc-plugin-page-account-tree.c +++ b/src/gnome/gnc-plugin-page-account-tree.c @@ -1496,8 +1496,8 @@ gnc_plugin_page_account_tree_cmd_delete_account (GtkAction *action, GncPluginPag "%s", message); g_free(message); gtk_dialog_add_buttons(GTK_DIALOG(dialog), - _("Cancel"), GTK_RESPONSE_CANCEL, - _("Delete"), GTK_RESPONSE_ACCEPT, + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_Delete"), GTK_RESPONSE_ACCEPT, (gchar *)NULL); gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_CANCEL); response = gtk_dialog_run(GTK_DIALOG(dialog)); diff --git a/src/gnome/gnc-plugin-page-register.c b/src/gnome/gnc-plugin-page-register.c index 97f7e16a648..e1a573d7d30 100644 --- a/src/gnome/gnc-plugin-page-register.c +++ b/src/gnome/gnc-plugin-page-register.c @@ -1574,7 +1574,7 @@ gnc_plugin_page_register_finish_pending (GncPluginPage *page) gnc_gtk_dialog_add_button(dialog, _("_Discard Transaction"), "edit-delete", GTK_RESPONSE_REJECT); gtk_dialog_add_button(GTK_DIALOG(dialog), - _("Cancel"), GTK_RESPONSE_CANCEL); + _("_Cancel"), GTK_RESPONSE_CANCEL); gnc_gtk_dialog_add_button(dialog, _("_Save Transaction"), "document-save", GTK_RESPONSE_ACCEPT); diff --git a/src/gnome/gnc-plugin-page-register2.c b/src/gnome/gnc-plugin-page-register2.c index 89ad533335d..f01b811b865 100644 --- a/src/gnome/gnc-plugin-page-register2.c +++ b/src/gnome/gnc-plugin-page-register2.c @@ -1631,7 +1631,7 @@ gnc_plugin_page_register2_finish_pending (GncPluginPage *page) //this works gnc_gtk_dialog_add_button (dialog, _("_Discard Transaction"), "edit-delete", GTK_RESPONSE_REJECT); gtk_dialog_add_button (GTK_DIALOG (dialog), - _("Cancel"), GTK_RESPONSE_CANCEL); + _("_Cancel"), GTK_RESPONSE_CANCEL); gnc_gtk_dialog_add_button (dialog, _("_Save Transaction"), "document-save", GTK_RESPONSE_ACCEPT); diff --git a/src/gnome/gnc-split-reg.c b/src/gnome/gnc-split-reg.c index c76d51d5753..83d8822e139 100644 --- a/src/gnome/gnc-split-reg.c +++ b/src/gnome/gnc-split-reg.c @@ -870,7 +870,7 @@ gsr_default_reinit_handler( GNCSplitReg *gsr, gpointer data ) } gtk_dialog_add_button(GTK_DIALOG(dialog), - _("Cancel"), GTK_RESPONSE_CANCEL); + _("_Cancel"), GTK_RESPONSE_CANCEL); gnc_gtk_dialog_add_button(dialog, _("_Remove Splits"), "edit-delete", GTK_RESPONSE_ACCEPT); response = gnc_dialog_run(GTK_DIALOG(dialog), warning); @@ -911,9 +911,9 @@ gsr_default_associate_handler_file (GNCSplitReg *gsr, Transaction *trans, gboole dialog = gtk_file_chooser_dialog_new (_("Associate File with Transaction"), GTK_WINDOW(gsr->window), GTK_FILE_CHOOSER_ACTION_OPEN, - _("Remove"), GTK_RESPONSE_REJECT, - _("Cancel"), GTK_RESPONSE_CANCEL, - _("OK"), GTK_RESPONSE_ACCEPT, + _("_Remove"), GTK_RESPONSE_REJECT, + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_OK"), GTK_RESPONSE_ACCEPT, NULL); gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER(dialog), FALSE); @@ -982,9 +982,9 @@ gsr_default_associate_handler_location (GNCSplitReg *gsr, Transaction *trans, gb dialog = gtk_dialog_new_with_buttons (_("Associate Location with Transaction"), GTK_WINDOW(gsr->window), GTK_DIALOG_MODAL, - _("Remove"), GTK_RESPONSE_REJECT, - _("Cancel"), GTK_RESPONSE_CANCEL, - _("OK"), GTK_RESPONSE_ACCEPT, + _("_Remove"), GTK_RESPONSE_REJECT, + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_OK"), GTK_RESPONSE_ACCEPT, NULL); content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); @@ -1251,7 +1251,7 @@ gsr_default_delete_handler( GNCSplitReg *gsr, gpointer data ) } gtk_dialog_add_button(GTK_DIALOG(dialog), - _("Cancel"), GTK_RESPONSE_CANCEL); + _("_Cancel"), GTK_RESPONSE_CANCEL); gnc_gtk_dialog_add_button(dialog, _("_Delete Split"), "edit-delete", GTK_RESPONSE_ACCEPT); response = gnc_dialog_run(GTK_DIALOG(dialog), warning); @@ -1291,7 +1291,7 @@ gsr_default_delete_handler( GNCSplitReg *gsr, gpointer data ) warning = GNC_PREF_WARN_REG_TRANS_DEL; } gtk_dialog_add_button(GTK_DIALOG(dialog), - _("Cancel"), GTK_RESPONSE_CANCEL); + _("_Cancel"), GTK_RESPONSE_CANCEL); gnc_gtk_dialog_add_button(dialog, _("_Delete Transaction"), "edit-delete", GTK_RESPONSE_ACCEPT); response = gnc_dialog_run(GTK_DIALOG(dialog), warning); diff --git a/src/import-export/csv-exp/assistant-csv-export.c b/src/import-export/csv-exp/assistant-csv-export.c index ba645adb936..cd1265a9d66 100644 --- a/src/import-export/csv-exp/assistant-csv-export.c +++ b/src/import-export/csv-exp/assistant-csv-export.c @@ -921,7 +921,7 @@ csv_export_assistant_create (CsvExportInfo *info) /* File chooser Page */ info->file_page = GTK_WIDGET(gtk_builder_get_object(builder, "file_page")); info->file_chooser = gtk_file_chooser_widget_new (GTK_FILE_CHOOSER_ACTION_SAVE); - button = gtk_button_new_with_label (_("OK")); + button = gtk_button_new_with_mnemonic (_("_OK")); gtk_widget_set_size_request (button, 100, -1); gtk_widget_show (button); h_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); diff --git a/src/import-export/csv-imp/assistant-csv-account-import.c b/src/import-export/csv-imp/assistant-csv-account-import.c index 3e335ca3f9e..ed9e0b0aa12 100644 --- a/src/import-export/csv-imp/assistant-csv-account-import.c +++ b/src/import-export/csv-imp/assistant-csv-account-import.c @@ -325,8 +325,8 @@ gnc_input_dialog (GtkWidget *parent, const gchar *title, const gchar *msg, const /* Create the widgets */ dialog = gtk_dialog_new_with_buttons (title, GTK_WINDOW(parent), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, - _("OK"), GTK_RESPONSE_ACCEPT, - _("Cancel"), GTK_RESPONSE_REJECT, + _("_OK"), GTK_RESPONSE_ACCEPT, + _("_Cancel"), GTK_RESPONSE_REJECT, NULL); content_area = gtk_dialog_get_content_area (GTK_DIALOG(dialog)); @@ -610,7 +610,7 @@ csv_import_assistant_create (CsvImportInfo *info) info->file_chooser = gtk_file_chooser_widget_new (GTK_FILE_CHOOSER_ACTION_OPEN); g_signal_connect (G_OBJECT(info->file_chooser), "file-activated", G_CALLBACK(csv_import_file_chooser_confirm_cb), info); - button = gtk_button_new_with_label (_("OK")); + button = gtk_button_new_with_mnemonic (_("_OK")); gtk_widget_set_size_request (button, 100, -1); gtk_widget_show (button); h_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); diff --git a/src/plugins/bi_import/dialog-bi-import-gui.c b/src/plugins/bi_import/dialog-bi-import-gui.c index 9ecaac4473c..e3ac07579b7 100644 --- a/src/plugins/bi_import/dialog-bi-import-gui.c +++ b/src/plugins/bi_import/dialog-bi-import-gui.c @@ -404,8 +404,8 @@ gnc_input_dialog (GtkWidget *parent, const gchar *title, const gchar *msg, const /* Create the widgets */ dialog = gtk_dialog_new_with_buttons (title, GTK_WINDOW (parent), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, - _("OK"), GTK_RESPONSE_ACCEPT, - _("Cancel"), GTK_RESPONSE_REJECT, + _("_OK"), GTK_RESPONSE_ACCEPT, + _("_Cancel"), GTK_RESPONSE_REJECT, NULL); content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); @@ -462,7 +462,7 @@ gnc_info2_dialog (GtkWidget *parent, const gchar *title, const gchar *msg) /* Create the widgets */ dialog = gtk_dialog_new_with_buttons (title, GTK_WINDOW (parent), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, - _("OK"), GTK_RESPONSE_ACCEPT, + _("_OK"), GTK_RESPONSE_ACCEPT, NULL); content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); diff --git a/src/plugins/customer_import/dialog-customer-import-gui.c b/src/plugins/customer_import/dialog-customer-import-gui.c index b0542cad1c3..b87ed73cf6a 100644 --- a/src/plugins/customer_import/dialog-customer-import-gui.c +++ b/src/plugins/customer_import/dialog-customer-import-gui.c @@ -379,8 +379,8 @@ gnc_input_dialog (GtkWidget *parent, const gchar *title, const gchar *msg, const /* Create the widgets */ dialog = gtk_dialog_new_with_buttons (title, GTK_WINDOW (parent), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, - _("OK"), GTK_RESPONSE_ACCEPT, - _("Cancel"), GTK_RESPONSE_REJECT, + _("_OK"), GTK_RESPONSE_ACCEPT, + _("_Cancel"), GTK_RESPONSE_REJECT, NULL); content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); @@ -436,7 +436,7 @@ gnc_info2_dialog (GtkWidget *parent, const gchar *title, const gchar *msg) /* Create the widgets */ dialog = gtk_dialog_new_with_buttons (title, GTK_WINDOW (parent), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, - _("OK"), GTK_RESPONSE_ACCEPT, + _("_OK"), GTK_RESPONSE_ACCEPT, NULL); content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); diff --git a/src/register/ledger-core/split-register-control.c b/src/register/ledger-core/split-register-control.c index a9efcddfe29..3117dac2dfd 100644 --- a/src/register/ledger-core/split-register-control.c +++ b/src/register/ledger-core/split-register-control.c @@ -1551,7 +1551,7 @@ transaction_changed_confirm(VirtualLocation *p_new_virt_loc, "%s", message); gtk_dialog_add_buttons(GTK_DIALOG(dialog), _("_Discard Changes"), GTK_RESPONSE_REJECT, - _("Cancel"), GTK_RESPONSE_CANCEL, + _("_Cancel"), GTK_RESPONSE_CANCEL, _("_Record Changes"), GTK_RESPONSE_ACCEPT, NULL); response = gnc_dialog_run(GTK_DIALOG(dialog), GNC_PREF_WARN_REG_TRANS_MOD);