[Gnucash-changes] Use HIG 2.0 specified access keys wherever
possible.
David Hampton
hampton at cvs.gnucash.org
Thu Jun 30 19:52:51 EDT 2005
Log Message:
-----------
Use HIG 2.0 specified access keys wherever possible. Try and ensure
that all menu items have access keys defined.
Tags:
----
gnucash-gnome2-dev
Modified Files:
--------------
gnucash:
ChangeLog
gnucash/src/business/business-gnome:
gnc-plugin-business.c
gnucash/src/gnome:
gnc-plugin-account-tree.c
gnc-plugin-page-account-tree.c
gnucash/src/gnome/ui:
gnc-plugin-account-tree-ui.xml
gnc-plugin-page-account-tree-ui.xml
gnucash/src/import-export/hbci:
gnc-plugin-hbci.c
gnucash/src/import-export/log-replay:
gnc-plugin-log-replay.c
gnucash/src/import-export/ofx:
gnc-plugin-ofx.c
gnucash/src/import-export/qif-import:
gnc-plugin-qif-import.c
gnucash/src/report/report-gnome:
gnc-plugin-page-report.c
gnucash/src/report/stylesheets:
gnc-plugin-stylesheets.c
Revision Data
-------------
Index: ChangeLog
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/ChangeLog,v
retrieving revision 1.1487.2.234
retrieving revision 1.1487.2.235
diff -LChangeLog -LChangeLog -u -r1.1487.2.234 -r1.1487.2.235
--- ChangeLog
+++ ChangeLog
@@ -1,3 +1,41 @@
+2005-06-30 David Hampton <hampton at employees.org>
+
+ * src/gnome-utils/gnc-plugin-page.[ch]: Add a utility function to
+ retrieve the page title.
+
+ * src/gnome-utils/gnc-date-edit.[ch]: Reconnect the
+ focus_out_event signal. Add a function so this widget can be
+ generated from a glade file.
+
+ * src/gnome/gnc-split-reg.[ch]: Enable translation of the
+ SortType enumeration to/from a string.
+
+ * src/gnome/gnc-plugin-file-history.c:
+ * src/gnome/ui/gnc-plugin-file-history-ui.xml: Promote file
+ history information to the 'File' menu per Gnome HIG 2.0.
+
+ * src/gnome/gnc-plugin-page-register.c:
+ * src/gnome/ui/gnc-plugin-page-register-ui.xml:
+ * src/gnome/glade/register.glade: Promote the register style
+ options to the 'Edit' menu per Gnome HIG 2.0. Rework the various
+ sort, status and date menu items into the HIG "Sort By" and
+ "Filter By" menus.
+
+ * src/gnome/gnc-plugin-basic-commands.c:
+ * src/gnome/ui/gnc-plugin-basic-commands-ui.xml:
+ * src/gnome-utils/gnc-main-window.c:
+ * src/gnome-utils/ui/gnc-main-window-ui.xml: Move a few commands
+ around to try and better align with HIG 2.0.
+
+ * src/gnome-utils/gnc-main-window.h:
+ * src/gnome/gw-gnc-spec.scm:
+ * src/scm/main.scm: Remove unneeded functions now that the main
+ window title is updated internally.
+
+ * various: Use HIG 2.0 specified access keys wherever
+ possible. Try and ensure that all menu items have access keys
+ defined.
+
2005-06-19 Neil Williams <linux at codehelp.co.uk>
* qofid.c:
* qofid.h: qof_collection_count
Index: gnc-plugin-account-tree.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome/Attic/gnc-plugin-account-tree.c,v
retrieving revision 1.1.2.12
retrieving revision 1.1.2.13
diff -Lsrc/gnome/gnc-plugin-account-tree.c -Lsrc/gnome/gnc-plugin-account-tree.c -u -r1.1.2.12 -r1.1.2.13
--- src/gnome/gnc-plugin-account-tree.c
+++ src/gnome/gnc-plugin-account-tree.c
@@ -46,7 +46,7 @@
#define PLUGIN_UI_FILENAME "gnc-plugin-account-tree-ui.xml"
static GtkActionEntry gnc_plugin_actions [] = {
- { "FileNewAccountTreeAction", NULL, N_("New Account Tree"), NULL,
+ { "FileNewAccountTreeAction", NULL, N_("New Accounts _Page"), NULL,
N_("Open a new Account Tree page"),
G_CALLBACK (gnc_plugin_account_tree_cmd_new_account_tree) },
};
Index: gnc-plugin-page-account-tree.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome/Attic/gnc-plugin-page-account-tree.c,v
retrieving revision 1.1.2.43
retrieving revision 1.1.2.44
diff -Lsrc/gnome/gnc-plugin-page-account-tree.c -Lsrc/gnome/gnc-plugin-page-account-tree.c -u -r1.1.2.43 -r1.1.2.44
--- src/gnome/gnc-plugin-page-account-tree.c
+++ src/gnome/gnc-plugin-page-account-tree.c
@@ -122,13 +122,13 @@
{ "FakeToplevel", NULL, "", NULL, NULL, NULL },
/* File menu */
- { "FileNewAccountAction", GNC_STOCK_NEW_ACCOUNT, N_("New Account..."), NULL,
+ { "FileNewAccountAction", GNC_STOCK_NEW_ACCOUNT, N_("New _Account..."), NULL,
N_("Create a new Account"),
G_CALLBACK (gnc_plugin_page_account_tree_cmd_new_account) },
- { "FileAddAccountHierarchyDruidAction", NULL, N_("Add New Account _Hierarchy..."), NULL,
+ { "FileAddAccountHierarchyDruidAction", GNC_STOCK_NEW_ACCOUNT, N_("New Account _Hierarchy..."), NULL,
N_("Extend the current book by merging with new account type categories"),
G_CALLBACK (gnc_plugin_page_account_tree_cmd_file_hierarchy_merge) },
- { "FileOpenAccountAction", GNC_STOCK_OPEN_ACCOUNT, N_("Open Account"), "<control>o",
+ { "FileOpenAccountAction", GNC_STOCK_OPEN_ACCOUNT, N_("Open _Account"), NULL,
N_("Open the selected account"),
G_CALLBACK (gnc_plugin_page_account_tree_cmd_open_account) },
{ "FileOpenSubaccountsAction", GNC_STOCK_OPEN_ACCOUNT, N_("Open _Subaccounts"), NULL,
@@ -142,7 +142,7 @@
{ "EditDeleteAccountAction", GNC_STOCK_DELETE_ACCOUNT, N_("_Delete Account"), NULL,
N_("Delete selected account"),
G_CALLBACK (gnc_plugin_page_account_tree_cmd_delete_account) },
- { "EditAccountViewOptionsAction", GTK_STOCK_PROPERTIES, N_("Account Tree Options"), NULL,
+ { "EditAccountViewOptionsAction", GTK_STOCK_PROPERTIES, N_("Account Tree _Options"), NULL,
N_("Edit the account view options"),
G_CALLBACK (gnc_plugin_page_account_tree_cmd_view_options) },
@@ -153,13 +153,13 @@
{ "ActionsTransferAction", NULL, N_("_Transfer..."), "<control>t",
N_("Transfer funds from one account to another"),
G_CALLBACK (gnc_plugin_page_account_tree_cmd_transfer) },
- { "ActionsStockSplitAction", NULL, N_("Stock S_plit..."), NULL,
+ { "ActionsStockSplitAction", NULL, N_("Stoc_k Split..."), NULL,
N_("Record a stock split or a stock merger"),
G_CALLBACK (gnc_plugin_page_account_tree_cmd_stock_split) },
{ "ActionsLotsAction", NULL, N_("View _Lots..."), NULL,
N_("Bring up the lot viewer/editor window"),
G_CALLBACK (gnc_plugin_page_account_tree_cmd_lots) },
- { "ScrubMenuAction", NULL, N_("Check & Repair"), NULL, NULL, NULL },
+ { "ScrubMenuAction", NULL, N_("_Check & Repair"), NULL, NULL, NULL },
{ "ScrubAction", NULL, N_("Check & Repair A_ccount"), NULL,
N_("Check for and repair unbalanced transactions and orphan splits " "in this account"),
G_CALLBACK (gnc_plugin_page_account_tree_cmd_scrub) },
Index: gnc-plugin-page-account-tree-ui.xml
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome/ui/Attic/gnc-plugin-page-account-tree-ui.xml,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -Lsrc/gnome/ui/gnc-plugin-page-account-tree-ui.xml -Lsrc/gnome/ui/gnc-plugin-page-account-tree-ui.xml -u -r1.1.2.6 -r1.1.2.7
--- src/gnome/ui/gnc-plugin-page-account-tree-ui.xml
+++ src/gnome/ui/gnc-plugin-page-account-tree-ui.xml
@@ -1,14 +1,18 @@
<ui>
<menubar>
<menu name="File" action="FileAction">
- <placeholder name="FileNewPlaceholder">
- <menuitem name="FileAddAccountHierarchyDruid" action="FileAddAccountHierarchyDruidAction"/>
- <menuitem name="FileNewAccount" action="FileNewAccountAction"/>
- </placeholder>
- <placeholder name="FileOpenPlaceholder">
- <menuitem name="FileOpenAccount" action="FileOpenAccountAction"/>
- <menuitem name="FileOpenSubaccounts" action="FileOpenSubaccountsAction"/>
- </placeholder>
+ <menu name="FileNewMenu" action="FileNewMenuAction">
+ <placeholder name="FileNewBottonPlaceholder">
+ <menuitem name="FileNewAccount" action="FileNewAccountAction"/>
+ <menuitem name="FileAddAccountHierarchyDruid" action="FileAddAccountHierarchyDruidAction"/>
+ </placeholder>
+ </menu>
+ <menu name="FileOpenMenu" action="FileOpenMenuAction">
+ <placeholder name="FileOpenBottomPlaceholder">
+ <menuitem name="FileOpenAccount" action="FileOpenAccountAction"/>
+ <menuitem name="FileOpenSubaccounts" action="FileOpenSubaccountsAction"/>
+ </placeholder>
+ </menu>
</menu>
<menu name="Edit" action="EditAction">
<placeholder name="EditPlaceholder">
Index: gnc-plugin-account-tree-ui.xml
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome/ui/Attic/gnc-plugin-account-tree-ui.xml,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -Lsrc/gnome/ui/gnc-plugin-account-tree-ui.xml -Lsrc/gnome/ui/gnc-plugin-account-tree-ui.xml -u -r1.1.2.2 -r1.1.2.3
--- src/gnome/ui/gnc-plugin-account-tree-ui.xml
+++ src/gnome/ui/gnc-plugin-account-tree-ui.xml
@@ -1,9 +1,11 @@
<ui>
<menubar>
<menu name="File" action="FileAction">
- <placeholder name="FileNewPlaceholder">
- <menuitem name="FileNewAccountTree" action="FileNewAccountTreeAction"/>
- </placeholder>
+ <menu name="FileNewMenu" action="FileNewMenuAction">
+ <placeholder name="FileNewMiddlePlaceholder">
+ <menuitem name="FileNewAccountTree" action="FileNewAccountTreeAction"/>
+ </placeholder>
+ </menu>
</menu>
</menubar>
</ui>
Index: gnc-plugin-hbci.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/import-export/hbci/Attic/gnc-plugin-hbci.c,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -Lsrc/import-export/hbci/gnc-plugin-hbci.c -Lsrc/import-export/hbci/gnc-plugin-hbci.c -u -r1.1.2.5 -r1.1.2.6
--- src/import-export/hbci/gnc-plugin-hbci.c
+++ src/import-export/hbci/gnc-plugin-hbci.c
@@ -75,7 +75,7 @@
{ "OnlineActionsAction", NULL, N_("_Online Actions"), NULL, NULL, NULL },
/* Menu Items */
- { "HbciSetupAction", NULL, N_("HBCI Setup..."), NULL,
+ { "HbciSetupAction", NULL, N_("_HBCI Setup..."), NULL,
N_("Gather initial HBCI information"),
G_CALLBACK (gnc_plugin_hbci_cmd_setup) },
{ "HbciGetBalanceAction", NULL, N_("HBCI Get _Balance"), NULL,
Index: gnc-plugin-log-replay.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/import-export/log-replay/Attic/gnc-plugin-log-replay.c,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -Lsrc/import-export/log-replay/gnc-plugin-log-replay.c -Lsrc/import-export/log-replay/gnc-plugin-log-replay.c -u -r1.1.2.3 -r1.1.2.4
--- src/import-export/log-replay/gnc-plugin-log-replay.c
+++ src/import-export/log-replay/gnc-plugin-log-replay.c
@@ -40,7 +40,7 @@
#define PLUGIN_UI_FILENAME "gnc-plugin-log-replay-ui.xml"
static GtkActionEntry gnc_plugin_actions [] = {
- { "LogReplayAction", GTK_STOCK_CONVERT, N_("_Replay GnuCash .log file"), NULL,
+ { "LogReplayAction", GTK_STOCK_CONVERT, N_("_Replay GnuCash .log file..."), NULL,
N_("Replay a gnucash log file after a crash. This cannot be undone."),
G_CALLBACK (gnc_plugin_log_replay_cmd_new_log_replay) },
};
Index: gnc-plugin-ofx.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/import-export/ofx/Attic/gnc-plugin-ofx.c,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -Lsrc/import-export/ofx/gnc-plugin-ofx.c -Lsrc/import-export/ofx/gnc-plugin-ofx.c -u -r1.1.2.3 -r1.1.2.4
--- src/import-export/ofx/gnc-plugin-ofx.c
+++ src/import-export/ofx/gnc-plugin-ofx.c
@@ -40,7 +40,7 @@
#define PLUGIN_UI_FILENAME "gnc-plugin-ofx-ui.xml"
static GtkActionEntry gnc_plugin_actions [] = {
- { "OfxImportAction", GTK_STOCK_CONVERT, N_("Import OFX/QFX"), NULL,
+ { "OfxImportAction", GTK_STOCK_CONVERT, N_("Import _OFX/QFX..."), NULL,
N_("Process an OFX/QFX response file"),
G_CALLBACK (gnc_plugin_ofx_cmd_import) },
};
Index: gnc-plugin-qif-import.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/import-export/qif-import/Attic/gnc-plugin-qif-import.c,v
retrieving revision 1.1.2.11
retrieving revision 1.1.2.12
diff -Lsrc/import-export/qif-import/gnc-plugin-qif-import.c -Lsrc/import-export/qif-import/gnc-plugin-qif-import.c -u -r1.1.2.11 -r1.1.2.12
--- src/import-export/qif-import/gnc-plugin-qif-import.c
+++ src/import-export/qif-import/gnc-plugin-qif-import.c
@@ -44,10 +44,10 @@
#define PLUGIN_UI_FILENAME "gnc-plugin-qif-import-ui.xml"
static GtkActionEntry gnc_plugin_actions [] = {
- { "QIFImportAction", GTK_STOCK_CONVERT, N_("Import _QIF..."), "<control>i",
+ { "QIFImportAction", GTK_STOCK_CONVERT, N_("Import _QIF..."), NULL,
N_("Import a Quicken QIF file"),
G_CALLBACK (gnc_plugin_qif_import_cmd_new_qif_import) },
- { "QIFTestDruid", GTK_STOCK_CONVERT, "Test Druid", NULL,
+ { "QIFTestDruid", GTK_STOCK_CONVERT, "_Test Druid...", NULL,
"Test the new Druid", G_CALLBACK(gnc_plugin_qif_test_druid) },
};
static guint gnc_plugin_n_actions = G_N_ELEMENTS (gnc_plugin_actions);
Index: gnc-plugin-page-report.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/report/report-gnome/Attic/gnc-plugin-page-report.c,v
retrieving revision 1.1.2.9
retrieving revision 1.1.2.10
diff -Lsrc/report/report-gnome/gnc-plugin-page-report.c -Lsrc/report/report-gnome/gnc-plugin-page-report.c -u -r1.1.2.9 -r1.1.2.10
--- src/report/report-gnome/gnc-plugin-page-report.c
+++ src/report/report-gnome/gnc-plugin-page-report.c
@@ -51,7 +51,7 @@
#define WINDOW_REPORT_CM_CLASS "window-report"
-static short module = MOD_TEST; // MOD_GUI; // MOD_REPORT;?
+static short module = MOD_GUI; // MOD_GUI; // MOD_REPORT;?
static GObjectClass *parent_class = NULL;
static GList *active_pages = NULL;
Index: gnc-plugin-business.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-gnome/Attic/gnc-plugin-business.c,v
retrieving revision 1.1.2.11
retrieving revision 1.1.2.12
diff -Lsrc/business/business-gnome/gnc-plugin-business.c -Lsrc/business/business-gnome/gnc-plugin-business.c -u -r1.1.2.11 -r1.1.2.12
--- src/business/business-gnome/gnc-plugin-business.c
+++ src/business/business-gnome/gnc-plugin-business.c
@@ -164,10 +164,10 @@
/* Vendor submenu */
{ "VendorMenuAction", NULL, N_("_Vendor"), NULL, NULL, NULL },
- { "VendorNewVendorOpenAction", NULL, N_("New Vendor"), NULL,
+ { "VendorNewVendorOpenAction", NULL, N_("_New Vendor"), NULL,
N_("Open the New Vendor dialog"),
G_CALLBACK (gnc_plugin_business_cmd_vendor_new_vendor) },
- { "VendorFindVendorOpenAction", NULL, N_("Find Vendor"), NULL,
+ { "VendorFindVendorOpenAction", NULL, N_("_Find Vendor"), NULL,
N_("Open the Find Vendor dialog"),
G_CALLBACK (gnc_plugin_business_cmd_vendor_find_vendor) },
{ "VendorNewBillOpenAction", NULL, N_("New Bill"), NULL,
@@ -182,16 +182,16 @@
{ "VendorFindJobOpenAction", NULL, N_("Find Job"), NULL,
N_("Open the Find Job dialog"),
G_CALLBACK (gnc_plugin_business_cmd_vendor_find_job) },
- { "VendorProcessPaymentAction", NULL, N_("Process Payment"), NULL,
+ { "VendorProcessPaymentAction", NULL, N_("_Process Payment"), NULL,
N_("Open the Process Payment dialog"),
G_CALLBACK (gnc_plugin_business_cmd_vendor_process_payment) },
/* Employee submenu */
{ "EmployeeMenuAction", NULL, N_("_Employee"), NULL, NULL, NULL },
- { "EmployeeNewEmployeeOpenAction", NULL, N_("New Employee"), NULL,
+ { "EmployeeNewEmployeeOpenAction", NULL, N_("_New Employee"), NULL,
N_("Open the New Employee dialog"),
G_CALLBACK (gnc_plugin_business_cmd_employee_new_employee) },
- { "EmployeeFindEmployeeOpenAction", NULL, N_("Find Employee"), NULL,
+ { "EmployeeFindEmployeeOpenAction", NULL, N_("_Find Employee"), NULL,
N_("Open the Find Employee dialog"),
G_CALLBACK (gnc_plugin_business_cmd_employee_find_employee) },
{ "EmployeeNewExpenseVoucherOpenAction", NULL, N_("New Expense Voucher"), NULL,
@@ -200,18 +200,18 @@
{ "EmployeeFindExpenseVoucherOpenAction", NULL, N_("Find Expense Voucher"), NULL,
N_("Open the Find Expense Voucher dialog"),
G_CALLBACK (gnc_plugin_business_cmd_employee_find_expense_voucher) },
- { "EmployeeProcessPaymentAction", NULL, N_("Process Payment"), NULL,
+ { "EmployeeProcessPaymentAction", NULL, N_("_Process Payment"), NULL,
N_("Open the Process Payment dialog"),
G_CALLBACK (gnc_plugin_business_cmd_employee_process_payment) },
/* Other menu items */
- { "TaxTablesOpenAction", NULL, N_("Tax Tables"), NULL,
+ { "TaxTablesOpenAction", NULL, N_("_Tax Tables"), NULL,
N_("Open the Tax Tables dialog"),
G_CALLBACK (gnc_plugin_business_cmd_tax_tables) },
- { "BillingTermsOpenAction", NULL, N_("Billing Terms"), NULL,
+ { "BillingTermsOpenAction", NULL, N_("_Billing Terms"), NULL,
N_("Open the Billing Terms dialog"),
G_CALLBACK (gnc_plugin_business_cmd_billing_terms) },
- { "BillsDueReminderOpenAction", NULL, N_("Bills Due Reminder"), NULL,
+ { "BillsDueReminderOpenAction", NULL, N_("Bills _Due Reminder"), NULL,
N_("Open the Bills Due Reminder dialog"),
G_CALLBACK (gnc_plugin_business_cmd_bills_due_reminder) },
{ "ExportMenuAction", NULL, N_("E_xport"), NULL, NULL, NULL },
Index: gnc-plugin-stylesheets.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/report/stylesheets/Attic/gnc-plugin-stylesheets.c,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -Lsrc/report/stylesheets/gnc-plugin-stylesheets.c -Lsrc/report/stylesheets/gnc-plugin-stylesheets.c -u -r1.1.2.4 -r1.1.2.5
--- src/report/stylesheets/gnc-plugin-stylesheets.c
+++ src/report/stylesheets/gnc-plugin-stylesheets.c
@@ -59,7 +59,7 @@
static GtkActionEntry gnc_plugin_actions [] = {
/* Menu Items */
- { "EditStyleSheetsAction", NULL, N_("_Style Sheets..."), NULL,
+ { "EditStyleSheetsAction", NULL, N_("St_yle Sheets"), NULL,
N_("Edit report style sheets."),
G_CALLBACK (gnc_plugin_stylesheets_cmd_edit_style_sheet) },
};
More information about the gnucash-changes
mailing list