Commit Graph
100 Commits
Author SHA1 Message Date
Andreas Köhler 9d8c3fda58 Free sort_keys as allocated by g_utf8_collate_key in ExtensionInfos.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18618 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-07 02:47:15 +00:00
Andreas Köhler 808c3af3e4 Bug #105669: Improve error handling in gz_thread_func.
Honor errors when reading/writing from/to a compressed file or the pipe
to the main thread.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18598 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-02 00:04:38 +00:00
Andreas Köhler bb471903d5 Bug #606728: Catch errors when opening saved-reports-2.4 for write.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18596 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-01-31 21:12:21 +00:00
Andreas Köhler b61418df3f Use string saved-reports-2.4 in the description of the save report action.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18595 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-01-31 21:12:18 +00:00
Andreas Köhler ef5a742bf1 Bug #105669: Add checks to detect errors on write, especially if there no space left on the disk.
Check the return value of fprintf and use ferror where libraries as
libxml do the write.

The change may not be perfect yet and a review would be nice. Still, it
detects quite a few errors that, without it, slip through and may
destroy valuable data.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18593 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-01-31 18:37:28 +00:00
Andreas Köhler 2a9c2efa03 Fix crash when copying a currently edited transaction in the register.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18591 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-01-31 07:12:59 +00:00
Andreas Köhler ca7a2b4bc7 Bug #607517: Migrate print.glade from glade-2 to glade-3 format.
Patch by Thomas Troesch.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18579 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-01-22 00:08:55 +00:00
Andreas Köhler d9bb98bef8 Bug #607246: In qof_string_number_compare_func, use base 10 and do not allow octals to sneak in.
Otherwise, transaction number 0108 (octal 010=8) will sort before 0107 (octal 0107=71).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18578 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-01-21 22:52:56 +00:00
Andreas Köhler fa81ae0808 Update german translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18577 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-01-21 22:13:09 +00:00
Andreas Köhler 0e7fb6ab9b Bug #607255: Repair Hungarian report main menu, by Attila Nagy.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18576 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-01-20 23:39:32 +00:00
Andreas Köhler 4619a7b38c Revert r17966 and use Glade-2 again.
At the moment all major distributions feature Glade-3 which tends to
save a lot of lines less compared to Glade-2 because it does not define
properties whose values equal the default ones specified by Gtk+.
Unfortunately though, only very recent versions of Glade, v3.5.3+,
address the following two issues:

(1) GtkTable attachments are written in different order each times,
rendering diffs unusable.
(2) Currently we depend on the ability to use a name multiple times in a
single glade file and only newer versions allow to have uniqueness be
applied to each top-level widget.

Sorry for the confusion.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17967 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-02 21:15:41 +00:00
Andreas Köhler 47ede669f2 Re-save glade files from Glade 3, remove util/glade-fixup.
Glade 3 does not save properties with default values anymore.  This
reduces patch sizes when Glade-3/Gtk+ is used with varying versions and
also avoids warnings about properties unknown to older Gtk+ versions.

The version Glade 3 used is 3.4.5.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17966 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-01 19:13:14 +00:00
Andreas Köhler ea478541e9 Bug #572107: Use fallback string for OFX account types when matching to GnuCash accounts.
Without the fallback, NULL is printf'ed which crashes GnuCash on
Windows.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17965 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-26 22:12:51 +00:00
Andreas Köhler 3c9603f501 Add ChangeLog.2008 to dist.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17951 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-24 00:12:15 +00:00
Andreas Köhler 8ff8256b03 [Win32] Update EXTRA_DIST.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17948 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-23 20:19:03 +00:00
Andreas Köhler f3592f34da Bug #571220: [Win32] Unset SCHEME_LIBRARY_PATH environment variable.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17921 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-15 17:23:16 +00:00
Andreas Köhler 4daacc16c8 Bug #435642: Correct r17853 about editing results of a find.
1. create a transaction that has two or more splits in the same account
2. open a register on that account that is in either "Basic Ledger" or
   "Auto-Split Ledger" mode
