Skip to content

Commit

Permalink
Fix mistake in changing button labels from stock
Browse files Browse the repository at this point in the history
Did not add the alt key option
  • Loading branch information
Bob-IT authored and gjanssens committed Jul 9, 2017
1 parent e5ca36c commit 9964563
Show file tree
Hide file tree
Showing 25 changed files with 60 additions and 60 deletions.
4 changes: 2 additions & 2 deletions src/business/business-gnome/gnc-plugin-page-owner-tree.c
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion src/business/business-ledger/gncEntryLedger.c
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/business/business-ledger/gncEntryLedgerControl.c
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/gnome-search/dialog-search.c
Expand Up @@ -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);

Expand Down Expand Up @@ -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"));
Expand Down
4 changes: 2 additions & 2 deletions src/gnome-search/search-account.c
Expand Up @@ -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 */
Expand Down
4 changes: 2 additions & 2 deletions src/gnome-utils/dialog-account.c
Expand Up @@ -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);
Expand Down
16 changes: 8 additions & 8 deletions src/gnome-utils/gnc-file.c
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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);
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/gnome-utils/gnc-gui-query.c
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions src/gnome-utils/gnc-main-window.c
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions src/gnome-utils/gnc-recurrence.c
Expand Up @@ -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);

Expand Down
6 changes: 3 additions & 3 deletions src/gnome-utils/gnc-tree-control-split-reg.c
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/gnome-utils/gnc-tree-view-split-reg.c
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/gnome/dialog-commodities.c
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/gnome/dialog-price-edit-db.c
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/gnome/dialog-tax-info.c
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions src/gnome/gnc-plugin-budget.c
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/gnome/gnc-plugin-page-account-tree.c
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion src/gnome/gnc-plugin-page-register.c
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/gnome/gnc-plugin-page-register2.c
Expand Up @@ -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);

Expand Down
18 changes: 9 additions & 9 deletions src/gnome/gnc-split-reg.c
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/import-export/csv-exp/assistant-csv-export.c
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions src/import-export/csv-imp/assistant-csv-account-import.c
Expand Up @@ -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));
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9964563

Please sign in to comment.