Commit Graph

10311 Commits

Author SHA1 Message Date
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
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