3. change some transaction other than the one with multiple splits in this
   register
4. click on the second or succeeding occurrence of the transaction with
   multiple splits in this register

This will put the cursor on the first occurrence of the transaction instead of
the one you clicked on.

Patch by Mike Alexander.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17920 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-15 17:23:08 +00:00
Andreas Köhler 3b8fc6c0a6 Bug #571161: Fix r17036 and free every column type only once.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17900 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-14 19:05:29 +00:00
Andreas Köhler 1449197182 Add missing encoding information to the french business account template files.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17899 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-14 19:05:17 +00:00
Andreas Köhler 041af0cde6 Update copyright year in about dialog.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17898 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-14 16:46:57 +00:00
Andreas Köhler b400b1b59e Bug #570894: Fix an else clause in budget->guid.
Scheme is not common lisp, so rather use 'else', t might be unbound.
Found by Forest Bond.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17885 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-09 00:18:00 +00:00
Andreas Köhler a0eb2e89ae [Win32] Bug #542382: Assign .gnucash file name extension to GnuCash.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17884 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-08 14:56:16 +00:00
Andreas Köhler 0f1d97b4b6 Bug #462148: Fix multi-page printing on Win32 by using gtk_html_print_operation_run().
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17883 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-08 14:06:28 +00:00
Andreas Köhler 3db749b2e9 [Win32] Update gtkhtml to version 3.24.2.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17882 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-08 13:13:48 +00:00
Andreas Köhler 7cbdac8fa0 [Win32] Rename *.bat to *.cmd.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17881 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-08 13:02:56 +00:00
Andreas Köhler 526ee85f93 Bug #566352: Remove printf("%s", NULL) in xaccTransSetDateInternal() when val=={-1,0}.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17836 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-18 23:43:02 +00:00
Andreas Köhler 5e77b501b4 Do not determine and waste memory for {base,dir}name when sqlite3 driver cannot be loaded.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17835 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-18 22:57:34 +00:00
Andreas Köhler 575645f032 Bail out when opening a non-existing file as sqlite3.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17834 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-18 22:51:32 +00:00
Andreas Köhler 3f05768191 Bug #526775: Remove printf("%s", NULL) in generic importer as called from ofx.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17832 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-18 21:50:03 +00:00
Andreas Köhler 3558853ed5 Budget report improvements.
* Moves budget-related reports to a "Budget" sub-menu.
* Implements a Budget Balance Sheet report.  This is a projected future balance
  sheet using budget data.
* Adds Budget Income Statement and Budget Profit & Loss reports.  These are
  projected future IS/PNL reports using budget data.

Patch by Forest Bond.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17829 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-18 17:19:08 +00:00
Andreas Köhler d56a868a42 Fix line endings in README-it.win32-bin.txt.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17827 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-18 16:31:10 +00:00
Andreas Köhler 495d9c9d00 Correct the encoding of README-it.win32-bin.txt.
Patch by Cristian Marchi
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17826 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-18 16:09:13 +00:00
Andreas Köhler 91bd0663a3 Remove a unused import and struct.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17825 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-18 16:09:05 +00:00
Andreas Köhler 90b9c43266 [Win32] Update online banking libraries.
New versions: gwenhywfar 3.6.0, ktoblzcheck 1.20, aqbanking 3.8.1.  Fix path to
xmlmerge.  Fix aqbanking backend list when compiling without qt (untested
though).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17815 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-13 02:14:00 +00:00
Andreas Köhler 73992d8cc9 Fix currency replacements.
While loading an xml file, do not look up an internal commodity and modify that,
but rather work on a copy.  When inserting the commodity, apply the same
replacements as in gnc_commodity_table_lookup().

