Skip to content

Commit

Permalink
Change all key accelerators to use <primary>
Browse files Browse the repository at this point in the history
Change from using <control> to <primary> for part of key accelerator
definitions. This will map the accelerator to Command on OSX and to
Control for anything else
  • Loading branch information
Bob-IT authored and jralls committed Sep 27, 2016
1 parent 1615fe5 commit 921b5a9
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion src/business/business-gnome/gnc-plugin-page-invoice.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static GtkActionEntry gnc_plugin_page_invoice_actions [] =
G_CALLBACK (gnc_plugin_page_invoice_cmd_new_account)
},
{
"FilePrintAction", GTK_STOCK_PRINT, N_("Print Invoice"), "<control>p",
"FilePrintAction", GTK_STOCK_PRINT, N_("Print Invoice"), "<primary>p",
N_("Make a printable invoice"),
G_CALLBACK (gnc_plugin_page_invoice_cmd_print)
},
Expand Down
6 changes: 3 additions & 3 deletions src/business/business-gnome/gnc-plugin-page-owner-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,17 @@ static GtkActionEntry gnc_plugin_page_owner_tree_actions [] =

/* Edit menu */
{
"OTEditVendorAction", GNC_STOCK_EDIT_ACCOUNT, N_("E_dit Vendor"), "<control>e",
"OTEditVendorAction", GNC_STOCK_EDIT_ACCOUNT, N_("E_dit Vendor"), "<primary>e",
N_("Edit the selected vendor"),
G_CALLBACK (gnc_plugin_page_owner_tree_cmd_edit_owner)
},
{
"OTEditCustomerAction", GNC_STOCK_EDIT_ACCOUNT, N_("E_dit Customer"), "<control>e",
"OTEditCustomerAction", GNC_STOCK_EDIT_ACCOUNT, N_("E_dit Customer"), "<primary>e",
N_("Edit the selected customer"),
G_CALLBACK (gnc_plugin_page_owner_tree_cmd_edit_owner)
},
{
"OTEditEmployeeAction", GNC_STOCK_EDIT_ACCOUNT, N_("E_dit Employee"), "<control>e",
"OTEditEmployeeAction", GNC_STOCK_EDIT_ACCOUNT, N_("E_dit Employee"), "<primary>e",
N_("Edit the selected employee"),
G_CALLBACK (gnc_plugin_page_owner_tree_cmd_edit_owner)
},
Expand Down
6 changes: 3 additions & 3 deletions src/gnome-utils/gnc-main-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,14 @@ static GtkActionEntry gnc_menu_actions [] =
{ "FileImportAction", NULL, N_("_Import"), NULL, NULL, NULL },
{ "FileExportAction", NULL, N_("_Export"), NULL, NULL, NULL },
{
"FilePrintAction", GTK_STOCK_PRINT, N_("_Print..."), "<control>p",
"FilePrintAction", GTK_STOCK_PRINT, N_("_Print..."), "<primary>p",
N_("Print the currently active page"), NULL
},
#ifndef GTK_STOCK_PAGE_SETUP
# define GTK_STOCK_PAGE_SETUP NULL
#endif
{
"FilePageSetupAction", GTK_STOCK_PAGE_SETUP, N_("Pa_ge Setup..."), "<control><shift>p",
"FilePageSetupAction", GTK_STOCK_PAGE_SETUP, N_("Pa_ge Setup..."), "<primary><shift>p",
N_("Specify the page size and orientation for printing"),
G_CALLBACK (gnc_main_window_cmd_page_setup)
},
Expand Down Expand Up @@ -333,7 +333,7 @@ static GtkActionEntry gnc_menu_actions [] =
N_("Select the account types that should be displayed."), NULL
},
{
"ViewRefreshAction", GTK_STOCK_REFRESH, N_("_Refresh"), "<control>r",
"ViewRefreshAction", GTK_STOCK_REFRESH, N_("_Refresh"), "<primary>r",
N_("Refresh this window"),
G_CALLBACK (gnc_main_window_cmd_view_refresh)
},
Expand Down
10 changes: 5 additions & 5 deletions src/gnome/gnc-plugin-basic-commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,22 +108,22 @@ static GtkActionEntry gnc_plugin_actions [] =
/* File menu */

