Commit Graph

14880 Commits

Author SHA1 Message Date
John Ralls
2725d5a654 Implement internal replacements for localtime, mktime, etc.
The builtin time functions suffer from the "2038 bug" caused by
overflowing a 32-bit representation of seconds from 1 Jan 1970. Provide
functions based on GDateTime which use a 64-bit representation (like our
Timespec), replace all of the instances in gnc-date.c, and make other
adjustments needed to ensure that the tests pass on a 32-bit system.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22604 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-01 22:42:10 +00:00
John Ralls
f309e0c697 Fix gnc-date and test-gnc-date to pass with MinGW
Special-case MSWin results.

Create a private struct of function pointers so that we can continue to
use the Win32 workaround functions in test-gnc-date.c while we refactor
gnc-date.c to use GDateTime instead of gmtime, localtime, and mktime.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22603 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-01 22:42:00 +00:00
John Ralls
ca249052bb Update Makefile.decl to a newer version that works with MinGW
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22602 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-01 22:41:49 +00:00
John Ralls
c8c00253a9 Set up the modpath correctly for Win32, OSX, and Unix in test-dynload.c
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22601 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-01 22:41:41 +00:00
John Ralls
977ba846f7 Reformat a comment to fit on an 80-col term
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22600 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-01 22:41:26 +00:00
John Ralls
6e55278738 Multi-platform fixes to test-gnc-date.c
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22599 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-01 22:41:16 +00:00
Geert Janssens
47fb3a1b6f Synchronize DOCUMENTERS document with gnucash doc's AUTHORS file
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22582 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-20 14:32:39 +00:00
Geert Janssens
89b65622e1 Fix potential crash with malformed reports
If reports contain an opening <object> tag, but omit the closing tag,
the html string is freed and still used some time later.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22544 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-13 12:32:09 +00:00
Geert Janssens
255d36f9e3 Bug #638971 - Multicolumn report does not show more than one graph
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22542 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-12 22:07:48 +00:00
Geert Janssens
7915166d53 Bug 673193 - Possible Register migration to TreeView
Another update fixing a crash on Windows and Geert's Fedora system

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22541 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-09 14:15:11 +00:00
John Ralls
827eb333c3 Fix automake INCLUDE deprecation warnings
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22539 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-07 03:08:15 +00:00
John Ralls
fd47f981ab Accommodate g_threads changes in GLib-2.32 and later.
Guards older implementation with ifndef HAVE_GLIB_2_32

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22533 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-06 21:34:03 +00:00
Geert Janssens
ab5a701a00 Rewrite misleading comment
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22529 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-05 18:57:51 +00:00
Geert Janssens
5adeaa96fd Small spelling and comment improvements accumulated while working on other stuff
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22519 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-03 11:58:35 +00:00
Geert Janssens
aea7e35ad8 Updated POTFILES.in file
This was updated automatically by running make dist

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22518 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-03 09:22:11 +00:00
Geert Janssens
558099ff7a Add README file to explain the gnucash.rnc Relax NG schema
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22517 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-03 09:21:59 +00:00
Geert Janssens
294a962d5d Bug 680887 - Updated RELAX NG schema for trunk XML file format
Author: Baptiste Carvello <devel@baptiste-carvello.net>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22515 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-03 08:31:36 +00:00
Geert Janssens
15f64e8bc3 Register rewrite - another update
Filter/sort should now work.

Author: Robert Fewell <14ubobit@gmail.com>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22514 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-03 08:20:18 +00:00
John Ralls
dac48014e4 Fix python tests for out-of-source builds
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22512 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-02 22:21:31 +00:00
John Ralls
380c4cba25 Fix backend-dbi tests to run from a separate build directory
Include asserts to fail immediately if either the dbi or xml backends
fail to load.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22511 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-02 22:21:23 +00:00
Geert Janssens
67b2a56855 Change of mind. Use scm instead of vcs.
scm is the modern term. vcs is rather used to refer to archaic systems
such as cvs and older. I wish I remembered this before my previous
commit. Oh well...

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22476 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-01 10:35:34 +00:00
Geert Janssens
27c76eccd5 Minor changes to indicate svn is not the only/primary vcs used.
The code actually has provisions for svn, svk, git and bzr. Only svn and
git are actively used by the core developers though.

This involves changing
- filenames that contained svn while meant for multiple vcs's
- variable and macro names that are relevant for multiple vcs's
- the various locations where the vcs revision info is displayed
  to the user, to mention the actual vcs used instead of standard "svn"

While at the last item, I also changed the text printed when gnucash is
called with the --version parameter, to reuse the translatable string
that is also used for the about dialog. This saves us one string to
translate.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22475 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-31 21:38:49 +00:00
Geert Janssens
46334ab2fb Win32 build - build docs either from git (default) or svn
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22474 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-31 12:14:39 +00:00
John Ralls
d9fb4d3511 Allow SchedXaction to safely handle having g_object_property_set called on
end_date and last_date with invalid GDates.


This happens routinely when those values are empty and are restored from
SQL. Thanks to all warnings being fatal when testing, this caused the dbi
tests to fail.

[BP]

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22465 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:30:56 +00:00
John Ralls
ab0d45a034 Enable and correct all store-and-reload basic tests
Replacing printed errors and "do_test" with proper asserts.

