Commit Graph
29884 Commits
Author SHA1 Message Date
John Ralls bdbc08e0ab Python Bindings: Destroy the QofSession in the Python Session dtor.
Failing to do so can leave a DBI database locked, see
https://github.com/Gnucash/gnucash/pull/2203
2026-04-22 11:28:31 -07:00
John Ralls d4c6101c6c Return immediately from qof_book_destroy if hash_of_collections is null.
If qof_book_destroy is called on a QofBook* freshly created with
qof_book_new (usually because it was used to create a session that now
must be destroyed) it would try to empty the non-existent hash tables,
crashing.
2026-04-22 11:24:18 -07:00
John Ralls 6eee5402a4 Merge Sherlock's 'add-sx-run-cmd' into stable. 2026-04-21 10:52:17 -07:00
Sherlock d8cd905e14 Bug 799314 - Add Run command to Schedule Transactions
This patch adds a “Run” command to the “Scheduled Transactions” tab to allow users to select the scheduled transactions to be included in a “Since Last Run…” window.   If there are no instances of a selected transaction triggered by today’s date, the next instance is triggered.
2026-04-21 09:48:48 -07:00
Christopher Lam 87a2219146 [completioncell-gnome.c] fix gnc_completion_cell_set_value
logic was wrong... if (!cell || !str) would call
gnc_basic_cell_set_value causing segfault. luckily this function isn't
currently used.
2026-04-21 18:57:41 +08:00
Christopher Lam 60518c3837 [window-main-summarybar.c] plug a GtkWidget* leak
and don't need to copy a GdkRGBA object
2026-04-20 06:52:32 +08:00
Christopher Lam 2e360ae05f [window-main-summarybar.c] g_free a char*
which would leak when the pref general/negative-in-red preference
is toggled
2026-04-20 06:37:43 +08:00
Christopher Lam 1ea22be0ea [gnc-plugin-report-system] use g_markup_printf_escaped for safe html
instead of manual function
2026-04-20 06:37:43 +08:00
Christopher Lam fbcdfb0a54 [window-main-summarybar.c] use g_markup_printf_escaped for safe html
instead of a manual function
2026-04-20 06:37:43 +08:00
Geert Janssens 15510b7f26 Flathub linter fixes - create longer first paragraph in description
I simply squashed the first two paragraphs together.

This commit also wraps lines in the description around
the 80 character mark.
2026-04-20 00:08:02 +02:00
Geert Janssens 3908cf1dee Flathub linter fixes - update developer tag 2026-04-20 00:08:02 +02:00
Geert Janssens 1761b70d60 Shorten screenshot captions in appstream file to satisfy flathub linter 2026-04-20 00:08:02 +02:00
Geert Janssens 4d79894e5a Fix Flathub's recent appstream validation warnings
- fix missing captions on screenshots
- fix missing vcs-browser url
2026-04-20 00:08:02 +02:00
Robert Fewell 1bed1f1e60 Use a blocking function to reduce duplication
When setting GtkToggleButtons there is a need to block the associated
callback so instead of wrapping individual uses add a function to do it.
2026-04-19 10:06:43 +01:00
Robert Fewell efd3edca95 Change load and save of the filter
Use separate functions to break up and create filter string
2026-04-19 10:06:43 +01:00
Robert Fewell 1a25310c38 Change location of Filter Dialog action widgets
The register does not need to know about the dialog action widgets so
create a new structure for the dialog and store them there. Only keep
the state in the 'FilterData' structure.
2026-04-19 10:06:43 +01:00
Robert Fewell cdd75f421a Change location of Sort Dialog action widgets
The register does not need to know about the dialog action widgets so
create a new structure for the dialog and store them there. Only keep
the state in the 'SortData' structure.
2026-04-19 10:06:43 +01:00
Robert Fewell a56fdf0427 Use a c++ array for status_actions 2026-04-19 10:06:43 +01:00
Robert Fewell 1e1bbfd2f4 Filter and Sort string changes 2026-04-19 10:06:42 +01:00
Robert Fewell 42d476eae2 Use bool instead of gboolean 2026-04-19 10:06:42 +01:00
Robert Fewell ea36ecc86d Change to use auto instead of an explicit type 2026-04-19 10:06:42 +01:00
Robert Fewell 1cca75cbdd Change NULL's to nullptr 2026-04-19 10:06:42 +01:00
Robert Fewell d51b2882bf Change sort and filter files to .cpp and .hpp 2026-04-19 10:06:42 +01:00
Robert Fewell 4855345e6c Factor out updating the register from sort/filter 2026-04-19 10:06:42 +01:00
Robert Fewell bad32f354c Move register filter parts to separate file 2026-04-19 10:06:42 +01:00
Robert Fewell 94bc521bf1 Move register sort parts to separate file 2026-04-19 10:06:42 +01:00
Robert Fewell a6ced0bbad Use the added 'Refresh' enum for gnc_split_reg_set_sort_reversed 2026-04-19 10:06:42 +01:00
Robert Fewell 1ac6141183 Do not refresh the register pages when quitting
If the page visible is the last page, as they are closed the focus is
passed to the previous page and results in that register being
refreshed before that page is closed. If the visible page was the first
in the list this does not happen.