{
"FileNewAction", GTK_STOCK_NEW, N_("New _File"), "<control>n",
"FileNewAction", GTK_STOCK_NEW, N_("New _File"), "<primary>n",
N_("Create a new file"),
G_CALLBACK (gnc_main_window_cmd_file_new)
},
{
"FileOpenAction", GTK_STOCK_OPEN, N_("_Open..."), "<control>o",
"FileOpenAction", GTK_STOCK_OPEN, N_("_Open..."), "<primary>o",
N_("Open an existing GnuCash file"),
G_CALLBACK (gnc_main_window_cmd_file_open)
},
{
"FileSaveAction", GTK_STOCK_SAVE, N_("_Save"), "<control>s",
"FileSaveAction", GTK_STOCK_SAVE, N_("_Save"), "<primary>s",
N_("Save the current file"),
G_CALLBACK (gnc_main_window_cmd_file_save)
},
{
"FileSaveAsAction", GTK_STOCK_SAVE_AS, N_("Save _As..."), "<shift><control>s",
"FileSaveAsAction", GTK_STOCK_SAVE_AS, N_("Save _As..."), "<shift><primary>s",
N_("Save this file with a different name"),
G_CALLBACK (gnc_main_window_cmd_file_save_as)
},
Expand All @@ -142,7 +142,7 @@ static GtkActionEntry gnc_plugin_actions [] =
/* Edit menu */

{
"EditFindTransactionsAction", GTK_STOCK_FIND, N_("_Find..."), "<control>f",
"EditFindTransactionsAction", GTK_STOCK_FIND, N_("_Find..."), "<primary>f",
N_("Find transactions with a search"),
G_CALLBACK (gnc_main_window_cmd_tools_find_transactions)
},
Expand Down
8 changes: 4 additions & 4 deletions src/gnome/gnc-plugin-page-account-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ static GtkActionEntry gnc_plugin_page_account_tree_actions [] =

/* Edit menu */
{
"EditEditAccountAction", GNC_STOCK_EDIT_ACCOUNT, N_("Edit _Account"), "<control>e",
"EditEditAccountAction", GNC_STOCK_EDIT_ACCOUNT, N_("Edit _Account"), "<primary>e",
N_("Edit the selected account"),
G_CALLBACK (gnc_plugin_page_account_tree_cmd_edit_account)
},
Expand All @@ -224,12 +224,12 @@ static GtkActionEntry gnc_plugin_page_account_tree_actions [] =
G_CALLBACK (gnc_plugin_page_account_tree_cmd_delete_account)
},
{
"EditFindAccountAction", GTK_STOCK_FIND, N_("F_ind Account"), "<control>i",
"EditFindAccountAction", GTK_STOCK_FIND, N_("F_ind Account"), "<primary>i",
N_("Find an account"),
G_CALLBACK (gnc_plugin_page_account_tree_cmd_find_account)
},
{
"EditFindAccountPopupAction", GTK_STOCK_FIND, N_("F_ind Account"), "<control>i",
"EditFindAccountPopupAction", GTK_STOCK_FIND, N_("F_ind Account"), "<primary>i",
N_("Find an account"),
G_CALLBACK (gnc_plugin_page_account_tree_cmd_find_account_popup)
},
Expand Down Expand Up @@ -257,7 +257,7 @@ static GtkActionEntry gnc_plugin_page_account_tree_actions [] =
G_CALLBACK (gnc_plugin_page_account_tree_cmd_autoclear)
},
{
"ActionsTransferAction", NULL, N_("_Transfer..."), "<control>t",
"ActionsTransferAction", NULL, N_("_Transfer..."), "<primary>t",
N_("Transfer funds from one account to another"),
G_CALLBACK (gnc_plugin_page_account_tree_cmd_transfer)
},
Expand Down
12 changes: 6 additions & 6 deletions src/gnome/gnc-plugin-page-register.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ static GtkActionEntry gnc_plugin_page_register_actions [] =
/* File menu */

{
"FilePrintAction", GTK_STOCK_PRINT, N_("_Print Checks..."), "<control>p", NULL,
"FilePrintAction", GTK_STOCK_PRINT, N_("_Print Checks..."), "<primary>p", NULL,
G_CALLBACK (gnc_plugin_page_register_cmd_print_check)
},

