Replace g_list_append by g_list_prepend to increase performance.

To my surprise, this apparently also fixes a memory leak, but I don't know why.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22074 57a11ea4-9604-0410-9ed3-97b8803252fd
Remove the separate "calculation" module and swallow it in app-utils.

Those few source files do not justify an extra loadable module. They are
just compiled-in into app-utils.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22075 57a11ea4-9604-0410-9ed3-97b8803252fd
Prevent wrapping in date column.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22076 57a11ea4-9604-0410-9ed3-97b8803252fd
[Cutecash] Follow-up for r22075: Removal of "calculation" module in CMake.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22078 57a11ea4-9604-0410-9ed3-97b8803252fd
Use correct list iterator instead of list pointer.
(Bug pointed out by Christian Stimming)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22079 57a11ea4-9604-0410-9ed3-97b8803252fd
Fix make dist for Swedish accounts files
Reported by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22080 57a11ea4-9604-0410-9ed3-97b8803252fd
Update POTFILES.in after recent file move.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22081 57a11ea4-9604-0410-9ed3-97b8803252fd
Add some unittest for GncInvoice and posting/unposting an invoice.

I thought this would reproduce the crash when unposting a real invoice
with G_SLICE=always-malloc set. However, apparently this test case isn't
complete enough and does not crash. Maybe one needs to add further GncEntries?

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22082 57a11ea4-9604-0410-9ed3-97b8803252fd
Adapt German account templates to updated tax rate.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22083 57a11ea4-9604-0410-9ed3-97b8803252fd
Bug #672157: New CSV account and transaction exporter

Patch by Robert Fewell:

I have put together a new feature to export the account tree and transactions
to a deliminated file. Both options allow you to select the deliminator and the
use of quotes. Every thing seems to work on the testing I have done but may be
some of the text and the headings in the output might need changing.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22085 57a11ea4-9604-0410-9ed3-97b8803252fd
Bug #672161: New CSV account and transaction importer

Patch by Robert Fewell:

Firstly, this patch allows for the creating and updating accounts based on the CSV file
being imported. New accounts are created if the commodity required exists and
existing accounts are updated for the four fields: code, description, notes and
colour. This can be used for doing bulk updates of these fields and also for
importing the account structure from another file.

The second part is the change of the existing CSV importer to use an assistant
to guide you through the import. Additional features added is the ability to
specify the start and end row to be imported allowing you to jump over a header
or footer or just import a few rows. A currency format option was added which
was requested in another bug to overcome a problem they were having with the
downloaded format from there bank. You can also associate the account name to a
GnuCash account using the 'online_id' kvp, not sure if this is Ok or whether it
should be a different one.

To achieve the above, I split the dialogs used in import_account_matcher and
import_main_matcher into the dialog and the content so I could load the content
into the assistant saving on duplication, hope this makes sense.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22086 57a11ea4-9604-0410-9ed3-97b8803252fd
Bug #672161: Fix double-free error when importer dialog is canceled

Patch by Robert Fewell:

There is an existing problem with the main matcher which can causes the
following errors if you have the relevant account register open:

CRIT <qof> qof_instance_get_editlevel: assertion `QOF_IS_INSTANCE(ptr)' failed

This is caused when you decide to not add all the transactions displayed on the
matcher dialog and then the system trying to delete the temporary transaction
twice. I think this patch comments out the offending lines, if correct I will
provide a patch to remove them.

The error below is only seen when the relevant account register is open and in
the preferences you have double line mode enabled. Not sure how it gets fired,
probably part of the register update process but it is because we do not have a
valid transaction any more.

CRIT <gnc.engine> xaccTransGetVoidReason: assertion `trans' failed

The function concerned is gnc_split_register_get_vnotes_entry and could be
solved by adding the following but not sure if this is a valid fix.

    if(trans == NULL)
        return g_strdup('\0');
    else
        return xaccTransGetVoidReason(trans);

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22087 57a11ea4-9604-0410-9ed3-97b8803252fd
Add some more gitignores.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22088 57a11ea4-9604-0410-9ed3-97b8803252fd
Re-indentation of source code.

As usual, re-indentation was done using astyle-1.24 using the following options:

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

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22089 57a11ea4-9604-0410-9ed3-97b8803252fd
Revert r22083, "Adapt German account templates to updated tax rate."

A pure renaming is not the correct solution, I've been told.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22090 57a11ea4-9604-0410-9ed3-97b8803252fd
Bug #672161: Remove old CSV importer, now replaced by new one.

Patch by Robert Fewell.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22092 57a11ea4-9604-0410-9ed3-97b8803252fd
[Win32 build] Update gwenhywfar/aqbanking versions.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22097 57a11ea4-9604-0410-9ed3-97b8803252fd
Bug #671737: Fix for configure --enable-python --enable-dbi --disable-gui

Patch by Kuang-che Wu.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22099 57a11ea4-9604-0410-9ed3-97b8803252fd
Bug #671444: Remove the warning message about binreloc

Forwarded from debian http://bugs.debian.org/443774

Every time gnucash is started it prints the following message to the console:

 "main: binreloc relocation support was disabled at configure time."

 This unnecessarily worries people who usually take it as warning rather than
 normal informational message.

 It has been reported as especially annoying if gnucash is running
 as cron job because it requires special workaround against sending
 this message over email on each invocation.

 The attached patch suppresses printing the worthless message.

Given the current status of binreloc we're unlikely to use it so there is no
need to remind that it was disabled (which is default).

Thanks.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22100 57a11ea4-9604-0410-9ed3-97b8803252fd
Bug #486658: [win32] Cannot use period on decimal keypad in my locale

Patch by Sebastien Alborini:

On win32, gdk never sends GDK_KP_Decimal, so this key cannot be detected.
Work around this by watching the underlying virtual keycode VK_DECIMAL.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22101 57a11ea4-9604-0410-9ed3-97b8803252fd