There's a fake do_test to let it compile with the still unfixed but also
unused safe save and version check tests.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22464 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:30:40 +00:00
John Ralls
2bca864ddf Replace in-test setup and teardown with a fixture.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22463 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:30:31 +00:00
John Ralls
6f66fa8993 Remove local log handler and use checked handler from utest-support.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22462 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:30:22 +00:00
John Ralls
f86d4e8a96 Fix dbi-test linking error
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22461 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:30:12 +00:00
John Ralls
07dcde5f50 Load gncmod-backend-xml so that the tests actually run
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22460 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:29:51 +00:00
John Ralls
a1ae191fe2 Try to load libgncmod_foo.dylib if libgncmod_foo.so doesn't exist
Workaround for Darwin similar to what's already in gnc_module_refresh().

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22459 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:29:42 +00:00
John Ralls
a57f38a0d8 [Bug 686830] Non-portable equality test in configure.ac
[BP]

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22458 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:29:32 +00:00
John Ralls
88b325dbfd Fix typo from r22448
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22457 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:29:22 +00:00
Geert Janssens
c639e6b9f1 Add sql drop index test to cover bug #677488
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22451 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-26 08:50:04 +00:00
Geert Janssens
7dfa452b7d Bug #677488 - DROP INDEX missing ON <table>
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22450 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-26 08:49:54 +00:00
Geert Janssens
8573f4576e Add unittests for mysql and postgresql backends
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22449 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-26 08:49:41 +00:00
Geert Janssens
3f5eae6d8e Further register rewrite work.
This patch is an updated patch which I have been fighting with the sort
model on. It allows you to add, delete and modify basic transactions
and splits with the toolbar buttons. Jump and move to blank are
also working.

Visual indication of read only and future transactions are
also implemented.

As before, do not open same account in old and new register.

Tab key works manually but needs more work, cell editable value does not
seem to be reliable which was the way I was going to auto step over
uneditable cells.

There is another problem if you enter the debit/credit value before the
account, you will get an error in the trace file but entries
are recorded, not sure of answer.

New transactions are not added in date order at the moment, this was
going to be done by the sort model or the existing method of reload
register via the commented out watchers in ledger-display.

All the numeric functions are the existing ones from the rewrite and as
such I have not proved they are correct but a basic transaction seems to
work.

Author: Robert Fewell <14ubobit@gmail.com>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22448 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-18 08:15:21 +00:00
Geert Janssens
f6da044a42 Register rewrite: make separate menu item for general ledger based on
new register code.

This should restore the original general ledger which was replaced by
the new register rewrite code.

Author: Robert Fewell <14ubobit@gmail.com>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22447 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-18 07:56:15 +00:00
Christian Stimming
bc34c7b23b Add some initial implementation for international (European) SEPA online transfers.
Needs testing, though - my bank doesn't offer it for me.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22445 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-16 20:06:10 +00:00
Mike Evans
fb6993ef1c Re-indentation of source code.
Done using the following options:

    astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=noneR

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22433 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-02 21:44:56 +00:00
Mike Evans
9cedbe7b43 Fix bug in customer/vendor importer where new customers/vendors
were always created even if one with a matching ID already exists.
The intended behaviour is to update customer or vendor data if
one already exists with a matching ID.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22432 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-02 21:42:22 +00:00
Mike Evans
5d44c421ff Fix typo in regex.
modified:   customer_import/dialog-customer-import-gui.c

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22431 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-02 20:12:49 +00:00
John Ralls
5243631e64 Add Mozilla::CA as CPAN dependency for new F::Q TIAA-CREF module
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22429 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-01 00:58:25 +00:00
Christian Stimming
42a9a15285 Upgrade aqbanking package versions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22428 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-30 19:05:48 +00:00
John Ralls
7d0f95c214 Update to gtkosxapplication version 2
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22427 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-29 18:29:21 +00:00
Geert Janssens
6fe081eefb Move option parsing back into its own function
Since we can't use gtk_init_with_args, it makes more sense to keep the
command line processing in one spot, more or less as it was before.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22426 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-24 19:07:22 +00:00
Geert Janssens
fabd3553be Don't set the log file in gnc_module_init
This should fix the logging to stderr since r22419.
gnc_module_init used to change the log path to stderr.
Presumably this was needed before, as logging used to be initialized
after module initialization. This has now changed, so gnc_module_init
can make use of qoflog settings as chosen by the user (which by default
means logging to gnucash.trace).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22425 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-24 17:06:03 +00:00
Frank H. Ellenberger
7ddef0069b Bug #684719 - Man pages for gnc-fq-* perl scripts
first (static) publishing of the pod extracted man pages
until we have some consense.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22424 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-24 16:42:28 +00:00
Frank H. Ellenberger
381b602f35 Fix [13303] files were renamed, but content not adjusted.
This would produce misguiding man pages - if we would produce them.
Additional were a few typos incomments fixed. 
BP
?

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22423 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-24 10:25:33 +00:00
Christian Stimming
d2b0242b6d Aqbanking plugin: Cache pointer to GncMainWindow each time the plugin command is started.
Hopefully fixes bug#684632.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22419 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-23 19:53:29 +00:00
Geert Janssens
9c9577d961 Small code cleanups in the gnucash-bin code
- Delay gtk_init until really required
- Regroup some initialization functions
- Drop qof_log initialization. gnc_log_init does it as well.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22399 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-19 20:52:22 +00:00