Expand All @@ -247,17 +247,17 @@ static GtkActionEntry gnc_plugin_page_register_actions [] =
G_CALLBACK (gnc_plugin_page_register_cmd_paste)
},
{
"EditEditAccountAction", GNC_STOCK_EDIT_ACCOUNT, N_("Edit _Account"), "<control>e",
"EditEditAccountAction", GNC_STOCK_EDIT_ACCOUNT, N_("Edit _Account"), "<primary>e",
N_("Edit the selected account"),
G_CALLBACK (gnc_plugin_page_register_cmd_edit_account)
},
{
"EditFindAccountAction", GTK_STOCK_FIND, N_("F_ind Account"), "<control>i",
"EditFindAccountAction", GTK_STOCK_FIND, N_("F_ind Account"), "<primary>i",
N_("Find an account"),
G_CALLBACK (gnc_plugin_page_register_cmd_find_account)
},
{
"EditFindTransactionsAction", GTK_STOCK_FIND, N_("_Find..."), "<control>f",
"EditFindTransactionsAction", GTK_STOCK_FIND, N_("_Find..."), "<primary>f",
N_("Find transactions with a search"),
G_CALLBACK (gnc_plugin_page_register_cmd_find_transactions)
},
Expand Down Expand Up @@ -346,7 +346,7 @@ static GtkActionEntry gnc_plugin_page_register_actions [] =
/* Actions menu */

{
"ActionsTransferAction", GNC_STOCK_TRANSFER, N_("_Transfer..."), "<control>t",
"ActionsTransferAction", GNC_STOCK_TRANSFER, N_("_Transfer..."), "<primary>t",
N_("Transfer funds from one account to another"),
G_CALLBACK (gnc_plugin_page_register_cmd_transfer)
},
Expand All @@ -371,7 +371,7 @@ static GtkActionEntry gnc_plugin_page_register_actions [] =
G_CALLBACK (gnc_plugin_page_register_cmd_lots)
},
{
"BlankTransactionAction", GTK_STOCK_GOTO_BOTTOM, N_("_Blank Transaction"), "<control>Page_Down",
"BlankTransactionAction", GTK_STOCK_GOTO_BOTTOM, N_("_Blank Transaction"), "<primary>Page_Down",
N_("Move to the blank transaction at the bottom of the register"),
G_CALLBACK (gnc_plugin_page_register_cmd_blank_transaction)
},
Expand Down
14 changes: 7 additions & 7 deletions src/gnome/gnc-plugin-page-register2.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ static GtkActionEntry gnc_plugin_page_register2_actions [] =
/* File menu */

{
"FilePrintAction", GTK_STOCK_PRINT, N_("_Print Checks..."), "<control>p", NULL,
"FilePrintAction", GTK_STOCK_PRINT, N_("_Print Checks..."), "<primary>p", NULL,
G_CALLBACK (gnc_plugin_page_register2_cmd_print_check)
},

Expand All @@ -240,17 +240,17 @@ static GtkActionEntry gnc_plugin_page_register2_actions [] =
G_CALLBACK (gnc_plugin_page_register2_cmd_paste)
},
{
"EditEditAccountAction", GNC_STOCK_EDIT_ACCOUNT, N_("Edit _Account"), "<control>e",
"EditEditAccountAction", GNC_STOCK_EDIT_ACCOUNT, N_("Edit _Account"), "<primary>e",
N_("Edit the selected account"),
G_CALLBACK (gnc_plugin_page_register2_cmd_edit_account)
},
{
"EditFindAccountAction", GTK_STOCK_FIND, N_("F_ind Account"), "<control>i",
"EditFindAccountAction", GTK_STOCK_FIND, N_("F_ind Account"), "<primary>i",
N_("Find an account"),
G_CALLBACK (gnc_plugin_page_register2_cmd_find_account)
},
{
"EditFindTransactionsAction", GTK_STOCK_FIND, N_("_Find..."), "<control>f",
"EditFindTransactionsAction", GTK_STOCK_FIND, N_("_Find..."), "<primary>f",
N_("Find transactions with a search"),
G_CALLBACK (gnc_plugin_page_register2_cmd_find_transactions)
},
Expand Down Expand Up @@ -327,15 +327,15 @@ static GtkActionEntry gnc_plugin_page_register2_actions [] =
G_CALLBACK (gnc_plugin_page_register2_cmd_view_filter_by)
},
{
"ViewRefreshAction", GTK_STOCK_REFRESH, N_("_Refresh"), "<control>r",
"ViewRefreshAction", GTK_STOCK_REFRESH, N_("_Refresh"), "<primary>r",
N_("Refresh this window"),
G_CALLBACK (gnc_plugin_page_register2_cmd_reload)
},

