Commit Graph

21440 Commits

Author SHA1 Message Date
Geert Janssens
f5278621b0 Rename module and related cmake rules from tax-us to locale-tax 2019-08-22 15:35:26 +02:00
Geert Janssens
a20c60990a Use one single module to load locale specific tax rather than a module per locale
This simplifies the calls in the rest of gnucash
Note that the locale specific reports themselves don't even load this module any more.
They don't need it, instead they can directly load the locale specific tax scheme modules.
2019-08-22 14:49:07 +02:00
Robert Fewell
f9dc198031 Destroy the registered preference hash table
With all the registered preference callbacks being removed, the hash
table can now be destroyed and log a message to that effect.
2019-08-18 13:18:10 +01:00
Robert Fewell
28b71bab58 Change the shutdown hook for the plugin manager
When quitting with multiple windows, as the first window closes the
plugin manager is shutdown and so the plugins for subsequent windows
can not remove the preference callbacks that were setup so move the
manager shutdown hook to HOOK_SHUTDOWN as opposed to HOOK_UI_SHUTDOWN.
2019-08-18 13:18:10 +01:00
Robert Fewell
f043a820f3 Remove plugin preferences
Make sure when a GncMainWindow closes that the preference callbacks
that were setup for the plugins are removed. At this point the actions
are not touched as it causes errors to be logged to the terminal.
2019-08-18 13:18:10 +01:00
Robert Fewell
93dd58c214 Restrict removing preference callbacks setup via g_once
Only remove the register callbacks setup with 'g_once' to when quitting.
2019-08-18 13:18:10 +01:00
Robert Fewell
6157251573 Remove registered pref callbacks for the register
A couple of preference callbacks are setup to track the
'negative_color_preference' and 'auto_raise_lists' which are setup with
a call to 'g_once'. To be able to remove these, the the preference id
is saved so that they can be used in gnc_main_window_remove_prefs to
remove the callback.
2019-08-18 13:18:10 +01:00
Robert Fewell
8a44814378 Remove the registered preference callbacks in
gnc-main-window.c

Add a function to remove all the registered preference callbacks that
were setup in gnc-main-window.c and call it from three places. One is
gnc_mian_window_quit which is used when the application quits and
gnc_main_window_close_page, gnc_main_window_destroy which is used when
separate windows are used for pages like the register and they are
closed.
2019-08-18 13:18:10 +01:00
Robert Fewell
e9bab3bf98 Add the removal of preference call backs to
gnc_gui_destroy

Add the removal of preferences setup in gnc-gnome-utils and also call
the other two functions to remove further preference call backs.
2019-08-18 13:18:10 +01:00
Robert Fewell
1344ea67e7 Create a function to remove the registered preference
call backs setup in gnc-prefs-utils.c
2019-08-18 13:18:10 +01:00
Robert Fewell
02f7a807de Create a function to remove the registered preference
call backs setup in gnc-ui-util.c
2019-08-18 13:18:10 +01:00
Robert Fewell
fc20aeb2df Wrong group specified for quickfill remove pref. 2019-08-18 13:18:10 +01:00
Geert Janssens
0e93e95c6c Merge maint 2019-08-17 12:53:55 +02:00
John Ralls
e4de6a3198 Merge Christian Clauss's Travis-CI yaml fix into maint. 2019-08-15 15:38:18 -07:00
John Ralls
8eb3819a3c Merge Christian Gruber's 'rework_gtest_src' into maint. 2019-08-15 15:18:07 -07:00
John Ralls
24d4576617 Include libicu-i18n in libgncmod-engine linkage for new ICU API usage. 2019-08-15 15:17:16 -07:00
Christian Gruber
1b4e481296 Add gtest_main.cc to libgtest.a
Currently when compiling GoogleTest from source code, source file
gtest_main.cc from GoogleTest repository is not compiled into any
library as in GoogleTest repository, where it is compiled into
libgtest_main.a. Instead gtest_main.cc is added to source file list
GTEST_SRC, which is then added to the list of source files of every
single GoogleTest based test application.

To simplify this gtest_main.cc is added to the source file list of
target gtest now. Additionally GTEST_SRC is merged into
lib_gtest_SOURCES, since both variables defined source files for
GoogleTest libraries.

Now target gtest generates library libgtest.a, which already contains
the main function from source file gtest_main.cc. This is different to
GoogleTest build system, where both are separated into two independent
libraries libgtest.a and libgtest_main.a.
2019-08-15 23:20:45 +02:00
Christopher Lam
f64dd0860f Bug 752395 - Start Day of weekly report doesn't respond to change in locale
Redefines some functions to ensure weekly grouping in transaction
report obeys locale's start-of-week.
2019-08-15 13:18:46 +08:00
Geert Janssens
ec6602adf9 [gnc-date][API] find locale's start of week using ICU.
gnc_start_of_week

