Commit Graph

23554 Commits

Author SHA1 Message Date
Robert Fewell
a519b913a6 Windows Build failure in dialog-dup-trans.c
Windows build failed on creating gchar *format with g_strdup_printf
parameter '%ld' expects argument of type 'long int', but argument 3 has
type 'size_t' {aka 'unsigned int'}
Fixed by replacing strlen with g_utf8_strlen.
2020-11-10 19:05:37 +00:00
Frank H. Ellenberger
49b3bdeb09 I18N: Ammend intro of autoclear window
Split text in titles and section
and use CSS instead of markup.
2020-11-10 12:24:09 +01:00
Cristian Klein
4718604f3b Document complexity in UI 2020-11-10 12:24:09 +01:00
Frank H. Ellenberger
1aba062109 Add a few more CSS classes for labels 2020-11-10 12:24:09 +01:00
John Ralls
08a0da8c4e Fix typo in .gitattributes, text not test. 2020-11-09 14:26:15 -08:00
John Ralls
194a021da4 Use LTDL_LIBRARY_PATH instead of (DY)LD_LIBRARY_PATH
With GnuCash's main libraries now linked at startup instead of being
dlopened at runtime except by Guile we can restrict the library path
renaming to Gnu Libtool's environment variable.
2020-11-09 13:50:51 -08:00
Christopher Lam
6a6396edca Revert "[auto-clear] provide live feedback when a valid end_amount is input"
This reverts commit afcf1765f6.

Not satisfactory. Introduces unacceptable delay after each
keystroke. Will try again when knapsack algorithm is improved to
generate toclear_list as GHashTable value.
2020-11-09 19:54:54 +08:00
John Ralls
e09a26ba3a Merge Christian Gruber's 'test_import_backend' into maint. 2020-11-08 14:27:26 -08:00
John Ralls
26fa239f89 Merge Christian Klein's 'auto-clear-tests' into maint. 2020-11-08 13:44:41 -08:00
Robert Fewell
bbc6887b0f Change source files dialog-dup-trans.* for space and tabs 2020-11-08 13:06:39 +00:00
Robert Fewell
4c2df4c2ad Bug 645379 - Problem with Number field when duplicating a transaction
When you duplicate a transaction, the dialog presented has a
GtkSpinbutton for the number field and non-numeric values are being
discarded. The register and transfer dialog have a GtkEntry for this
field so change this dialog to using them also.
2020-11-08 13:06:39 +00:00
Cristian Klein
69789b2b93 [auto-tests] Stick to CodingStandard for member variables 2020-11-08 09:58:57 +01:00
Cristian Klein
f26215feae [auto-tests] Fix misspelling 2020-11-08 09:58:17 +01:00
John Ralls
2290fa7c22 Fix exception when converting to decimal values that reduce to N/1.
Before this the loop wouldn't terminate until the denominator had been
reduced to 0 and trying to create a GncRational with a 0 denominator
throws.
2020-11-07 16:22:18 -08:00
John Ralls
d03dc07b8d Remove redundant and incorrectly named constant. 2020-11-07 13:20:22 -08:00
John Ralls
3bcf57e7f2 Fix timezone transition times.
This is responsible for test failures on DST transition days.

See the comments in gnc-timezone.cpp for an explanation of why this is
correct. The rubric was tested on macOS, Arch Linux, Debian Unstable,
Fedora 33, and Ubuntu 18.04 to confirm universal applicability.
2020-11-07 11:02:54 -08:00
Robert Fewell
b6c0a62bbd Add confirmation of Main Window close when more than one
If you have more than one Gnucash window open is is very easy to close
the wrong window with the 'x' and in doing so change your saved pages.
The way to save the configuration of all windows and pages is to use
'File->Quit'.
2020-11-06 13:52:38 +00:00
Robert Fewell
39ad1e9ebb Add two key combinations to the main notebook
Add ability to do key combination Ctrl+Alt+Menu to bring up the main
notebook menu so pages can be selected.
Also add Ctrl+Alt+a to jump to the Accounts page with the 'a' being
translatable.
2020-11-06 13:52:38 +00:00
Robert Fewell
c0e1341139 Intercept the Ctrl+Alt+PgUp/Down for a report page
With the focus on the webkit webview, this key sequence can be used to
scroll the view. For the key sequence to work for tab page switching a
callback is connected to the 'key-press-event' for the webkit view and
checked for the sequence and passed to the notebook if required.
2020-11-06 13:52:38 +00:00
Robert Fewell
5c48244e8d Fix report page focus
Currently the setting of keyboard focus is to the scroll window but
should be to the Webkit webview so correct this.
2020-11-06 13:52:38 +00:00
Robert Fewell
b51a70675f Bug 797944 - Crash when opening new file from existing one
If you have report pages that are left open when the current book is
'Saved' and then use the 'File->Open' to open a new book Gnucash may
crash. This was traced to the use of a g_idle_add to delay loading the
reports in the pages that was not being cleared when the first book was
closed.