/* Actions menu */

{
"ActionsTransferAction", GNC_STOCK_TRANSFER, N_("_Transfer..."), "<control>t",
"ActionsTransferAction", GNC_STOCK_TRANSFER, N_("_Transfer..."), "<primary>t",
N_("Transfer funds from one account to another"),
G_CALLBACK (gnc_plugin_page_register2_cmd_transfer)
},
Expand All @@ -360,7 +360,7 @@ static GtkActionEntry gnc_plugin_page_register2_actions [] =
G_CALLBACK (gnc_plugin_page_register2_cmd_lots)
},
{
"BlankTransactionAction", GTK_STOCK_GOTO_BOTTOM, N_("_Blank Transaction"), "<control>Page_Down",
"BlankTransactionAction", GTK_STOCK_GOTO_BOTTOM, N_("_Blank Transaction"), "<primary>Page_Down",
N_("Move to the blank transaction at the bottom of the register"),
G_CALLBACK (gnc_plugin_page_register2_cmd_blank_transaction)
},
Expand Down
14 changes: 7 additions & 7 deletions src/gnome/window-reconcile.c
Original file line number Diff line number Diff line change
Expand Up @@ -2193,12 +2193,12 @@ static GtkActionEntry recnWindow_actions [] =
G_CALLBACK (gnc_ui_reconcile_window_change_cb)
},
{
"RecnFinishAction", GTK_STOCK_YES, N_("_Finish"), "<control>w",
"RecnFinishAction", GTK_STOCK_YES, N_("_Finish"), "<primary>w",
N_("Finish the reconciliation of this account"),
G_CALLBACK(recnFinishCB)
},
{
"RecnPostponeAction", GTK_STOCK_GO_BACK, N_("_Postpone"), "<control>p",
"RecnPostponeAction", GTK_STOCK_GO_BACK, N_("_Postpone"), "<primary>p",
N_("Postpone the reconciliation of this account"),
G_CALLBACK(recnPostponeCB)
},
Expand Down Expand Up @@ -2235,27 +2235,27 @@ static GtkActionEntry recnWindow_actions [] =
/* Transaction menu */

{
"TransBalanceAction", GTK_STOCK_NEW, N_("_Balance"), "<control>b",
"TransBalanceAction", GTK_STOCK_NEW, N_("_Balance"), "<primary>b",
N_("Add a new balancing entry to the account"),
G_CALLBACK(gnc_ui_reconcile_window_balance_cb)
},
{
"TransEditAction", GTK_STOCK_PROPERTIES, N_("_Edit"), "<control>e",
"TransEditAction", GTK_STOCK_PROPERTIES, N_("_Edit"), "<primary>e",
N_("Edit the current transaction"),
G_CALLBACK(gnc_ui_reconcile_window_edit_cb)
},
{
"TransDeleteAction", GTK_STOCK_DELETE, N_("_Delete"), "<control>d",
"TransDeleteAction", GTK_STOCK_DELETE, N_("_Delete"), "<primary>d",
N_("Delete the selected transaction"),
G_CALLBACK(gnc_ui_reconcile_window_delete_cb)
},
{
"TransRecAction", GTK_STOCK_APPLY, N_("_Reconcile Selection"), "<control>r",
"TransRecAction", GTK_STOCK_APPLY, N_("_Reconcile Selection"), "<primary>r",
N_("Reconcile the selected transactions"),
G_CALLBACK(gnc_ui_reconcile_window_rec_cb)
},
{
"TransUnRecAction", GTK_STOCK_CLEAR, N_("_Unreconcile Selection"), "<control>u",
"TransUnRecAction", GTK_STOCK_CLEAR, N_("_Unreconcile Selection"), "<primary>u",
N_("Unreconcile the selected transactions"),
G_CALLBACK(gnc_ui_reconcile_window_unrec_cb)
},
Expand Down
14 changes: 7 additions & 7 deletions src/gnome/window-reconcile2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2153,12 +2153,12 @@ static GtkActionEntry recnWindow2_actions [] =
G_CALLBACK (gnc_ui_reconcile_window_change_cb)
},
{
"RecnFinishAction", GTK_STOCK_YES, N_("_Finish"), "<control>w",
"RecnFinishAction", GTK_STOCK_YES, N_("_Finish"), "<primary>w",
N_("Finish the reconciliation of this account"),
G_CALLBACK(recnFinishCB)
},
{
"RecnPostponeAction", GTK_STOCK_GO_BACK, N_("_Postpone"), "<control>p",
"RecnPostponeAction", GTK_STOCK_GO_BACK, N_("_Postpone"), "<primary>p",
N_("Postpone the reconciliation of this account"),
G_CALLBACK(recnPostponeCB)
},
Expand Down Expand Up @@ -2195,27 +2195,27 @@ static GtkActionEntry recnWindow2_actions [] =
/* Transaction menu */

