gnucash master: Multiple changes pushed
John Ralls
jralls at code.gnucash.org
Sat Feb 25 19:28:29 EST 2023
Updated via https://github.com/Gnucash/gnucash/commit/6ab7b16d (commit)
via https://github.com/Gnucash/gnucash/commit/408b5ec2 (commit)
from https://github.com/Gnucash/gnucash/commit/0780cfbf (commit)
commit 6ab7b16d62d91a3f6cc50036599fb6b390dfbbb9
Author: John Ralls <jralls at ceridwen.us>
Date: Sat Feb 25 16:21:45 2023 -0800
[c++options] Restore the ability to set plot sizes in pixels.
Enable and fix the previously untested GtkOptionGtkUIItem::PLOTSIZE.
This has the potentially unfortunate side effect that integer range
options are assumed to be plot sizes. That's correct for now, but
if some report comes along that needs an integer range option for
something else it will have to be differentiated.
commit 408b5ec2165fb43bef18b80ff44ba4d2f1b67f5f
Author: John Ralls <jralls at ceridwen.us>
Date: Thu Feb 23 13:32:46 2023 -0800
[c++ options] Restore forward & backward compatibility, fix crash.
Store Number Range option values as a pair '(percentage . value) or '(pixels .
value) depending on the size of value as 4.x and earlier expect. When reading a
stored number range option handle the possibility that value is fixed
point (e.g. 50.0) as 4.x and earlier emit, avoiding a crash.
Summary of changes:
bindings/guile/gnc-optiondb.i | 27 ++-
.../guile/test/test-gnc-option-scheme-output.scm | 25 ++-
gnucash/gnome-utils/gnc-option-gtk-ui.cpp | 191 ++++++++++++---------
libgnucash/engine/gnc-option-impl.hpp | 8 +-
libgnucash/engine/gnc-optiondb.cpp | 6 +-
5 files changed, 164 insertions(+), 93 deletions(-)
More information about the gnucash-patches
mailing list