* ICU has a mature C++ api, so prefer that one in our C++ code
* Use PERR instead of fprintf for consistent reporting
* Add the ICU specific linker flags to the test case
2019-08-15 13:18:43 +08:00
Christopher Lam
bdbb06b722 [price-quotes] remove no F::Q message 2019-08-15 13:18:16 +08:00
Frank H. Ellenberger
1126554152 Improve header of glossary
Append " (glossary)" to SOME DESCRIPTIVE TEXT to distinguish it from the
real po file, if a translator has both open.
2019-08-15 00:19:46 +02:00
Frank H. Ellenberger
f2c3442296 Add "account code" description to glossary 2019-08-15 00:15:47 +02:00
Frank H. Ellenberger
d1a0cd2a65 Remove a trailing space in german glossary 2019-08-15 00:02:07 +02:00
Frank H. Ellenberger
749f02afa1 Merge a fresh gnucash pot into de.po
5141 übersetzte Meldungen, 109 ungenaue Übersetzungen, 11 unübersetzte
Meldungen.
2019-08-15 00:01:29 +02:00
Frank H. Ellenberger
bac27b48ef Merge branch 'PR551' into maint 2019-08-14 22:47:40 +02:00
Frank H. Ellenberger
942e74d07a Update he.po from fresh gnucash.pot
For better checks of PR #551
2019-08-14 22:44:25 +02:00
avma
0c53f763c6 he.po for version 3.6 96% completed
PR #551
2019-08-14 22:05:15 +02:00
Robert Fewell
188f8768b5 Bug 797339 - Online banking frame to small
Set the scroll window to expand so it uses all the available space.
2019-08-14 11:38:26 +01:00
Frank H. Ellenberger
24094222d1 Improve invoice import column headers
Use underline only for mnemonics.
Capitalize column headers.

Try to reduce number of translatable strings - still incomplete.

Follow up of commit aadb3d1.
2019-08-14 11:33:37 +02:00
John Ralls
adae341def Use cmake_symbol_check to test for AB_Banking_RuntimeConfig_SetCharValue
instead of relying on AQBanking versions.
2019-08-13 09:52:31 -07:00
avma
d0f4d9bce9
glossary he.po for ver 3.6 2019-08-13 19:36:46 +03:00
Christopher Lam
2a6a4e34d6 [price-quotes] compact commodity-tz-quote-triple->price 2019-08-13 18:50:59 +08:00
Christopher Lam
e15f2610ba [price-quotes] compact gnc:book-add-quotes 2019-08-13 18:50:57 +08:00
Christopher Lam
4a4f81b320 [price-quotes] compact book->commodity->fq-call-data
make function more readable.
2019-08-13 18:50:55 +08:00
Christopher Lam
5e8663772a [price-quotes] compact gnc:fq-get-quotes 2019-08-13 18:50:53 +08:00
Christopher Lam
d5122c97ea [price-quotes] compact gnc:fq-check-sources
improve locality of vars.
2019-08-13 18:50:51 +08:00
Christopher Lam
fab1c8db3e [price-quotes] show if F::Q not installed, remove dead code 2019-08-13 18:50:48 +08:00
Christopher Lam
112cf99d2d [test-report-html] add coverage and function test
* function gnc:html-table-add-labeled-amount-line! has full coverage
test.

* function gnc:make-html-acct-table/env/accts has good coverage
confirming nothing crashes.
2019-08-13 18:50:13 +08:00
Christopher Lam
a42f1211d8 [html-acct-table] modernise to srfi-9 records 2019-08-13 18:50:13 +08:00
Christopher Lam
81b20d0a62 [html-acct-table] timepair -> time64
* fix timepair -> time64 - this is technically dead code.
2019-08-12 23:33:44 +08:00
Christopher Lam
0c3f460e9f [invoice] deprecate easy/fancy-invoice creation hooks 2019-08-11 23:32:51 +08:00
Frank H. Ellenberger
55e196ab5b Dutch RGS template: Replace a ":" in an account name
The colon is the account delimiter.
2019-08-11 10:55:24 +02:00
Geert Janssens
7d2d392829 Fix intermittent build dependency issue
eguile-html-utilities now depends on eguile-gnc so make sure
the latter is built before the former

Note the master branch has gone a different route:
eguile-html-utilities and eguile-utilities are no longer modules
there but included into eguile-gnc via load-from-path
Hence the dependecy tree is actually the other way around there.
To keep in mind when merging maint into master next time.
2019-08-10 21:49:24 +02:00
avma
7211bfb53c
Hebrew translation 95% completed... 2019-08-10 15:25:40 +03:00
Christopher Lam
c7e60c1d53 [qif/test-qif-parse] increase coverage 2019-08-08 08:08:55 +08:00
Christian Stimming
100ef2a01d Online banking: Usage of gnucash registration key is available in more aqbanking versions.
To be precise, it is in aqbanking-5.7.8-git-1 and to-be-released
aqbanking-5.7.9 as well as aqbanking-5.99.24-git-1 and
to-be-released aqbanking-5.99.25. As it is needed mid-September 2019
for all bank users in Germany, we better make it available for both branches.
2019-08-07 22:37:31 +02:00
John Ralls
bbcfc9da42 [test-commodity-utils] Don't try to free the pricedb twice.
It's freed by gnc-clear-current-session, so freeing it explicitly
causes a double-free.
2019-08-05 10:04:52 -07:00
Christopher Lam
6252de21fd [qif/qif-parse] restore handle non-4-digit dates, and erratum
db93aec58 contained logic error in date-handling, would invalidate
2-digit years.

Also parse-bang-field needs to trim trailing space.
2019-08-05 18:16:49 +08:00
Christopher Lam
d1fddf557c Modifications to consider module changes in master 2019-08-04 20:52:57 +08:00
Christopher Lam
5bd854c550 Merge branch 'maint' 2019-08-04 13:44:12 +08:00