Commit Graph

11750 Commits

Author SHA1 Message Date
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
Christian Stimming
e23c2ebc25 Bug #339027: Reconcile window displays the date, too
This patch adds an additional label statement date to the box below the Credits
section.

Patch by C. Ernst
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17820 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-14 19:59:59 +00:00
Christian Stimming
0368e6fdda Bug #565721: Fix untranslated report names in multicolumn report
Report names are passed through the _() macro before they are stored to the
tree list.

Patch by C. Ernst.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17819 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-14 19:59:53 +00:00
Christian Stimming
8cad2f514e Bug #564209: Improved debuggability for module loading
gnucash-2.2.7 doesn't (IMHO) log enough (any?) information about failures to
load optional modules. It was a bit of work to debug a recent problem (#564033)
and I ended up tweaking gnc_module_load_common() a bit to coax the error
messages out. I slightly reorganized the code in this function to accomplish
two things:

1. Make the logic clearer to someone new to the code (i.e., me)
2. If an optional module is found, log any errors in loading it

I tried to maintain the original spirit of not squawking too much about unfound
optional modules while still generating messages about legitimate problems.

Patch by G. Paul Ziemba.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17818 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-14 19:59:46 +00:00
Christian Stimming
3fe13a6733 Bug #566567: [Win32] Do not touch .scm-links on windows - always copy scm files
.scm files must be copied on windows because linking won't work.

Note: existing build directories will be fixed only after make clean.

Patch by C. Ernst.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17817 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-14 19:59:38 +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
Phil Longstaff
3614a48858 1) Fix bug where deleting an account wouldn't delete the account in the db
2) Remove unused local variable


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17802 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-05 15:36:31 +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
Phil Longstaff
a6f9a6381c Add check that account != NULL when inserting lot
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17796 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-04 03:14:46 +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
Phil Longstaff
333c9a68ec When loading a budget, set the recurrence so that it has the correct date info.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17791 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-01 23:12:38 +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
Christian Stimming
2c97097037 Fix typo (incomplete sentence) as pointed out by Bob Lewis.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17784 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-28 20:30:02 +00:00
Christian Stimming
ea7c0f21bb Bug #563565: Reconcile Window: Add new action for balancing entry
Add a new action "Balance" to reconcile window. It is only sensitive if the
difference is != 0.
If activated, it creates a new transaction in the account register to adjust
the difference. The corresponding account defaults to the orphan account.
Jump to the new transaction in the register window.

Patch by C. Ernst.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17782 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-20 21:21:47 +00:00
Christian Stimming
7baf9f5c75 Bug #564928: Fix segfault when closing a invoice tab (r17747 regression)
This reverts one hunk of r17747: It's not necessary because the hash
table keys are freed up in gnucash_sheet_cleer_styles.

Patch by Jonathan Kamens.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17781 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-20 21:16:23 +00:00
Phil Longstaff
c8e30f6b6b Fix Bug 559772 – SQL backend not non-ascii-safe
Sqlite3 uses utf8 encoding for all char fields, so it is non-ascii-safe.  
For postgresql, the default encoding can be set on a per-db basis.  
Since the database is not created by gnucash (the tables are, but not 
the database), it is for the user to set utf8 encoding when the database 
is created.  For mysql, a default encoding can be set on a per-db, 
per-table or per-field basis.  Since there are char fields which do not 
need to be utf8 (e.g. guids), encoding is set on a per-field basis.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17780 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-20 03:06:17 +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
Christian Stimming
6d146440b6 Fix test whose compile broke with r17725.
Sorry for that.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17777 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-14 21:12:42 +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
Christian Stimming
3e33c77dad Bug #564033: Fix undefined WEXITSTATUS on FreeBSD
Patch by G. Paul Ziemba.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17765 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-10 21:13:05 +00:00
Andrew Sackville-West
03f528d3c6 implement customizable invoice title in all three invoices
where previously the user had to hand edit scheme files to change
"Invoice" to "Tax Invoice" and the like, there is now an option to
enter a custom string. This string will override the word "Invoice"
(or "Bill" and "Expense Voucher") in all locations in the report.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17764 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-09 23:50:04 +00:00
Andrew Sackville-West
c32d9b75ef clean up a really ugly piece of scheme code
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17763 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-08 22:57:23 +00:00
Phil Longstaff
9cc57ed6b8 Fix #559771 – user and password shown in menu in the clear
In gnc_history_generate_label() and gnc_main_window_generate_title(), replace
the username and password with an equal-length string of asterisks.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17760 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-07 22:13:44 +00:00
Phil Longstaff
60afa42460 Commit r17686 "Bug 559783 - SQL-related menu entry only when
--enable-dbi is given" introduced a Gtk critical warning because an 
action was removed from the compilation, but still referenced from the 
ui xml file.  This commit changes this so that the database connection 
action is still created, but the add_to_window() function is overriden 
to set that action insensitive if --enable-dbi is not given.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17759 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-07 16:58:10 +00:00
Christian Stimming
5c25bb7557 Revert r17730 and re-apply r17725, "Bug #106401: Add SX weekend occurence to be shifted to weekdays"
This time, the XML element handler for the "weekend adjustment" is optional
so that old files without that element are read without error.

Patch (well, kind of) by Simon Arlott.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17751 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-06 21:54:16 +00:00
Christian Stimming
9301a8cd9c Revert accidental removal of the since-last-run druid pop-up window in r17725.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17750 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-06 21:54:08 +00:00
Christian Stimming
c98d539cd8 Bug #563160: Fix confusing order of "Column span" and "Row span"
The report options of multicolumn reports show in the Selected Reports the
attributes "Rows" and "Cols". If choose "Size" to edit these values a dialog
opens with "Column span" and "Row span" - just the other way around. I always
confuse this. This patch swaps the order in the dialog.

Patch by C.Ernst.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17749 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-06 21:33:28 +00:00
Christian Stimming
832751c8c2 Bug #348860: Fix missing sub-report options when saving a multicolumn report
When writing the report options to saved-reports the embedded reports (if any
exist) are stored too. This is important for saving multicolumn reports.

Patch by C. Ernst.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17748 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-06 21:33:21 +00:00
Christian Stimming
f83575371e Bug #563273: Fix crash on startup
Here's the problem... GnuCash uses a hash table with int keys to store
dimensions, and the key value is the number of rows in the dimension being
stored.  The problem is that this key value is stored in a static int inside
the style_get_key function, which means that the key always has the same
address, and the hash functions in glib2 store the *address*, not the *value*
of the key.  Unfortunately, the hash algorithm changed some time between
glib2-2.18.2 and glib2-2.19.2, such that there's a hash conflict between the
key value 1 and the key value 2, but since the value of the already hashed key
was swiped out from under it when style_get_key "created" a new key, the hash
table entry that's already there matches even when it shouldn't have.

The attached patch cleans this up by allocating memory to hold the key when
inserting it into the hash table.  It also changes the way the hash table is
created to ensure that the memory is freed when a hash table entry or hash
table is destroyed.  And while I was at it, I made the same fix for the cursors
hash table, which was also leaking memory when entries were removed or the
table was destroyed.

Patch by Jonathan Kamens.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17747 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-06 21:33:14 +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