{
"TransBalanceAction", GTK_STOCK_NEW, N_("_Balance"), "<control>b",
"TransBalanceAction", GTK_STOCK_NEW, N_("_Balance"), "<primary>b",
N_("Add a new balancing entry to the account"),
G_CALLBACK(gnc_ui_reconcile_window_balance_cb)
},
{
"TransEditAction", GTK_STOCK_PROPERTIES, N_("_Edit"), "<control>e",
"TransEditAction", GTK_STOCK_PROPERTIES, N_("_Edit"), "<primary>e",
N_("Edit the current transaction"),
G_CALLBACK(gnc_ui_reconcile_window_edit_cb)
},
{
"TransDeleteAction", GTK_STOCK_DELETE, N_("_Delete"), "<control>d",
"TransDeleteAction", GTK_STOCK_DELETE, N_("_Delete"), "<primary>d",
N_("Delete the selected transaction"),
G_CALLBACK(gnc_ui_reconcile_window_delete_cb)
},
{
"TransRecAction", GTK_STOCK_APPLY, N_("_Reconcile Selection"), "<control>r",
"TransRecAction", GTK_STOCK_APPLY, N_("_Reconcile Selection"), "<primary>r",
N_("Reconcile the selected transactions"),
G_CALLBACK(gnc_ui_reconcile_window_rec_cb)
},
{
"TransUnRecAction", GTK_STOCK_CLEAR, N_("_Unreconcile Selection"), "<control>u",
"TransUnRecAction", GTK_STOCK_CLEAR, N_("_Unreconcile Selection"), "<primary>u",
N_("Unreconcile the selected transactions"),
G_CALLBACK(gnc_ui_reconcile_window_unrec_cb)
},
Expand Down
8 changes: 4 additions & 4 deletions src/report/report-gnome/gnc-plugin-page-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ gnc_plugin_page_report_destroy(GncPluginPageReportPrivate * priv)
static GtkActionEntry report_actions[] =
{
{
"FilePrintAction", GTK_STOCK_PRINT, N_("_Print Report..."), "<control>p",
"FilePrintAction", GTK_STOCK_PRINT, N_("_Print Report..."), "<primary>p",
N_("Print the current report"),
G_CALLBACK(gnc_plugin_page_report_print_cb)
},
Expand All @@ -1031,18 +1031,18 @@ static GtkActionEntry report_actions[] =
NULL
},
{
"ViewRefreshAction", GTK_STOCK_REFRESH, N_("_Refresh"), "<control>r",
"ViewRefreshAction", GTK_STOCK_REFRESH, N_("_Refresh"), "<primary>r",
N_("Refresh this window"),
G_CALLBACK (gnc_plugin_page_report_reload_cb)
},
{
"ReportSaveAction", GTK_STOCK_SAVE, N_("Save _Report Configuration"), "<control><alt>s",
"ReportSaveAction", GTK_STOCK_SAVE, N_("Save _Report Configuration"), "<primary><alt>s",
N_("Update the current report's saved configuration. "
"The report will be saved in the file ~/.gnucash/saved-reports-2.4. "),
G_CALLBACK(gnc_plugin_page_report_save_cb)
},
{
"ReportSaveAsAction", GTK_STOCK_SAVE_AS, N_("Save Report Configuration As..."), "<control><alt><shift>s",
"ReportSaveAsAction", GTK_STOCK_SAVE_AS, N_("Save Report Configuration As..."), "<primary><alt><shift>s",
N_("Add the current report's configuration to the `Saved Report Configurations' menu. "
"The report will be saved in the file ~/.gnucash/saved-reports-2.4. "),
G_CALLBACK(gnc_plugin_page_report_save_as_cb)
Expand Down

0 comments on commit 921b5a9

Please sign in to comment.