remove the references to the business-core includes directory
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15488 57a11ea4-9604-0410-9ed3-97b8803252fd
If the return value of pow is not saved in a double but rather used for
other calculations or casts, results can be bad, like pow(10, 2) being
99 instead of 100. Wrap pow and store the return value first before
continuing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15484 57a11ea4-9604-0410-9ed3-97b8803252fd
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
(Normally translations on trunk are not updated. In this case cstim keeps
track of this particular translation to handle it correctly when the large
2.0 -> trunk merge is going to happen.)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15454 57a11ea4-9604-0410-9ed3-97b8803252fd
Mkstemp is unavailable on Windows and g_rename is preferred. Completes
r15435 on trunk and must not be backported.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15449 57a11ea4-9604-0410-9ed3-97b8803252fd
Update glib, freetype, pango, gtk and gtkhtml. Use libgnurx which should
be equivalent to regex-spencer despite the naming change. Put -lregex
into REGEX_LDFLAGS. Freetype 2.2.1 has a pkgconfig file included now.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15446 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
This could be a security issue if someone else, say, makes a symlink
to somewhere else. Instead, create a tempfile and then rename it
into place which is safe against the symlink attack.
Patch by Bill Nottingham <notting@redhat.com>
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15435 57a11ea4-9604-0410-9ed3-97b8803252fd
If DISABLE_OPTIMIZATIONS is "yes", add "-O0" to CFLAGS. This will make the
binaries slower, smaller and easier to debug. Also add
"--disable-static" to the configuration of libtool, guile and libgsf.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15434 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