John Ralls
939a77407c
Merge branch 'price-quotes-cpp'
4 years ago
Mike Alexander
3c306eae65
Merge branch 'maint'
4 years ago
Mike Alexander
2d3e80ea08
Compatibility with XCode's "new build system"
...
With XCode 14 or newer CMake tries to use the "new build system" which has a
requirement that if two targets depend on the same generated file one of them
must depend on the other. This commit adds reduntant dependencies to satisfy
this requirement.
4 years ago
Geert Janssens
7765e13704
Bindings - move log wrappers into the swig interface files
...
They are only used for guile (and possibly python, so there's
no need to carry them around in core-utils.
4 years ago
Geert Janssens
e5c6f6026b
Remove support code that was only used by price-quotes.scm
4 years ago
Geert Janssens
e97fc3e408
Drop price-quotes.scm, gnc-fq-helper.in and gnc-fq-check.in - no longer used
4 years ago
John Ralls
a6e2842ea0
More distcheck fixes.
4 years ago
Christopher Lam
c78bb3c22c
[test-gnc-option-scheme-output.scm] more scheme typos
...
Addendum to 11d395185
4 years ago
John Ralls
11d395185c
Fix spelling of xaccAccountGetType.
4 years ago
Christopher Lam
161b07b241
Merge branch 'maint'
4 years ago
luz paz
ba94730a23
Fix various typos
...
Found via `codespell`
4 years ago
John Ralls
95361ad060
[options] Move gnc-options test to engine/test/CMakeLists.txt.
4 years ago
John Ralls
4ae17d12c7
[options] Move options from app-utils to engine.
...
Options is required for book options that are stored as part of the data
file and so belongs in engine.
4 years ago
Christopher Lam
3e02859277
Merge branch 'maint'
4 years ago
John Ralls
e29ab5336f
[options] Remove key and doc_string from gnc_register_query_option.
...
It's always used as an internal option with no UI component so it doesn't
use them.
4 years ago
John Ralls
6faaf3b427
[options] Provide a const char* value flavor for register_commodity
...
And register_currency_option
4 years ago
John Ralls
da0eff2cac
[options] Implement widget-changed callbacks.
...
Enables full functionality for complex-boolean and multichoice-callback
options.
Note that setter-function callback isn't used in any GnuCash code so it
is not implemented and is not present in the register-callback functions.
4 years ago
John Ralls
552aa438ff
[options] Implement gnc_register_internal_option.
4 years ago
John Ralls
3d275a3715
[options] Improve Scheme API consistency
4 years ago
John Ralls
418bb7d0cc
[options] Fix two deprecation messages.
4 years ago
John Ralls
cf2870b71a
[options] Change RelativeDate and Multichoice index type to uint16_t.
...
From size_t because clang thinks that std::is_same_v<size_t, time64> is
true and we need to differentiate the handling of the two.
4 years ago
John Ralls
0b2d14ee72
Fix distribution for expressions target.
4 years ago
Christopher Lam
0b5a4cd298
Merge branch 'maint'
4 years ago
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.
4 years ago
Christopher Lam
f1adb5da34
Merge branch 'TXN_TYPE-is-dynamic' xaccTransGetTxnType into maint #1201
4 years ago
Christopher Lam
fd12d3900c
[Transaction.c] use heuristics to determine txn->txn_type
4 years ago
John Ralls
f4c27d4494
Move gnc_ui_account_get_tax_info_string to gnc-locale-tax.c
...
To prevent a circular dependency between libgnc-app-utils and
libgnucash-guile.
4 years ago
John Ralls
47904a858e
Fix distcheck in master.
...
Several gnc-optiondb dependencies left out of tarball.
4 years ago
John Ralls
3fd8bd9ddf
Merge branch 'maint'
4 years ago
John Ralls
426b30c37e
Fix python tests dependencies
...
So that ninja check works from a clean build directory with Python enabled.
4 years ago
Christopher Lam
dc620d4b24
Merge branch 'maint'
4 years ago
John Ralls
95487eb4a0
Merge branch 'maint'
...
# Conflicts:
# gnucash/gnome/window-reconcile2.c
# libgnucash/app-utils/options.scm
# libgnucash/engine/gnc-numeric.cpp
4 years ago
Christopher Lam
fae7ea02cd
[account.cpp] gnc_accounts_and_all_descendants converted from scm
...
much more efficient than guile algorithm, avoids numerous repeated
GList<->SCM conversions, and traversals of account descendants.
4 years ago
Christopher Lam
40d5db43e6
Bug 797163 - qof_book_get_option segfaults when retrieving a non-leaf frame
...
returns a KvpFrame into a nested list of pairs
returns a KvpValue GLIST into a list
4 years ago
Christopher Lam
11458bf8b3
[core-utils.i] Use g_dpgettext2 instead of g_dpgettext
...
avoids using \004 context and msg separator.
Discussed in dae2ea8356
4 years ago
John Ralls
abd1a0b3f1
Merge branch 'c++options'
4 years ago
Christopher Lam
73ddaa8c40
Remove deprecated functions
...
Were resurrected in error 5c7967c4a
4 years ago
John Ralls
03cbbd1cd1
Merge branch 'maint'
4 years ago
John Ralls
7d94ade599
[python]Remove non-namespace "All non-currency" fom namespace test.
4 years ago
John Ralls
109efe62b8
Rework default non-currency commodity namespace.
...
Separate the "All noncurrency" convenience category in the commodity
selector and the default non-commodity namespace proposed by the QIF
importer because they have different functions.
Also remove the namespace guessing code from qif-dialog because with
only one default non-currency namespace there's nothing to guess.
4 years ago
Christoph Holtermann
6a015c8744
make GncNumeric.invert() return GncNumeric
4 years ago
Christoph Holtermann
567df27cc7
Implement some comparisons and arithmetics for GncNumeric
...
Derive some numeric comparisons and arithmetics from Fraction
class
https://github.com/python/cpython/blob/3.7/Lib/fractions.py
and general information from
https://docs.python.org/3/library/numbers.html#numbers.Integral
These methods are bound closer to the gnucash-C-api than those
from the fraction class.
This is not the full set of comparisons and arithmetics, needs
to be extended. It would be good to extend tests to cover this.
4 years ago
Christopher Lam
193a7aae5d
Merge branch 'maint'
4 years ago
John Ralls
1373233cd0
Restore Scheme definitions of GNC-COMMODITY-NS-CURRENCY & -NONCURRENCY.
...
Overzealously removed in PR 1073.
4 years ago
John Ralls
cbfacdcd55
Merge Christoff Holtermann's 'python-qof-example' into maint.
4 years ago
John Ralls
d841b322d0
Merge Frank Ellenberger's 'Bug684507' into maint.
4 years ago
Christoph Holtermann
64920e7c70
Small fix in expected result
4 years ago
Christoph Holtermann
07cfe9e45c
Missed one redundancy
4 years ago
Christoph Holtermann
395c7a7052
Modify examples to respect previous patch
4 years ago
Christoph Holtermann
62f8acf6ae
Provide the complete set of QOF enums in gnucash
4 years ago