Commit Graph

23398 Commits

Author SHA1 Message Date
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
Christopher Lam
25e4efc2b7 [core-utils.scm][API] gnc:string-locale<? gnc:string-locale>?
locale-sensitive string-sorting functions -- currently mirrors guile's
(ice-9 i18n) functions -- may be modified to call C code if guile code
is not reliable.
2020-11-01 08:30:56 +08:00
Christopher Lam
e9d1e694f2 Addendum to 0446dca54, fix currency bug 2020-11-01 08:30:20 +08:00
Christopher Lam
d87c469e17 Bug 797993 - Reverse balance option does not apply to an Account Report 2020-11-01 07:23:27 +08:00
Christopher Lam
9e70d7f45a [register.scm] some cleanups 2020-11-01 07:23:27 +08:00
McLayn
cebe6022c8 fix CZK partname to nominative singular 2020-10-30 00:40:02 +01:00
Robert Fewell
5df7949a87 Fix GtkLabel error for autoclear status_label
Move setting up the callback that clears the status_label till after
setting up the status_label.
2020-10-29 12:03:16 +00:00
Christian Stimming
f3ba84921b Add tooltip in import matcher window for description and memo column. 2020-10-27 23:03:46 +01:00
Christian Stimming
6e3c98c2fb L10N🇩🇪 Minor improvements in German translation
Made strings in the import matcher more compact, which leaves more
space on the screen for the interesting content.
2020-10-27 23:02:35 +01:00
Frank H. Ellenberger
10032c17b5 L10N🇩🇪 Berichtige "Ausgleichskonto" zu "Anfangsbestand"
Fehler wegen Mißdeutung des Kontexts von 'balance'
2020-10-27 22:17:18 +01:00
John Ralls
1915dfb0cb Put Macs back on WebKit2. 2020-10-27 13:10:59 -07:00
Christopher Lam
a6c8a806f3 Bug 797982 - exchange rates' decimal places (bis)
Bug introduced in e7165507c. We need to normalize date for
pricedb-nearest to avoid getting next day price.
2020-10-27 11:06:45 +08:00
Frank H. Ellenberger
fedaa13396 CMake: Mute guile-2.2 again 2020-10-27 01:56:45 +01:00
John Ralls
946cbef95f HTML fonts: Parse additional values of font-weight from the pango font name. 2020-10-26 14:05:31 -07:00
John Ralls
4ddd28a5d9 Extract font-stretch when converting pango font names to CSS.
Also wrap font-family value in quotes and lower-case the fallback
generic sans-serif font-family for CSS conformance (though browsers
don't seem to care).
2020-10-26 12:04:23 -07:00