Commit Graph
29963 Commits
Author SHA1 Message Date
Christopher Lam 8b6d93eb87 [test-qofbook.c] use getters instead of accessing QofBook members 2026-06-10 09:46:39 +08:00
Christopher Lam db6cac5b82 [qofbook.h] add further getters/setters for QofBook 2026-06-10 09:44:16 +08:00
John Ralls f3c053fbee Merge Peter Kim's 'bug-799767-rest-api-post-accounts' into stable. 2026-06-05 15:04:32 -07:00
John Ralls 7178a86859 Merge latest translations from Weblate. 2026-06-02 11:10:46 -07:00
Szia Tomi 3e7f364c61 Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 91.4% (5199 of 5686 strings; 116 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
2026-05-30 17:47:49 +02:00
이정희 0882f74726 Translation update by 이정희 <daemul72@gmail.com> using Weblate
po/glossary/ko.po: 100.0% (213 of 213 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/ko/

Translation update  by 이정희 <daemul72@gmail.com> using Weblate

po/ko.po: 100.0% (5686 of 5686 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ko/

Translation update  by 이정희 <daemul72@gmail.com> using Weblate

po/ko.po: 100.0% (5686 of 5686 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ko/

Translation update  by 이정희 <daemul72@gmail.com> using Weblate

po/glossary/ko.po: 7.5% (16 of 213 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/ko/

Translation update  by 이정희 <daemul72@gmail.com> using Weblate

po/glossary/ko.po: 5.6% (12 of 213 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/ko/

Translation update  by 이정희 <daemul72@gmail.com> using Weblate

po/ko.po: 100.0% (5686 of 5686 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ko/

Translation update  by 이정희 <daemul72@gmail.com> using Weblate

po/ko.po: 100.0% (5686 of 5686 strings; 0 fuzzy)
44 failing checks (0.7%)
Translation: GnuCash/Program (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ko/

Translation update  by 이정희 <daemul72@gmail.com> using Weblate

po/glossary/ko.po: 4.2% (9 of 213 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/ko/

Co-authored-by: 이정희 <daemul72@gmail.com>
2026-05-30 17:47:49 +02:00
Szia Tomi 7faf818d0f Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 91.3% (5197 of 5686 strings; 116 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by Szia Tomi <sziatomi01@gmail.com> using Weblate

po/hu.po: 91.3% (5195 of 5686 strings; 116 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by Szia Tomi <sziatomi01@gmail.com> using Weblate

po/hu.po: 91.2% (5191 of 5686 strings; 118 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2026-05-30 17:47:48 +02:00
DGDS b484b3fb76 Translation update by DGDS <dagrinddontstop@users.noreply.hosted.weblate.org> using Weblate
po/zh_CN.po: 97.3% (5534 of 5686 strings; 141 fuzzy)
59 failing checks (1.0%)
Translation: GnuCash/Program (Chinese (Simplified Han script))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: DGDS <dagrinddontstop@users.noreply.hosted.weblate.org>
2026-05-30 17:47:48 +02:00
Milo Ivir 66122ebc5d Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/hr.po: 98.0% (5577 of 5686 strings; 1 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: 98.0% (5577 of 5686 strings; 1 fuzzy)
1 failing checks (0.1%)
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: 98.0% (5577 of 5686 strings; 1 fuzzy)
1 failing checks (0.1%)
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: 98.0% (5574 of 5686 strings; 4 fuzzy)
2 failing checks (0.1%)
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/glossary/hr.po: 99.5% (212 of 213 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/hr/

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

po/hr.po: 98.0% (5574 of 5686 strings; 4 fuzzy)
4 failing checks (0.1%)
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: 98.0% (5574 of 5686 strings; 4 fuzzy)
2 failing checks (0.1%)
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/glossary/hr.po: 99.5% (212 of 213 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/hr/

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

po/hr.po: 97.8% (5563 of 5686 strings; 14 fuzzy)
1 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>
2026-05-30 17:47:47 +02:00
Christopher Lam 1975ca454a [assistant-loan.cpp] don't use gtk_editable_get_chars
use gtk_entry_get_text where appropriate

also plugs a leak when setting ldd->ld.repAmount
2026-05-29 21:51:04 +08:00
Christopher Lam 4d90f19c73 [csv-imp] use ctre instead of boost::regex 2026-05-28 17:07:57 +08:00
Christopher Lam 908bfc0802 [core-utils] upgrade ctre in CMakeLists to public
so that it's available everywhere including tests
2026-05-28 17:07:57 +08:00
Christopher Lam f36532131b ensure boost::regex is compiled at startup
instead of per-call
2026-05-28 17:07:19 +08:00
peter 2d0a3850ae Bug 799767 - POST /accounts route in rest-api example is broken
addAccount was rewritten to accept (name, currency, account_type_id,
parent_account_guid, description, code), validate each field, look up
the parent by GUID, and return gnucash_simple.accountToDict(account).
The route handler was updated to pull the form fields and call it with the
new signature.

README was updated to reflect these changes.
2026-05-25 14:40:50 -05:00
John Ralls 2911a0cce3 Bug 797384 - Gnucash doesn't handle commodity prices with big...
numerator/denominator properly

- Use GNC_HOW_DENOM_REDUCE | GNC_HOW_RND_ROUND to preserve precision while
avoiding overflows.

- Rearrange the function's tests to perform only one division or
multiplication instead of unconditionally dividing

- Rename the from_ and to_ variables to p(rice)1 and p2 to reduce
conflation with the input from and to.
2026-05-25 11:32:19 -07:00
Robert Fewell 88e5053784 Bug 799766 - Double line preference not respected in search register
After the changes to fix bug 799753, when the register default is to
show double lines the search results were only showing one line of the
transaction, a refresh of the search register would fix this.

This was down to the removal of a refresh from the register creation as
it is now done when the register is focused. In the find transaction
dialog a refresh was being done before the register creation which was
not reflected in the register when it was focused.

To fix this, do not do a refresh when creating the search register but
only when 'updating the search'.
2026-05-24 12:33:23 +01:00
galbarm 25e0f2144a Account tree: make numeric columns selectable via GncCellRendererLabel
Implements the approach suggested by jralls in PR #2222: instead of a
context menu action, introduce GncCellRendererLabel - a
GtkCellRendererText subclass that returns a read-only, selectable
GtkEntry when a cell is activated.

All numeric columns (Balance, Total, Cleared, Reconciled, Present,
Future Minimum, and their report/period variants) are affected because
they all go through gnc_tree_view_add_numeric_column.

Usage:
- Click once to select the row (unchanged behaviour)
- Click again on a numeric cell to activate it; the value appears in a
  read-only entry field with the text pre-selected
- Ctrl+C copies the value to the clipboard; Escape or clicking away
  dismisses the field without modifying the model
- Unicode bidi control characters (added by GnuCash for RTL display)
  are stripped before showing the value so the copied text is clean
2026-05-23 13:14:55 +01:00
John Ralls ec4a85a56c Correct the Doxygen doc for qof_instance_get/set_kvp. 2026-05-22 15:47:40 -07:00
Christopher Lam 43b6b92ee2 [gnc-log-replay.cpp] fix incorrect guid dump 2026-05-22 21:15:30 +08:00
Christopher Lam bbb80105ff [gnc-aqbanking-templates.cpp] fix incorrect setter, free GList* 2026-05-22 21:15:29 +08:00
Christopher Lam 55856c63dd [gnc-budget.cpp] null check arguments *before* accessing them 2026-05-22 21:15:27 +08:00
John Ralls 4490130eef Update Mac testing to a new depenencies tarball 2026-05-21 17:02:46 -07:00
John Ralls bf3accd85d Add some Boost library requirements needed by libgnucash-guile.
So that if they're missing we don't have to wait for linker failures to find out.
2026-05-21 16:23:28 -07:00
Christopher Lam df9380c2a8 Merge branch 'ctre-regex' into stable 2026-05-17 08:41:06 +08:00
Christopher Lam 384043ac41 [gnc-filepath-utils.cpp] use ctre instead of std::regex 2026-05-17 08:39:17 +08:00
Christopher Lam 0d21fdc9f7 [ctre.hpp] add single-header ctre v3.11.0 2026-05-17 08:39:17 +08:00
Christopher Lam 96dac7bb38 [gnc-filepath-utils.cpp] null check char* arguments 2026-05-16 18:31:28 +08:00
John Ralls bf1264b561 Add ChartJS licenses. 2026-05-11 09:59:23 -07:00
John Ralls f9e2fb9130 Merge Bruce Schuck's 'rm-aex' of https://github.com/bpschuck/gnucash into stable 2026-05-10 15:56:19 -07:00
Bruce Schuck 4ff491b565 Removed AEX from list of commodities.
euronext.com is now using JS based anti-webscraping.
2026-05-10 10:49:32 -07:00
John Ralls b8181871dd Merge Sherlock's 'bug-436105' into stable 2026-05-08 15:41:57 -07:00
Sherlock 99822a16c8 Bug 436105 - esc key not working as expected in register
This patch enables the use of the Escape key to cancel an edit of a field in a transaction or a split restoring the value the field held when the user navigated to the transaction or split.
2026-05-08 15:05:12 -07:00
Christopher Lam 992088754f Merge branch 'always-offer-options-summary' into stable 2026-05-08 07:52:39 +08:00
John Ralls b72a98ecdf Merge Sherlock's 'remove-dead-IM_code' into stable. 2026-05-07 16:04:26 -07:00
John Ralls cc4522c5d5 Merge Wayne Boyer's 'fix/macos-hidpi-offscreen-text' into stable. 2026-05-07 15:50:53 -07:00
Wayne Boyer 2d694e8225 Fix blurry text in HiDPI offscreen-rendered widgets
Fix blurry text on HiDPI/Retina displays in custom GnuCash widgets
that render into offscreen Cairo image surfaces.

This updates the register header and dense calendar widgets to
create scale-aware backing surfaces using the GTK widget scale
factor and `cairo_surface_set_device_scale()`.

- Register column headers
- Scheduled transaction dense calendar

Tested locally on macOS Apple Silicon with a native arm64 build.

Confirmed that:
- register header text now renders crisply
- scheduled transaction dense calendar text now renders crisply
2026-05-07 13:25:13 -07:00
Sherlock b9fd1c3eca Remove remaining obsolete IMContext from sheet
This patch removes IMContext state being maintained in the sheet's private area but not been used for over six years.
2026-05-06 14:21:37 -07:00
Christopher Lam 4bad776ba1 [reports] remove "Add options summary" report option
because it is now offered in all reports.
2026-05-06 08:09:22 +08:00
Christopher Lam 2b48c1aa34 [report-core] always offer options summary in reports
this is useful to debug reports. if the "Add options summary" is
enabled, show the list of changed options at the *end* of the report.
2026-05-06 08:09:22 +08:00
John Ralls d1117549e7 Merge latest translations from Weblate. 2026-05-04 16:51:09 -07:00
Christian Wehling 0bda87ec40 Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
po/de.po: 99.8% (5680 of 5686 strings; 6 fuzzy)
43 failing checks (0.7%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/
2026-05-03 22:14:06 +02:00
Christian Wehling c774f91db2 Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
po/de.po: 99.5% (5663 of 5686 strings; 20 fuzzy)
41 failing checks (0.7%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/
2026-05-03 22:14:06 +02:00
Christian Wehling 2eb5af7eb1 Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
po/de.po: 99.2% (5645 of 5686 strings; 30 fuzzy)
40 failing checks (0.7%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/
2026-05-03 22:14:06 +02:00
Milo Ivir bbf773df37 Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/hr.po: 97.3% (5533 of 5686 strings; 44 fuzzy)
14 failing checks (0.2%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/
2026-05-03 22:14:06 +02:00
Szia Tomi b822c7a365 Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 91.1% (5182 of 5686 strings; 121 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
2026-05-03 22:14:06 +02:00
Szia Tomi c2a9e50919 Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 91.1% (5182 of 5686 strings; 121 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
2026-05-03 22:14:06 +02:00
Szia Tomi 8de83d7af3 Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 91.1% (5180 of 5686 strings; 122 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
2026-05-03 22:14:06 +02:00
Cecilie Nielsen 0d6934048d Translation update by Cecilie Nielsen <cecilie.nielsen1984@gmail.com> using Weblate
po/glossary/da.po: 99.0% (211 of 213 strings; 2 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Danish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/da/

Translation update  by Cecilie Nielsen <cecilie.nielsen1984@gmail.com> using Weblate

po/da.po: 97.1% (5526 of 5686 strings; 146 fuzzy)
44 failing checks (0.7%)
Translation: GnuCash/Program (Danish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/da/

Co-authored-by: Cecilie Nielsen <cecilie.nielsen1984@gmail.com>
2026-05-03 22:14:06 +02:00
Szia Tomi d3ed896421 Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 91.0% (5177 of 5686 strings; 123 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2026-05-03 22:14:06 +02:00
John Ralls e2ddac1a06 Merge Sherlock's 'fix-event-callback' into stable. 2026-05-03 13:12:24 -07:00