To fix this the g_idle_add has been removed and the loading of the
report has been moved to the page focus function. By using a flag to
indicate when pages are being restored, the report loading is delayed
until the page is focused which has also decreased book loading time
especially if no report pages were the current page when the book was
closed.
2020-11-06 13:52:38 +00:00
Robert Fewell
bf9b267266 Change down arrow to align more with existing widgets
Instead of using the icon name 'go-down' use 'pan-down-symbolic'
2020-11-06 13:22:39 +00:00
Robert Fewell
4b5202f55d Bug 688917 - Edit style sheet help button not working
Setup the connection between the help button and the edit style sheet
section in the help.
2020-11-06 13:14:31 +00:00
Robert Fewell
17ced7eb28 Fix some incorrect links to the help file 2020-11-06 13:10:19 +00:00
Robert Fewell
65b7b8c4a2 Section help on windows not working
Key and group names are case sensitive and in the gnucash-help.hhmap
file the section name is [MAP] so change gnc-help-utils.c to match
2020-11-06 13:05:42 +00:00
Christopher Lam
afcf1765f6 [auto-clear] provide live feedback when a valid end_amount is input 2020-11-05 22:49:09 +08:00
Cristian Klein
7e4f120f97 Add auto-clear to register page 2020-11-04 11:22:08 +08:00
Christopher Lam
d1d464738f [autoclear] show cleared splits is optional 2020-11-04 11:22:08 +08:00
Christopher Lam
54f614feed [html-text] compact gnc:html-markup-img 2020-11-03 22:30:12 +08:00
Robert Fewell
d867a9d50d Set the visibility of the account column in import-main-matcher
After the import-main-matcher is shown, set the visibility of the
account column based on the number of accounts being displayed.
2020-11-03 14:07:52 +00:00
Robert Fewell
0382859e0a Change source files import-main-matcher.* for space and tabs 2020-11-03 14:06:49 +00:00
Robert Fewell
48fe2ea60b Add option to hide memo column on import-main-matcher
This has stemmed from cstim's PR #810 which I have added here after
refactoring the gnc_gen_trans_list_new function in previous commit.
2020-11-03 14:05:38 +00:00
Robert Fewell
bf483696de Factor out the common code for import-main-matcher
There are two functions used for starting the import-main-matcher, one
using dialogs and one for it being embedded in an assistant. These two
functions gnc_gen_trans_list_new and gnc_gen_trans_assist_new share
some common code so factor out that part to ease maintenance.
2020-11-03 14:04:38 +00:00
Robert Fewell
aa71e46901 Fix for OFX import
Pressing help button causes main-import-matcher to disappear
2020-11-03 14:03:32 +00:00
Robert Fewell
761797eb3d Fix GdkDisplay error in trace file
When OFX import is first used and the file chosen, an account select
dialog will be shown but the parent was being obtained from a hidden
import-main-matcher dialog. This fails so get the parent from the
transient parent of the import-main-matcher dialog.
2020-11-03 14:02:13 +00:00
Robert Fewell
504ca731e2 Import matcher tooltip for columns update
If there is no text to be displayed, do not show tooltip.
2020-11-03 14:01:27 +00:00
Robert Fewell
c40ac765b9 Change source file dialog-preferences.c for space and tabs 2020-11-03 14:00:50 +00:00
Robert Fewell
39827ce7bb Change Preference dialog account separator validation
If the account separator is changed and is invalid the warning dialog
may be shown many times. To fix this the validation is done on closing
the preference dialog when a validation dialog will present two options,
The first is to reset the separator to the original value and close the
preference dialog and the second is to return to the 'Accounts' page of
the preference dialog.

The warning symbol is still displayed when the separator is changed
giving an indication of a problem.

This has stemmed from PR #766 and all this commit does is the minimum
recommended there.
2020-11-03 13:59:14 +00:00
Frank H. Ellenberger
7b06b9323f Merge branch 'PR_806' into maint 2020-11-02 23:57:15 +01:00
Frank H. Ellenberger
5ea17cb09e L10N🇩🇪 Anpassungen an "Wechselkurse" an aktuellen Code
* PR #806
* missing space
2020-11-02 23:28:56 +01:00
Frank H. Ellenberger
362315886a L10N🇩🇪 merge pot 2020-11-02 23:19:55 +01:00
Christopher Lam
0862143b99 Use gnc:ngettext to pluralise strings 2020-11-02 22:24:05 +08:00
Christopher Lam
6d6eff6b70 Expose ngettext as gnc:ngettext 2020-11-02 22:24:05 +08:00
Christopher Lam
e7a3ec5631 Merge branch 'maint-797989' into maint #807
* Introduce gnc:string-locale<? and gnc:string-locale>?
* Deprecates a few engine.scm functions
* Fix sorting to be locale-sensitive where possible
2020-11-02 09:08:53 +08:00
John Ralls
5ced417467 Bug 797994 - Account type-ahead search doesn't match accented...
characters.

Because of normalizing the account name but not the search pattern.
2020-11-01 16:37:17 -08:00
Christopher Lam
ccc653186c [dialog-tax-table.c] free GList after use 2020-11-01 21:03:19 +08:00
Christopher Lam
7e6cb470f1 Bug 797989 - Sorting columns by alphabet with non-ASCII characters
use gnc:string-locale for string sorting
2020-11-01 08:30:56 +08:00
Christopher Lam
8628ffa957 3/3 [engine.scm] deprecate scheme utility functions 2020-11-01 08:30:56 +08:00
Christopher Lam
6637d6d210 2/3 [taxtxf] inline single-use scheme function from engine.scm 2020-11-01 08:30:56 +08:00
Christopher Lam
a10c084022 1/3 [report-utilities][API] copy funcs engine.scm to report-utilities.scm
The following copied from similarly named functions in libgnucash

gnc:account-full-name<?
gnc:accounts-get-children-depth
2020-11-01 08:30:56 +08:00