Commit Graph

26066 Commits

Author SHA1 Message Date
Christopher Lam
b94440b16a Bug 798588 - sx scrubbing was using incorrect free function
the GHashTable values are gnc_numeric*.
2022-08-06 16:25:42 -07:00
Christopher Lam
ea56d67797 [gnc-sx-instance-model.c] indent attributes properly 2022-08-06 16:25:42 -07:00
Christopher Lam
a98e4abbd4 [test-charts] add cash-flow to clear warning about missing report 2022-08-06 16:25:42 -07:00
Christopher Lam
0ef6967a36 Merge branch 'maint' 2022-08-03 20:38:41 +08:00
Christopher Lam
0b5a4cd298 Merge branch 'maint' 2022-08-03 20:38:08 +08:00
Pedro Albuquerque
2377f7be54
Translation update by Pedro Albuquerque <pmra@gmx.com> using Weblate
po/pt.po: 100.0% (5400 of 5400 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Portuguese)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt/

Co-authored-by: Pedro Albuquerque <pmra@gmx.com>
2022-08-02 18:47:13 +02:00
Laurent Bigonville
05bbe9fdee
Translation update by Laurent Bigonville <bigon@bigon.be> using Weblate
po/fr.po: 99.9% (5398 of 5400 strings; 2 fuzzy)
3 failing checks (0.1%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/

Co-authored-by: Laurent Bigonville <bigon@bigon.be>
2022-08-02 18:47:13 +02:00
Simon Arlott
90e49cbb50
Translation update by Simon Arlott <weblate.simon@arlott.org> using Weblate
po/en_NZ.po: 100.0% (5400 of 5400 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (English (New Zealand))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/en_NZ/

Translation update  by Simon Arlott <weblate.simon@arlott.org> using Weblate

po/en_AU.po: 100.0% (5400 of 5400 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (English (Australia))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/en_AU/

Translation update  by Simon Arlott <weblate.simon@arlott.org> using Weblate

po/en_GB.po: 100.0% (5400 of 5400 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (English (United Kingdom))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/en_GB/

Co-authored-by: Simon Arlott <weblate.simon@arlott.org>
2022-08-02 18:47:12 +02:00
Christian Wehling
6b60ef4f83
Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
po/de.po: 99.9% (5399 of 5400 strings; 1 fuzzy)
181 failing checks (3.3%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Translation update  by Christian Wehling <christian.wehling@web.de> using Weblate

po/glossary/de.po: 99.5% (215 of 216 strings; 1 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/de/

Translation update  by Christian Wehling <christian.wehling@web.de> using Weblate

po/de.po: 99.9% (5399 of 5400 strings; 1 fuzzy)
180 failing checks (3.3%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Translation update  by Christian Wehling <christian.wehling@web.de> using Weblate

po/glossary/de.po: 99.5% (215 of 216 strings; 1 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/de/

Translation update  by Christian Wehling <christian.wehling@web.de> using Weblate

po/de.po: 99.9% (5399 of 5400 strings; 1 fuzzy)
180 failing checks (3.3%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Translation update  by Christian Wehling <christian.wehling@web.de> using Weblate

po/de.po: 99.9% (5399 of 5400 strings; 1 fuzzy)
181 failing checks (3.3%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Translation update  by Christian Wehling <christian.wehling@web.de> using Weblate

po/de.po: 99.9% (5399 of 5400 strings; 1 fuzzy)
182 failing checks (3.3%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Christian Wehling <christian.wehling@web.de>
2022-08-02 18:47:11 +02:00
Christopher Lam
b70fe1381d Account tree: set menu sensitivities in only 1 function 2022-08-02 21:10:54 +08:00
Christopher Lam
1b845a86f3 use gtk_entry_get_text instead of gtk_editable_get_chars
the former returns a const char* which does not need to be freed.
2022-08-02 19:08:22 +08:00
Christopher Lam
d1aefc851d [sx-book] free sx_list before g_object_unreffing sxes 2022-08-01 23:43:08 +08:00
Christopher Lam
2443d8faf7 [import-main-matcher] tidy: free GList before going out of scope
...instead of in a separate function. This matches c++ RAII behaviour.
2022-07-31 10:25:58 +08:00
Christopher Lam
a43997cc52 [import-main-matcher] pull common add_string into 1 function 2022-07-31 10:06:54 +08:00
Christopher Lam
dc77df352e [import-main-matcher] add comments, tidier code 2022-07-31 10:06:47 +08:00
John Ralls
688832b5f8 Bug 798585 - segfault running sample script
The root cause of which is that on recent releases of GLib (recent
meaning 2.66 in the current Debian stable!) g_type_instance_get_private
looks in the wrong place for the private data. When running the script
in question it returned NULL and since the code didn't check for a valid
pointer, it crashed.

So this change replaces all calls to g_type_instance_get_private with
the function [type_prefix]_get_instance_private() added in glib-2.36
except for two register2 files that have been removed from master; those
are ignored to avoid unnecessary merge conflicts.
2022-07-30 16:50:51 -07:00
Christopher Lam
815eeb496f [gnc-plugin-page-register] g_slist_free param_list
If (reg->type == SEARCH_LEDGER) then the GSList* created by
qof_query_build_param_list would not be freed. This reordering avoids
allocating GSList altogether when not needed.
2022-07-30 23:23:30 +08:00
Christopher Lam
6c70f2c22d [gnucash-sheet] unref cursor 2022-07-30 23:23:30 +08:00
Christopher Lam
723dee66cb [gnc-ledger-display] QofQuery destroyed
This QofQuery was copied by gnc_ledger_display_internal, therefore its
is no longer in use when out of scope.
2022-07-30 23:23:25 +08:00
Christopher Lam
7bc7737476 [gnc-dense-cal] further GList* and char* leaks
- mark->name and mark->info both leaked
- fixing poorly written for loop to g_list_free tags properly
2022-07-30 20:16:51 +08:00
Christopher Lam
accdf9e852 [gnc-dense-cal] leaks in markdata and GTimer
- mark->name wasn't correctly freed
- don't unnecessarily allocate GTimer
2022-07-30 13:43:06 +08:00
Christopher Lam
45aac53952 [gnc-split-reg] free tooltip text properly 2022-07-30 13:43:06 +08:00
Christopher Lam
67a1b7a873 [gnc-sx-instance-model] free GHashTable keys when destroying 2022-07-30 13:43:06 +08:00
Christian Wehling
78f7465694
Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
po/de.po: 99.9% (5399 of 5400 strings; 1 fuzzy)
182 failing checks (3.3%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Christian Wehling <christian.wehling@web.de>
2022-07-29 17:51:02 +02:00
Avi Markovitz
4906df8ed8
Translation update by Avi Markovitz <avi.markovitz@gmail.com> using Weblate
po/he.po: 100.0% (5400 of 5400 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Co-authored-by: Avi Markovitz <avi.markovitz@gmail.com>
2022-07-29 17:51:02 +02:00
Frank H. Ellenberger
583cd2c9fb
Translation update by Frank H. Ellenberger <frank.h.ellenberger@gmail.com> using Weblate
po/de.po: 99.8% (5390 of 5400 strings; 9 fuzzy)
184 failing checks (3.4%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Frank H. Ellenberger <frank.h.ellenberger@gmail.com>
2022-07-29 17:51:01 +02:00
Robert Fewell
09e5c46dfd Remove some default 'dummy' store entries as not required. 2022-07-29 11:28:55 +01:00
Robert Fewell
dea1a89e81 Bug 798573 - Tab Width Behaviour
Currently when the notebook tabs on the left or right, the space used
fluctuates depending on tab label width. This change sets the label
width to the preference setting when the tabs are on the left or right
but when top or bottom the width is set to the number of characters
when shorter than the preference setting so they take up less room.
2022-07-29 10:55:44 +01:00
Robert Fewell
6cad1d16af Change source files gnc-ab-utils.* for spaces and tabs 2022-07-29 10:49:32 +01:00
Robert Fewell
edf000f4cf Fix uninstantiatable type error on the console
sys:1: Warning: invalid uninstantiatable type '(null)' in cast to
'GtkWindow'
2022-07-29 09:38:32 +01:00
Christopher Lam
ebf3439558 [gnc-sx-instance-model] free some GHashTable keys & Values 2022-07-29 12:56:02 +08:00
Christopher Lam
7c2a249511 [gnc-sx-instance-model.c] refactor Scrub function
This scrubbing function calls xaccTransRollbackEdit which is
leaky. Instead of trying to fix xaccTransRollbackEdit which requires
superhuman skills, it's easiest to track the changes separately in a
GList, and use xaccTransBeginEdit/xaccTransCommitEdit only if
necessary.
2022-07-29 12:47:10 +08:00
Christopher Lam
7880f9b16f [SchedXaction.c] free list of recurrences 2022-07-29 12:23:09 +08:00
Christopher Lam
38ec9f254c [dialog-sx-since-last-run] free the dialog
it was created with g_new0 in gnc_ui_sx_since_last_run_dialog
2022-07-29 12:23:07 +08:00
John Ralls
436110e523 Bug 798578 - MT940 imports broken - all transactions have date of...
first transaction

It's really the date of the opening balance and it's because AQBanking
returns that instead of the value date if a transaction field has
no entry date.: https://www.aquamaniac.de/rdm/issues/262
2022-07-28 14:55:12 -07:00
John Ralls
1d5e9d4d97 Use macos-latest github runner for mac tests. 2022-07-28 11:50:09 -07:00
Frank H. Ellenberger
b98cd00993
Translation update by Frank H. Ellenberger <frank.h.ellenberger@gmail.com> using Weblate
po/nl.po: 99.2% (5359 of 5400 strings; 33 fuzzy)
10 failing checks (0.1%)
Translation: GnuCash/Program (Dutch)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/nl/

Co-authored-by: Frank H. Ellenberger <frank.h.ellenberger@gmail.com>
2022-07-28 03:20:27 +02:00
Milo Ivir
5fc99aa9b4
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/hr.po: 100.0% (5400 of 5400 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/

Translation update  by Milo Ivir <mail@milotype.de> using Weblate

po/hr.po: 99.8% (5393 of 5400 strings; 7 fuzzy)
2 failing checks (0.1%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/

Co-authored-by: Milo Ivir <mail@milotype.de>
2022-07-28 03:20:26 +02:00
Christopher Lam
2e81d44402 [gnc-tree-view] some char* freed 2022-07-27 21:45:42 +08:00
J0kWang
b598375ea7
Translation update by J0kWang <lianjiefly@gmail.com> using Weblate
po/zh_CN.po: 99.9% (5395 of 5400 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: J0kWang <lianjiefly@gmail.com>
2022-07-26 18:23:29 +02:00
Avi Markovitz
9417c6cb54
Translation update by Avi Markovitz <avi.markovitz@gmail.com> using Weblate
po/he.po: 100.0% (5400 of 5400 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Co-authored-by: Avi Markovitz <avi.markovitz@gmail.com>
2022-07-26 18:23:29 +02:00
Yaron Shahrabani
e9b4e2e99f
Translation update by Yaron Shahrabani <sh.yaron@gmail.com> using Weblate
po/he.po: 100.0% (5400 of 5400 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
2022-07-26 18:23:29 +02:00
Avi Markovitz
7e1ef4ce6e
Translation update by Avi Markovitz <avi.markovitz@gmail.com> using Weblate
po/he.po: 100.0% (5400 of 5400 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Co-authored-by: Avi Markovitz <avi.markovitz@gmail.com>
2022-07-26 18:23:29 +02:00
Christopher Lam
0e81d42e08 [csv-transactions-export] couple leaks plugged 2022-07-27 00:21:01 +08:00
Robert Fewell
6b64c70c64 Merge Christian Wehling's branch 'help-buttons' into maint PR #1385 2022-07-26 09:38:25 +01:00
Christian Wehling
4b73dbc616
Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
po/glossary/de.po: 99.5% (215 of 216 strings; 1 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/de/

Translation update  by Christian Wehling <christian.wehling@web.de> using Weblate

po/de.po: 99.8% (5390 of 5400 strings; 9 fuzzy)
184 failing checks (3.4%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Translation update  by Christian Wehling <christian.wehling@web.de> using Weblate

po/de.po: 99.8% (5390 of 5400 strings; 9 fuzzy)
185 failing checks (3.4%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Christian Wehling <christian.wehling@web.de>
2022-07-25 22:24:13 +02:00
Christopher Lam
6c10053212 [trep-engine] fix use of gnc:make-complex-boolean-option
don't set invalid setter-function-called-cb
2022-07-25 23:36:01 +08:00
Christian Wehling
3a6f1ab1a9 [dialog-price] Price Database: Insert help buttons 2022-07-25 17:25:50 +02:00
Christian Wehling
5fa4b83169 [gnc-ui.h] Price Database: Insert new links to the help file 2022-07-25 17:25:49 +02:00
Wellington Terumi Uemura
d3a3e3e9f9
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
po/pt_BR.po: 100.0% (5400 of 5400 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt_BR/

Co-authored-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
2022-07-25 02:18:11 +02:00