Retrieve the status of 'window_quitting' from the main window and
add it as a condition for setting focus and subsequent page refresh.
2026-04-19 10:06:42 +01:00
Robert Fewell 5d538f23d8 Bug 799751 - autocomplete crash
With the General Journal saved to show all and sort by 'Date of Entry',
when restoring the page it was only showing the default number of days
which is 30. This was down to the query being updated but the register
was not refreshed, possibly stemming from the change to defer
refreshing pages that are not visible.

This change stops any page refresh when page is being created or
restored till when the page is in focus.
2026-04-19 10:06:42 +01:00
Robert Fewell 1fc2b550d6 Be consistent in naming GncPluginPage and GncPluginPageRegister 2026-04-19 10:06:42 +01:00
Robert Fewell 1d913a8eea Minor realignment of register source files 2026-04-19 10:06:42 +01:00
John Ralls 8281853b17 Merge Sherlock's 'sx-enable-from-list' into stable. 2026-04-18 16:46:20 -07:00
Sherlock ff07412179 Bug 799759 - Users can't Enable entries via Checkboxes on Scheduled Transactions Page
Implement the toggle of the Enabled box on the Scheduled Transactions list including use of the spacebar to toggle the Enabled box when the Enabled column is visible.  Also, added use of the Name column as the secondary column sort for all the other columns.
2026-04-17 14:24:24 -07:00
John Ralls 87a1d41f9e HTML: Remove unimplemented function declarations. 2026-04-16 13:47:41 -07:00
John Ralls 9a4193e922 Fix new llvm deprecation warning about char_traits<unsigned int> coming from boost::u32regex_replace. 2026-04-16 13:41:54 -07:00
Christopher Lam 3da38203ff [gnc-html.cpp] remove unused buggy string conversion functions
they're not compliant RFC1738, buggy, and are unused.
2026-04-16 21:50:26 +08:00
John Ralls 9f8f4d9ed3 Add new Arch package gwenhywfar-gtk3 to Dockerfile.
Fixes broken build. gwengui-gtk3 used to be included in the
gwenhywfar package.
2026-04-13 17:32:20 -07:00
Christopher Lam ea67f3a87a [gnc-html.i] add missing <cstdio> 2026-04-08 07:42:22 +08:00
John Ralls 36fab07479 Update CI actions to latest versions 2026-04-07 14:28:19 -07:00
John Ralls beb533050f Fix webkit2gtk install for Arch Linux CI 2026-04-07 14:03:56 -07:00
John Ralls 6ea7696eff Merge Russ Gorby's 'rrg_gnc-html' into stable. 2026-04-04 18:10:33 -07:00
John Ralls cf702ee3a1 Fix typo in path to gnc-vcs-info.h 2026-04-03 16:20:49 -07:00
Russ Gorby c0643c8555 replace GString use with std::string 2026-03-31 10:19:33 -06:00
Russ Gorby a6f768069d gnc-html: converted library to C++
- Maintained C-API linkage to exported functions in libgnc-html
    - changed SWIG generated file to C++
    - Added "noexcept" attribute to the C-APIs
gnc-html: more in-depth C++ conversion
    - typedef -> using
    - NULL -> nullptr
    - moved variable declarations to their
      initial assignments where appropriate
    - fixed a couple cases where early returns
      would leak memory
    - sscanf, snprintf, strchr -> std:: versions
    - converted to std::string_view for parsing loops
    - used range-based for loops for string parsing
    - used auto for modified functions
    - minor cleanup of dead code and whitespave issues
2026-03-30 17:41:04 -06:00
John Ralls d42e2c5e40 Apply -Wall -Werr -Wmissing-prototypes to C++ compilation on Windows.
And fix the resulting errors.
2026-03-29 13:46:27 -07:00
John Ralls 4c159fa5f9 Update imported actions in coverage.yml 2026-03-29 12:23:43 -07:00
John Ralls 14bc748671 Remove inadvertently committed boost-1.90 library list change. 2026-03-29 12:08:52 -07:00
John Ralls 6eeb5c6754 Release GnuCash 5.15 5.15 2026-03-28 15:10:24 -07:00
John Ralls ce59e6eab9 Fix CI build failure on Arch Linux
Boost is now separated into boost (headers) and boost-libs packages.
2026-03-28 15:05:36 -07:00
John Ralls 5911e8b223 Merge latest translations from Weblate. 2026-03-28 14:23:23 -07:00