This change should not be necessary on branches/2.2 but it might not do any
harm.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17814 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-11 21:00:54 +00:00
Andreas Köhler cda274944e Initialize GError in qof_log_parse_log_config().
This avoids a crash when the log configuration is not valid.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17813 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-11 20:23:12 +00:00
Andreas Köhler e6ebfd4e13 Do not lookup private data twice when copying commodity mnemonic.
Note that mnemonics are not copied on branches/2.2.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17812 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-11 19:25:41 +00:00
Andreas Köhler 3382092929 [Win32] Provide a bare variant of make_install.sh.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17811 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-11 18:47:34 +00:00
Andreas Köhler c6237d13fb [Win32] Minor cleanup.
* Relinking is really fast now, no need for a hack anymore
* Move the fix of the gnucash script into make_install()
* GnuCash does not install into lib/locale/ anymore
* Remove invalid LIBXML2_DIR from PATH

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17810 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-11 18:38:40 +00:00
Andreas Köhler bd5834cff0 [Win32] Remove a few obsolete comments.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17809 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-11 15:55:33 +00:00
Andreas Köhler 20df0c9a02 SVN-Ignore Eclipse CDT metadata files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17808 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-11 15:49:57 +00:00
Andreas Köhler 64f0fae322 [Win32] Whitespace change.
Re-add a removed space character, no need for regressions ;-)
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17807 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-11 15:45:31 +00:00
Andreas Köhler 43b5ae90f1 [Win32] Update a whole bunch of packages.
* MinGW tools
* Autotools (ac 2.60, am 1.10.2, lt 2.2.6a)
  - libtool feels faster, needs confirmation
  - compiling ac needs a newer m4 version, add that
* Gnome
  - intltool needs a newer perl, so upgrade to activeperl 5.10
  - new libpng, separated into libpng and libpng-dev
  - newly packaged zlib (zlib-dev as well), no dlltool'ing anymore
  - remove libgnomeprint (cf. goffice), gtkprint finally seems to work
    -> goodbye mirrored printouts
* libxslt
  - not the newest because that will be moved to oldreleases/ soon
* openssl
  - watch for libeay32.dll in your Windows folder, it might be too old,
    better you remove it completely
* gmp
  - untested, no BP needed (yet)
* gnutls
  - untested, no BP needed (yet)
* swig
* pcre
* libgsf, goffice
  - goffice does not use libgnomeprint anymore, new patch necessary,
    grab gtk-doc.m4 from gtk-doc tarball instead of patching goffice
  - install htmlhelp earlier and add flags to link to it
* svn
  - includes an own libeay32.dll, may conflict with openssl/bin/libeay32.dll

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17806 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-11 15:37:26 +00:00
Andreas Köhler fccd8b189f Bug #567174: Restrict commodity mnemonic updates (like NIS to ILS) to iso currencies only.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17805 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-11 12:46:57 +00:00
Andreas Köhler 435ddd4fa5 Remove trailing commas in --enable-{debug,ref-counts-dump}.
Those commas will be interpreted as commands and warnings printed out.  Also,
put square brackets around the strings describing the corresponding autoconf
definitions to save them from possible substitions.

Noticed by Kevin HaleBoyes.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17803 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-06 18:37:48 +00:00
Andreas Köhler 8c648d911b Add Italian translation of Win32 installer by Cristian Marchi.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17800 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-05 10:40:33 +00:00
Andreas Köhler a5a43acb1c Sort translations in gnucash.iss.in by language code.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17798 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-05 10:18:03 +00:00
Andreas Köhler 7506663f91 Use = instead of := for GNC_TEST_DEPS and TESTS_ENVIRONMENT.
Both variables are only evaluated once away.  Even worse, when used as
simply-expanded variables, the gnc-test-env script is called multiple times,
because of make re-reading the Makefile when called by make in the check-am
target.  Those variable definitions are not portable and thus automake spit
warnings.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17797 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-05 09:51:33 +00:00
Andreas Köhler f61fca01d1 Add ChangeLog.2008.
Used branches:
- aqbanking3
- csv-import
- reshuffle-modules
- deprecated-cleanup
- gobject-engine-dev-warlord
- remove-group2
- sx-cleanup


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17794 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-02 10:46:27 +00:00
Andreas Köhler ce1b5d7b44 Bug #566198: Add Slovak koruna to EURO support.
Patch from Herbert Thoma.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17792 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-02 10:32:47 +00:00
Andreas Köhler 4d80cc8d03 Svn-Ignore *.tar.bz2 and *.tar.lzma files in the top-level directory.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17790 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-01 18:17:56 +00:00
Andreas Köhler e4cd1cdd60 Add a make rule for gnucash_core_c.py.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17789 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-31 20:42:29 +00:00
Andreas Köhler 45e652f1f2 Add dist-bzip2 to dist.
Automake-1.10 also supports dist-lzma but adding it to AM_INIT_AUTOMAKE
would require us to assume Automake 1.10 which might not yet be
available on each developer os.  When dist'ing I will probably add a
short line to the dist target to tar up the same directory instead of
running dist-lzma manually.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17788 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-31 20:41:15 +00:00
Andreas Köhler ded37fbe7e Beautify python-bindings/Makefile.am.
* Remove gnucash_core.i from _SOURCES, because automake probably does not use it
  anyway.
