Commit Graph

10329 Commits

Author SHA1 Message Date
Christian Stimming
e6e07fdc1a Added Canadian French account templates by Serge P. Leblanc
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15491 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-02-02 14:18:52 +00:00
Joshua Sled
193a95015a Rename "pts" -> "units". It's not actaully points.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15489 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-02-01 21:47:17 +00:00
Derek Atkins
266595a208 The engine shouldn't depend on business.
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
2007-02-01 15:48:21 +00:00
Christian Stimming
e5f22f8ed0 Add generated ChangeLog of the year 2006 (r15286:r12229) to tarball.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15487 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-02-01 14:25:42 +00:00
Joshua Sled
8577897ac7 SX "enabled" patch from Peter McAlpine <peter@aoeu.ca>.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15486 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-02-01 03:30:21 +00:00
Joshua Sled
594a1f343f Make it a 1pt reduction, and make the variable just a bit clearer.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15485 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-02-01 02:25:52 +00:00
Andreas Köhler
c71c7ecd24 Add lib/libc/pow.h to avoid calculation errors on Windows.
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
2007-02-01 01:08:05 +00:00
Andreas Köhler
d719ce6cc2 Add a --library-dir to gnome-utils tests.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15483 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-02-01 01:00:31 +00:00
Andreas Köhler
1875a64aaa Reduce debug stack size in tests from 5,000,000 to 500,000.
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
2007-02-01 00:57:13 +00:00
Christian Stimming
f0d98b8e4d Add numerical check for match when importing transactions. By Ethy H. Brito.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15481 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-31 21:48:35 +00:00
Andreas Köhler
d7be4de889 Avoid even more divisions by zero in test-numeric.
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
2007-01-31 16:22:11 +00:00
Christian Stimming
56e1b2acb7 Add more registry keys for aqbanking/gwenhywfar. Also, delete those keys on uninstall again.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15479 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-31 14:00:59 +00:00
Christian Stimming
565b3afbb0 Fix dist package creation after latest regex changes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15478 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-31 13:55:33 +00:00
Joshua Sled
68f9050a4b Force --enable-debug to strip spurious optimization added by AC_PROG_CC (for gcc). But if the user has optimization in their CFLAGS, make sure it's respected.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15477 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-31 02:36:53 +00:00
Joshua Sled
227489040d Fix bug in dispose for gnc-sx-list-tree-model-adapter causing (eventual) crash when sx-list plugin page is closed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15476 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-31 02:25:32 +00:00
Joshua Sled
f042147ca5 Change GncDenseCal font-handling from GDK to Pango. Change mark rectangles to circles, because they're cuter.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15475 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-31 02:05:02 +00:00
Andreas Köhler
cc8b101186 Do not intentionally divide by zero in test-numeric
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
2007-01-31 01:35:25 +00:00
Derek Atkins
b6be683d93 Fix the gnc-numeric test because using EXACT means we don't know
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
2007-01-31 00:13:48 +00:00
Andreas Köhler
f81aa515fd Implement gnc_timegm directly without mktime.
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
2007-01-31 00:05:23 +00:00
David Hampton
a23e280d8d Prevent a crash when reading a new state file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15468 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-30 04:35:34 +00:00
Joshua Sled
bf67b8f33c remove questionmark
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15467 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-30 01:25:57 +00:00
Joshua Sled
909015dcbf Fix specious datafile dirtying in SLR dialog.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15466 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-30 01:09:18 +00:00
Christian Stimming
cb02cab345 Code refactoring for further aqbanking features.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15465 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-29 20:58:46 +00:00
Joshua Sled
a34f91e975 add note re: datafile dirtying
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15464 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-29 14:38:24 +00:00
Christian Stimming
e1805d89a5 Fix typo in German translation. Fixes #402048.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15463 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-29 14:00:56 +00:00
David Hampton
44e614a706 Back out #15458 on trunk. This is temporary until after 2.0.5
(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
2007-01-29 05:30:32 +00:00
Andreas Köhler
0ef4c64c6b Do not crash on delete_event in new user dialog. Fix #401484.
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
2007-01-29 00:52:02 +00:00
David Hampton
4209e9bd88 Play nicer with recent releases of glib that have tightened what's
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
2007-01-28 21:58:20 +00:00
Christian Stimming
5ad71286b7 Fix relocation support detection that was broken with autoconf-2.60.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15457 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-28 21:44:21 +00:00
Joshua Sled
c7b436dc34 remove tabs to correct/consistentize indentation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15456 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-28 21:41:05 +00:00
Joshua Sled
17b046fde3 Correct return value of zero-loop list, preventing malloc(-1).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15455 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-28 21:24:30 +00:00
Christian Stimming
ed5966da7e Update German translation.
(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
2007-01-28 21:11:06 +00:00
Joshua Sled
5812812893 Bug#168700: extension of fin.scm with cpd_{,i,p}pmt functions, featuring variable compounding and consistent rounding functions. Patch from Ludovic Nicolle <ludo_gnc@chezludo.com>, though moved around in the file a bit.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15452 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-28 20:29:07 +00:00
Derek Atkins
9160a39948 Make sure we properly add the glib28 sources to EXTRA_DIST
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15450 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-28 14:13:27 +00:00
Andreas Köhler
f0d6aab958 Replace mkstemp and rename by g_mkstemp and g_rename.
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
2007-01-28 13:40:54 +00:00
David Hampton
10d17674e6 Remove unused functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15448 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-28 06:20:43 +00:00
David Hampton
0927d97115 Fix glib28 utils on non-win32 system.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15447 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-28 06:19:45 +00:00
Andreas Köhler
bcdc4e3635 Install.sh: Some updates, use freetype and libgnurx from gnome.org.
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
2007-01-28 05:24:56 +00:00
Andreas Köhler
5d79c1a22f Add a few functions from GLib 2.8 in lib/glib28.
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
2007-01-28 05:13:54 +00:00
Derek Atkins
af93db5b7a Remove hardcoded /tmp paths.
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
2007-01-28 03:16:57 +00:00
Derek Atkins
a929bcdf33 /tmp/qof.trace or /tmp/gnucash.trace is opened for writing directly.
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
2007-01-28 03:16:39 +00:00
Andreas Köhler
51311e141f Install.sh: Add DISABLE_OPTIMIZATIONS and --disable-static's.
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
2007-01-27 12:53:51 +00:00
David Hampton
8e40824e19 Update for the new base level of gtk2.6. Add all the gtk2.6
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
2007-01-27 04:33:37 +00:00
David Hampton
440e1e7323 Update for the new base level of gtk2.6.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15432 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-27 04:31:29 +00:00
David Hampton
0cced7a60b Make trunk compile again on FC4.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15431 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-27 04:29:54 +00:00
Andreas Köhler
275069ff90 Replace access by _waccess on Windows. Fix leak from r15429.
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
2007-01-26 23:35:29 +00:00
Andreas Köhler
89e7929fc0 Replace chmod by _wchmod on Windows.
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
2007-01-26 22:29:42 +00:00
Andreas Köhler
af04e4cd25 Use guiles native sort and record. Fix #373809.
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
2007-01-25 22:14:14 +00:00
Christian Stimming
2edefe14ad Further preparations for potential aqbanking3 porting
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15427 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-25 12:22:38 +00:00
Christian Stimming
92e035133b Some initial work to provide an easy porting to aqbanking3 once it is stable.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15426 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-24 16:54:25 +00:00