Guile on windows will only accept the smaller value, cf. r13617.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15482 57a11ea4-9604-0410-9ed3-97b8803252fd
Improve r15474 by repeating a test run if |nb|<4 holds, because nb is
divided twice by two, potentially becoming zero.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15480 57a11ea4-9604-0410-9ed3-97b8803252fd
Random numbers are 0 sometimes, especially on systems with smaller
RAND_MAX. Do not use it as divisor and repeat the run when we hit one.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15474 57a11ea4-9604-0410-9ed3-97b8803252fd
what the denominator is going to be, so if it gets ints a state
where it's NOT overflowing then you won't get a denominator of 1
like the tests assumed. So use gnc_numeric_equal() in the few
tests where that's an issue. This should fix the test on Win32.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15473 57a11ea4-9604-0410-9ed3-97b8803252fd
Calculate the seconds since the start of the UNIX epoch directly without
the help of mktime. This also works on Windows. Systems with timegm are
unaffected.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15472 57a11ea4-9604-0410-9ed3-97b8803252fd
(w/backward compatibility support) has been released for a while, and
then this patch will be re-committed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15461 57a11ea4-9604-0410-9ed3-97b8803252fd
If the new user dialog is closed with the help of the window manager,
the delete_event is not handled and g_assert_not_reached() is reached by
the code. Treat it like a click on "Cancel" instead.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15459 57a11ea4-9604-0410-9ed3-97b8803252fd
considered a valid key in a key/value file. This change will cause
gnucash to rewrite any opened state file into a new version where all
key names fit the new glib requirements.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15458 57a11ea4-9604-0410-9ed3-97b8803252fd
Remove empty directory lib/glib26. Add lib/glib28 instead with the
necessary sources and headers to have the following functions even on a
GLib 2.6 system (!defined(HAVE_GLIB_2_8))
- g_access, g_chmod,
- g_file_set_contents,
- g_win32_locale_filename_from_utf8.
Make use of them, improving r15429 and r15430.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15445 57a11ea4-9604-0410-9ed3-97b8803252fd
They don't really work with the new file chooser anyways.
Patch by Bill Nottingham <notting@redhat.com>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15436 57a11ea4-9604-0410-9ed3-97b8803252fd
properties that have been stripped out in the past.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15433 57a11ea4-9604-0410-9ed3-97b8803252fd
As g_access is new in GLib 2.8, use _waccess directly. Also free the
results of g_utf8_to_utf16.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15430 57a11ea4-9604-0410-9ed3-97b8803252fd
To unlink the lock file we need write-access on it. As g_chmod is new in
GLib 2.8, use _wchmod directly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15429 57a11ea4-9604-0410-9ed3-97b8803252fd
Slib 3a4 changed the way to determine whether to use natively supported
features or the ones provided by slib. This leads to several problems:
* some code creates a record with one implementation and code uses it
with the other implementation
* slibs sort does not seem to work with guile 1.6.8 arrays and even
exposes a bug in those arrays
Return to the status quo by removing all (require 'sort) and (require
'record). GnuCash depends on Guile >= 1.6 which should feature that.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15428 57a11ea4-9604-0410-9ed3-97b8803252fd
through aqbanking. Next step in eventually fixing #358942.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15424 57a11ea4-9604-0410-9ed3-97b8803252fd
The average balance report does not specify a title for the plot, so we
must not printf it or GnuCash will crash on Windows.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15420 57a11ea4-9604-0410-9ed3-97b8803252fd
programs. This program does not use the additional requirements, but
since its used as a diagnostic to find problems with gnucash, it
should be helpful to have them listed here.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15416 57a11ea4-9604-0410-9ed3-97b8803252fd
paren in it, or any other regexp special character. Use
"string-contains" from srfi-13 instead. Bug reported by Melinda Savoy:
http://lists.gnucash.org/pipermail/gnucash-user/2007-January/019028.html
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15414 57a11ea4-9604-0410-9ed3-97b8803252fd
g_open is necessary to use the wide character api and creat() is
equivalent to open with O_CREAT|O_WRONLY|O_TRUNC.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15413 57a11ea4-9604-0410-9ed3-97b8803252fd
getenv returns the pure bytes, whereas g_getenv converts the value to
the GLib filename encoding, i.e. UTF-8 on Windows. Also use TRUE instead
of 1 as overwrite argument to g_setenv.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15412 57a11ea4-9604-0410-9ed3-97b8803252fd
g_open is not #defined as open on Windows and always needs three
arguments. Use 0 where missing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15410 57a11ea4-9604-0410-9ed3-97b8803252fd
Avoid memory corruption by reserving enough bytes on the stack for a
date buffer. Patch by Richard Earnshaw <rearnsha@netbsd.org>.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15409 57a11ea4-9604-0410-9ed3-97b8803252fd
Replace open, fopen, stat and unlink by their GLib wrappers so that
files on Windows will be handled with the wide character api.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15407 57a11ea4-9604-0410-9ed3-97b8803252fd
Replace opendir, readdir and closedir by their GLib wrappers so that
files on Windows will be retrieved with the wide character api.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15403 57a11ea4-9604-0410-9ed3-97b8803252fd
Ask for GLib 2.6 and GTK+ 2.6. Let the included GOffice 0.0.4 and LibGSF
1.12.3 use their native base dependencies. Remove all #ifdefs and
compatibility code that were necessary to make GnuCash, GOffice and
LibGSF compile on an older setup (GLib 2.4, Pango 1.6, GTK+ 2.4).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15400 57a11ea4-9604-0410-9ed3-97b8803252fd
When entering the page about choosing the date format (d-m-y, etc.) the
list of entries of the combobox is to be cleared and refilled.
Therefore, loop through all entries instead of
gtk_combo_box_remove_text'ing only the first entry. Trunk-only bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15392 57a11ea4-9604-0410-9ed3-97b8803252fd
Let the tests exit with status get_rv() instead of 0 so that 'make
check' really fails if necessary.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15391 57a11ea4-9604-0410-9ed3-97b8803252fd
gnc-backend-file has been renamed to gncmod-backend-file, so all tests
should use that new name.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15390 57a11ea4-9604-0410-9ed3-97b8803252fd
properly. Problem pointed out by Steve Langasek and is listed as
Debian bug 406378.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15381 57a11ea4-9604-0410-9ed3-97b8803252fd
Both are equal to pkglibdir and only used in src/bin/, even mixed with
pkglibdir. The module installation paths are hard-coded to pkglibdir
anyway, so we do not provide that flexibility right now.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15378 57a11ea4-9604-0410-9ed3-97b8803252fd
On MacOS, the load-extension calls need DYLD_LIBRARY_PATH to be set to
find the libraries. This was missing in the startup script.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15377 57a11ea4-9604-0410-9ed3-97b8803252fd
In the import account matcher and import transaction match picker tree
views, let double-clicks on rows close the corresponding dialogs.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15347 57a11ea4-9604-0410-9ed3-97b8803252fd
In the account picker dialogs, double clicks now close the dialogs. More
importantly, these dialogs are showed as a result of double clicks
(row-activated) instead of selection changes. This lets the user choose
the matching account more than once if there is only one item to match.
Introduces new i18n strings
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15336 57a11ea4-9604-0410-9ed3-97b8803252fd
On the payees/memo page in the QIF import druid, provide the callback
for line clicks the correct display information and not the one of
another/previous page. This slipped in r14588, 2.0 is crash-free.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15332 57a11ea4-9604-0410-9ed3-97b8803252fd
Mark the names and memos of expenses (Taxes, Insurance, PMI, Other
Expenses) in the Mortgage/Loan Setup Druid for translation. Spotted by
Fabrice Kurz.
Introduces new i18n strings
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15327 57a11ea4-9604-0410-9ed3-97b8803252fd
When enlarging the Payment Dialog window, space is currently allocated
to each widget equally. The only widget that would benefit from
additional space is the Transfer Account tree.
Patch by cardinal@dodds.net.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15326 57a11ea4-9604-0410-9ed3-97b8803252fd
The button label in the warning dialog about reconciled splits when
removing splits from a transaction used N_ without gettext, so was
untranslated.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15325 57a11ea4-9604-0410-9ed3-97b8803252fd
Move these two files to gncmod-business-core.c and
gncmod-business-gnome.c, resp., to better match the common naming.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15323 57a11ea4-9604-0410-9ed3-97b8803252fd
Rename libcore-utils to libgnc-core-utils
Rename libgncgnome to libgnc-gnome
Rename libgncmodule to libgnc-module
Rename libgncqof to libgnc-qof
Rename libgnc-backend-file to libgncmod-backend-file
Move libgnc-business-ledger to $prefix/lib
Move libgncqof-backend-qsf to $prefix/lib/gnucash
Move libgncmod-backend-file to $prefix/lib/gnucash
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15321 57a11ea4-9604-0410-9ed3-97b8803252fd
If the GncModule system finds a QofBackendProvider module M before that
has been initialized by QOF, M will register itself with QOF but does
not mark itself as resident, so the module system will unload it again,
leaving bogus pointers in QOF. Now it does.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15320 57a11ea4-9604-0410-9ed3-97b8803252fd
Modules are loaded directly with the g_symbol_* API now while dropping
the dependency on libltdl.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15317 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch gnc-svnversion to check for .git, but in the top-level source
directory instead of src/gnome-utils. Use the output of "git-rev-parse
HEAD" as version string.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15292 57a11ea4-9604-0410-9ed3-97b8803252fd
While we're at it, might as well pull in libcore-utils.la, just in case.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15261 57a11ea4-9604-0410-9ed3-97b8803252fd
using the automake prefix check_ instead of noinst_. The modules created
in src/gnc-module/test now use that prefix too, but with LDFLAGS="-rpath
${PWD}" to make them shared (we never install them).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15260 57a11ea4-9604-0410-9ed3-97b8803252fd
So make sure we test SCM_NUMBERP() before SCM_EXACTP()
This causes gnucash to crash on e.g. FC6 from the File Properties Menu.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15252 57a11ea4-9604-0410-9ed3-97b8803252fd