Commit Graph

10297 Commits

Author SHA1 Message Date
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
Christian Stimming
9460a2db36 Fix erroneous default value for format of MT940 import.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15425 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-23 21:12:07 +00:00
Christian Stimming
8b28d9ab56 Enable user choice of format (profile) when importing data from a file
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
2007-01-23 20:56:25 +00:00
Andreas Köhler
df01f32fbf Add paths for AqBanking in gnucash\inst tree. Fix #399816.
The DDLs of OpenSSL, Gwenhywfar and AqBanking must be in the PATH for
GnuCash+AqBanking to work. The distributed version includes them in
\bin, but PATH was incomplete for the gnucash shell and batch scripts.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15423 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-23 20:35:20 +00:00
Christian Stimming
2ec7438224 Fix numerical currency code for RUB.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15422 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-23 14:33:13 +00:00
Christian Stimming
2760b2ebdf Change Russian Ruble from RUR to RUB; r7574 was erroneous. See bug #393185.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15421 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-23 14:24:06 +00:00
Andreas Köhler
b45ce825eb Do not %s-printf NULL-title of average balance plot. Fix #397935.
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
2007-01-23 02:50:40 +00:00
Christian Stimming
1ca2c7f405 Fix capitalization in summary bar. Fixes #394550.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15419 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-22 16:35:11 +00:00
Christian Stimming
19dcf011eb Improve wording in online banking messages; dont mention HBCI alone anymore.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15418 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-22 16:21:51 +00:00
David Hampton
6be85d06d0 Make the dependency requirements consistent with the other gnc-fq-xxx
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
2007-01-22 00:48:58 +00:00
Derek Atkins
85fb534953 gnucash-env needs DYLD_LIBRARY_PATH for MacOS-X
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15415 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-22 00:05:10 +00:00
Derek Atkins
860276bc63 "string-match" uses regexp which can error out if a GNC Account has a
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
2007-01-22 00:04:45 +00:00
Andreas Köhler
c59bda28a3 Replace creat() by g_open().
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
2007-01-21 22:30:57 +00:00
Andreas Köhler
f1f0f8537a Use g_getenv instead of getenv.
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
2007-01-21 22:11:34 +00:00
Andreas Köhler
9c72ea9327 Fix Gwenhywfar build in install.sh.
* Add $_OPENSSL_UDIR/bin to PATH.
* No need to copy OpenSSL libraries from WINDIR\\system32, because we
  switched to the GnuWin32 package and even checked that system32 is
  clean.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15411 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-21 19:32:59 +00:00
Andreas Köhler
aea560125c Always supply three arguments to g_open.
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
2007-01-21 19:28:31 +00:00
Andreas Köhler
9243b2f4ac Use MAX_DATE_LENGTH+1 as length for some date buffers.
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
2007-01-21 17:51:12 +00:00
Joshua Sled
da5bd42968 Bug#394420: initialized dates still aren't valid; set to 'now' before manipulating. Also: use correct month (!) :p
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15408 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-21 17:03:36 +00:00
Andreas Köhler
5c126dea86 Use g_open, g_fopen, g_stat and g_unlink.
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
2007-01-21 16:38:42 +00:00
Joshua Sled
e79f41ca14 remove inappropriate call.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15406 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-21 16:15:41 +00:00
Joshua Sled
3c9e0b6355 updates post merge.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15405 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-20 23:06:24 +00:00
Joshua Sled
b558be7367 updates.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15404 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-20 22:19:01 +00:00
Andreas Köhler
6783775210 Use g_dir_{open,read_name,close}.
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
2007-01-20 18:37:35 +00:00
Joshua Sled
3eb2abc024 update
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15402 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-20 15:27:21 +00:00
Joshua Sled
abb0b25246 remove unneeded call
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15401 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-20 15:26:46 +00:00
Andreas Köhler
35f43c0a1a Raise dependencies: GLib 2.6, Pango 1.8, GTK+ 2.6.
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
2007-01-20 15:21:35 +00:00
Joshua Sled
eb73260220 Fold branches/sx-cleanup/ [14463:15384] back into trunk/.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15399 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-19 23:45:45 +00:00
Christian Stimming
e3a674154b Replace openssl 0.9.8 by openssl 0.9.7 because gnome-vfs was built against it
and it is easier to handle.
Activate online banking (hbci) plugin of gnucash.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15398 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-19 11:49:26 +00:00
David Hampton
a789aaee70 Don't abort when F::Q fails to return a quote. GnuCash may have
more quote sources to query.  Fixes #387410.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15397 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-19 05:53:30 +00:00
Joshua Sled
908a792ee9 Update with catch-all "gtk+" dependency for top 5 distros.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15396 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-18 01:28:49 +00:00
Derek Atkins
71837060b8 gtk_html_save needs an API with size_t instead of guint (#395553)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15395 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-17 15:54:47 +00:00
Christian Stimming
39d29bab2d Add more prerequisites for including online banking; still disabled, though.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15394 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-17 14:33:56 +00:00
Christian Stimming
7ef00ee207 Update win32 installation instruction according to last months' changes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15393 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-16 20:48:24 +00:00