* Put flags into separate lines.
* Add gnucash_core.c to maintainer-clean target and wrap it in
  BUILDING_FROM_SVN, so that timestamps in tarballs do not try to regenerate it.
* Add example_scripts/*.py, tests/*.py and *.i to EXTRA_DIST.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17787 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-31 20:06:14 +00:00
Andreas Köhler a8b49ec984 Add python-bindings/gnucash_core.c to po/POTFILES.in.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17786 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-31 19:13:50 +00:00
Andreas Köhler bfd2260d51 Ignore some generated files in accounts/.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17785 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-31 18:53:15 +00:00
Andreas Köhler ad23fcfa5a Win32: Install italian documentation.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17778 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-15 23:55:47 +00:00
Andreas Köhler edf665855e Update latest stable version.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17776 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-14 07:47:18 +00:00
Andreas Köhler 968975adb8 Win32: In dist.sh, cp redirect.exe from installation directory instead of build dir.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17771 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-14 03:10:54 +00:00
Andreas Köhler 957fab389d Put gnc_print_session_fontsel_cb() inside #ifndef GTKHTML_USES_GTKPRINT.
This resolves a compilation error about GtkButton*.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17745 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-01 22:10:40 +00:00
Andreas Köhler 7a6eee68e3 Win32: LT_PROG_RC seems to be internal as well, use AC_CHECK_TOOL instead.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17621 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-05 22:14:42 +00:00
Andreas Köhler 9a20ff377d Win32: Add AC_LIBTOOL_WIN32_DLL to libdbi.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17618 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-05 17:15:49 +00:00
Andreas Köhler 89e5ea2bc8 Win32: Replace AC_LIBTOOL_RC by LT_PROG_RC in aqbanking's configure.ac file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17617 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-05 17:08:50 +00:00
Andreas Köhler 6e70b91430 Win32: Improve cross-compiling by making aclocal fail less often and adding a few ${HOST_XCOMPILE}.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17616 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-05 16:55:19 +00:00
Andreas Köhler d88730e816 Win32: Untabify install.sh.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17615 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-05 13:49:48 +00:00
Andreas Köhler 7f879614fe Win32: Improve cross-compiling of aqbanking.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17614 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-05 13:48:57 +00:00
Andreas Köhler 0c84bd20a4 Win32: Add initial support for compiling against AqBanking v3.
Patch from Shawn Faucher with little modifications.
This still needs a lot of testing and improvements still.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17612 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-30 21:50:11 +00:00
Andreas Köhler 235db3e5a1 Bug #531871: Add a page setup dialog.
Save the page setup in a static variable in print-session.c and use it when
initializing a GtkPrintOperation.  Add gnc_ui_page_setup() and offer access to
it from a File > Pa_ge Setup... menu entry.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17611 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-28 15:32:02 +00:00
Andreas Köhler b8aeba4079 Unite report and check print settings.
If Gtk+ includes GtkPrint support, i.e. HAVE_GTK_2_10 is defined, and GtkHTML
uses it, i.e. GTKHTML_USES_GTKPRINT, then we currently save and restore print
settings in two different locations, namely static variables in gnc-html.c and
dialog-print-check.c.

Instead, add the function gnc_print_operation_{save,restore}_print_settings() to
print-session.[ch] to have a unique global location for them.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17610 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-28 15:31:50 +00:00
Andreas Köhler 374231d301 Update latest stable version.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17609 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-28 15:31:39 +00:00
Andreas Köhler 39d6cf985f Win32: Ship the correct redirect.exe.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17592 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-26 02:46:09 +00:00
Andreas Köhler 36ec2ece9c Win32: Make intltool-merge usable.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17590 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-25 23:21:50 +00:00
Andreas Köhler cb5b3ab59c Bug #539947: Replace __FUNCTION__ by G_STRFUNC.
Patch from Halton Huo.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17585 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-21 15:18:50 +00:00
Andreas Köhler cc11148399 Further update .gitignore.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17572 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-19 17:43:09 +00:00
Andreas Köhler 4861002965 Update .gitignore.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17571 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-19 17:35:48 +00:00
Andreas Köhler 886f9f669b Do not treat -Wstrict-aliasing warnings as errors in files using G_LOCK.
See http://bugzilla.gnome.org/show_bug.cgi?id=316221 for information why G_LOCK
breaks strict-aliasing.  GCC 4.2 introduced diagnostic pragmas and the error
seems to be most prominent on GCC >= 4.3, so a compilation with -Werror should
succeed now on most systems, at least on those it worked on before.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17567 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-19 16:25:57 +00:00
Andreas Köhler f0cb946f0c Add a variable initialization to bal_accountinfo_cb().
That initialization is not strictly necessary, because best_time is used only if
best is non-NULL and but both variables are set in the same block.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17566 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-19 16:09:23 +00:00
Andreas Köhler 9fb68915e1 In some files, do not disable -Waddress completely but keep it as warning instead.
surely avoids problems with -Werror in those files, but "warning" will
make sure that the warnings are still showed, but not treated as errors.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17565 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-19 16:09:12 +00:00
Andreas Köhler f47e84116d Add new source files to POTFILES.in.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17557 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-19 02:14:45 +00:00
Andreas Köhler dd1fe84980 In price and commodity tree views, restore gconf settings after initialization.
Previously, gconf settings like sort column and order for price and commodity
dialogs were read in while creating the main tree view objects themselves,
i.e. before a model has been set.  In this early stage of initialization, these
properties cannot always be set and are ignored subsequently.

Instead, apply the properties after the view has been built and set default
sorting column only if no column has been found in gconf.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17535 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-17 04:17:43 +00:00
Andreas Köhler 44a07ec81c Optimize gnc_numeric_check() by G_LIKELY-fying that the denominator is non-zero.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17534 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-16 23:00:01 +00:00
Andreas Köhler 609533e88d When printing negative quotients, use a minus between the integer and fraction part.
Previously: print g_n_c(-4, 3) => "-1 + 1/3", now "-1 - 1/3".
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17533 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-16 22:59:52 +00:00
Andreas Köhler 96e3da5b76 UTF-8-ize AUTHORS.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17532 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-16 14:05:12 +00:00
Andreas Köhler 0a83e50de8 Correct amount print infos in transfer dialogs.
When initializing an exchange rate dialog, the debit and credit amounts
are not printed with the correct print info, as they are not set at all.

When changing the debit account, the debit amount is not printed with
the correct print info, as it is set after the amount has been updated.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17531 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-16 13:25:39 +00:00
Andreas Köhler d9bba3325a Bug #506265: Hide the right-most register column by unsetting the sample text.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17530 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-16 00:57:08 +00:00
Andreas Köhler 9bec639663 Correct specified numbers of columns of AP/AR and STOCK/CURRENCY registers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17529 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-16 00:57:00 +00:00
Andreas Köhler 8c50c35016 Hide the sx from txn dialog und show it only when the txn is valid.
There is no reason for popping up a window under a modal error dialog and close
it once the user acknowledged the error.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17528 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-15 18:24:48 +00:00
Andreas Köhler d7cad46659 Negate amount in exchange rate dialog when swapping accounts.
This is the case when entering an amount for a split with an account whose base
commodity equals the register's one, but differs from the transaction currency.
Then, debit and credit accounts in the transfer dialog are swapped, so the
amount should be negated as well.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17527 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-15 17:36:59 +00:00
Andreas Köhler afdb73a911 In check_one_price_date(), replace an strcmp() by safe_strcmp().
When there is no source string set on a price, do not crash on it.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17526 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-15 13:13:57 +00:00
Andreas Köhler dff8d7b22d Correctly set price sources in price editor dialog by reading it from the gui.
On trunk, the price tied to a price editor dialog is not initialized with a
source string anymore, so correctly read it from the gui before
committing the price.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17525 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-15 13:13:48 +00:00
Andreas Köhler d8c11a7c02 Bug #549595, #552306: Correct retval of gnc_int_link_or_make_backup(), add ENOSYS and ENOTSUP.
The return value of link(2) on files residing on sshfs will be ENOSYS, on
network hfsplus file systems on mac ENOTSUP, so add them to the list of those
errnos that trigger copy_file as fallback in gnc_int_link_or_make_backup() or
are allowed in gnc_file_be_get_file_lock() showing that hardlinks are not
supported.

To avoid silent data loss in the case of an unexpected errno in
gnc_int_link_or_make_backup(), correctly set the backend error.

Patches from Micha Lenk and Boris Zbarsky.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17524 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-15 13:13:40 +00:00
Andreas Köhler a80da3764d Win32: Always try to install Date-Manip and as fallback DateManip.
It seems that the PPM repositories for ActivePerl v5.6 and v5.8 have been
changed so that DateManip cannot be found anymore.  Keep it for second try
nonetheless.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17504 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-13 14:45:41 +00:00
Andreas Köhler 693f93c0f4 Treat AB_Job_StatusPending as a good status, do not ask the user to repeat.
According to Martin Preuss a lot of banks set the status of a
transaction job to pending, signifying that they accepted the job but
have not yet executed it.  This also means that we cannot detect whether
the account is actually overdrafted.

Instead, ignore the return value of AB_Banking_ExecuteJobs() (it will
almost always be 0) and only check the job's status against
AB_Job_StatusFinished and AB_Job_StatusPending.  If the status is
different, ask the user whether he wants to repeat, as usual.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17502 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-11 06:58:23 +00:00
Andreas Köhler 18676dd579 Bug #506873, Win32: Add support for Finance-Quote with ActivePerl 5.10.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17499 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-10 16:16:50 +00:00
Andreas Köhler 10f0a34355 Bug #539962: Remove return value from some void functions.
Patch from Halton Huo.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17496 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-06 17:22:36 +00:00
Andreas Köhler 64720faaa1 Bug #548601: Do not import unawaited zero balances from aqbanking.
Check whether an unawaited balance is zero and simply ignore it in this case.
Unawaited here means that the user asked the application to fetch transactions,
issue a transaction or anything else not resembling the fetching of account
balances.

Patch from Micha Lenk.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17495 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-06 17:21:00 +00:00
Andreas Köhler 641625844e Bug #540148: Allow building against libgoffice-0.8, i.e. goffice >= v0.7.0.
Patch from Halton Huo.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17494 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-06 17:20:52 +00:00
Andreas Köhler ad9d3c7747 Bug #546064: Make gnucash.desktop survive a desktop entry specification 1.0 verification.
Patch from Saïvann Carignan.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17492 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-03 20:43:17 +00:00
Andreas Köhler 0f1b50c2d4 Fix the i18n of the first and last string in the list of tips of the day.
Add a call to g_strstrip() on the tips to remove unwanted whitespace.
The first and last item should appear translated now.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17485 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-01 20:44:51 +00:00
Andreas Köhler a2f05a3eae Bug #526313: Add currency Venezuelan Bolivar Fuerte (VEF).
It will replace the Venezuelan Bolivar (VEB) in 2008.
Patch from Frank H. Ellenberger.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17482 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-08-31 04:20:22 +00:00