Commit Graph

11828 Commits

Author SHA1 Message Date
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
Charles Day
48c7f72430 Bug #499215, #530819, #551643: Register: Fix transaction pasting, which was fairly broken. Pasting was being committed immediately, the transaction was not checked properly before opening, the blank split was being destroyed while the transaction was left pending, and more. These problems left the register in an inconsistent state that was being noticed in g_assert() calls in several spots. GnuCash would then crash.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17962 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-25 19:10:23 +00:00
Charles Day
575b8ca3d0 Register: White space fixes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17961 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-25 18:20:22 +00:00
Charles Day
5b9b685d4b Register: Fix a bug that appears in basic and auto-split ledger modes when entering a new transaction. Entering multiple splits for the register's account would cause the 2nd though nth splits to be displayed above the new transaction, making them appear to be non-new.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17960 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-25 16:50:30 +00:00
Charles Day
199c0c309d Register: Add debugging to gnc_split_register_changed().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17959 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-25 00:11:01 +00:00
Charles Day
5a7650b0cc Register: Make all account cells right-justified. Previously a mix of left- and right-justification was used.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17958 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-25 00:03:13 +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
Charles Day
18cf9f4e20 Register: Tweak some comments and slightly reorganize the register cleanup code for ease of reading.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17950 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-23 22:56:06 +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
Andrew Sackville-West
a898dca194 Implement a new saved-reports-2.4 file to allow translation of existing saved reports into report-guid enabled versions.
Take note: this change will *hide* any manually hacked saved reports
that make use of the new report-guid. The new saved-reports-2.4 file
will shadow the old saved-reports-2.0 file and will leave those hacked
reports behind. Any pre-existing saved reports that use report-guid will
have to be manually migrated to the new file.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17942 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-20 23:08:39 +00:00
Charles Day
a98bc56de6 Bug #570887: Fix a typo in r17939.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17940 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-20 05:00:08 +00:00
Charles Day
0c09333ce8 Bug #570887: Change the swig type mapping for GUID* so that Scheme can tell the difference between a GUID* that is NULL, and a GUID* pointing to storage containing the "null" GUID. Previously the former case returned SCM_UNDEFINED to Scheme, which would unbind Scheme variables and make crashes. Now SCM_BOOL_F is used instead, and Scheme code can check for a NULL by comparing to #f.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17939 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-20 04:37:28 +00:00
Charles Day
6d1e0b75e1 Register: Add debugging code for the copy and cut operations.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17938 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-20 03:03:05 +00:00
Phil Longstaff
97ae5d8224 Fix 572251: remove extra definitions of write_objects_t structure.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17933 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-18 21:18:07 +00:00
Charles Day
5760020652 Bug #565421: Remove dependency on GTK+ 2.10 in date edit control.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17930 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-17 18:14:04 +00:00
Charles Day
f4f9fed740 Doxygen: Adjust the style of a comment block for consistency and to eliminate a splint warning.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17929 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-17 16:49:52 +00:00
Phil Longstaff
e9929bd401 Fix some splint issues
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17928 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-16 21:30:21 +00:00
Phil Longstaff
905d7551a8 Fix 64 bit integer handling. In an sqlite3 db, column types are basically ignored.
However, libdbi uses the column type name to determine how big it thinks the integer 
value is.  Therefore, change all 64 bit integer values (including num/denom in numeric 
values) to 'bigint'.  Tables will be automatically upgraded when an sqlite3 file is 
opened.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17927 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-16 16:22:18 +00:00
Phil Longstaff
96fea96847 Fix CRIT errors when loading owner info in business objects.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17926 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-16 01:08:57 +00:00
Phil Longstaff
c67b86b470 1) Before saving file contents via save-as, ensure that all data has been loaded. This
doesn't matter for the file backend, but does for the SQL backend, because the SQL backend 
only loads transactions/splits as needed.
2) Partially solve problem where int64 values are loaded incorrectly.  This started because 
num and denom for prices were seen to be limited to 32 bits.  libdbi provides a 
libdbi_result_get_longlong() routine, but unfortunately, on my system (with libdbi 0.8.2-3), 
it seems to have some bugs a) it returns negative values unsigned and b) it seems limited to 
a 32 bit value even when the correct value is in the db.  


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17925 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-15 19:26:38 +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
Phil Longstaff
d2dc3a4915 Rest of r17916 commit (sigh) - gnc_sql_transaction_load_tx_for_account() function
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17919 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-15 14:11:54 +00:00
Charles Day
ac066ecabb Register: Don't set info at declaration; wait until reg is checked.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17918 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-15 00:40:24 +00:00
Charles Day
d81a92fef9 Register: Add a few safety checks to the register loading routines.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17917 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-15 00:38:15 +00:00
Phil Longstaff
aa73788d85 When loading a scheduled transaction, load the transactions associated with it.
Otherwise, the scheduled transaction won't be created.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17916 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-14 23:22:18 +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
Charles Day
bb05a6957c Bug #570166: Update win32 packaging to use GTK version 2.14.7
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17897 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-12 17:00:50 +00:00
Charles Day
c2d0851b5f Engine: Update the documentation of xaccTransDestroy().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17896 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-12 05:47:34 +00:00
Charles Day
94c6d61fdd Register: Fix a memory leak by adding a "commit" step (if needed) when destroying the blank transaction as the register closes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17895 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-12 05:18:14 +00:00
Charles Day
98fe842ae2 Bug 426111: Register: Fix a bug that caused the blank split GUID to be nulled even if the split wasn't actually being committed. This would cause the bottom transaction of the register to be treated like an existing transaction instead of a new one. I've fixed that and reorganized the logic to combine two sections and make it harder to get them out of sync.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17894 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-11 23:07:51 +00:00
Charles Day
1ea8e0f8bf Register: Add one new debugging message and tweak some others.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17893 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-11 22:11:30 +00:00
Charles Day
4c09bec1f9 Register: Another tweak to doxygen documentation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17892 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-11 22:03:39 +00:00
Christian Stimming
1cb6fc32d8 Bug #552275, #434944: Fix generic import skipped transactions
gnc_import_TransInfo_delete() was defined but never called!
This led to a memory leak, and erroneous behaviour.

 Bug 552275 - Cancelling OFX Import Still Adds Entries
 Bug 434944 - Refused transactions from import appear in register

Patch by Alan Jenkins <alan-jenkins@tuffmail.co.uk>
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17891 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-10 21:16:35 +00:00
Christian Stimming
386a42bfe4 Fix typos in comments
Patch by Alan Jenkins.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17890 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-10 21:16:29 +00:00
Christian Stimming
6fa80db27e Bug#139310: Store online_id in split instead of transaction to avoid import conflicts
Affects all users of the generic import: OFX, HBCI and AqBanking.

Suggested by <http://bugzilla.gnome.org/show_bug.cgi?id=139310>.
"
 Assume you have a transaction that transfers money from account 1 to account 2.
 Import an OFX statement from account 1 that matches the transaction.  Then
 import an OFX statement from account 2 that matches the same transaction.
 Because each transaction can only store one online_id, when you import from
 account 1 again it doesn't remember that it's already been imported.

 If online_id was stored in a split slot instead of a transaction slot, it would
 allow tracking the online_id of both accounts without being overwritten.
"

For backwards compatibility, we still check for online_id in transactions.
This is more of a convenience than a critical feature, however.
The compatibility code could be removed in future versions if desired.

Patch by Alan Jenkins <alan-jenkins@tuffmail.co.uk>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17889 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-10 21:16:22 +00:00
Christian Stimming
04797563b9 Correct english in generic-import-design.txt
Fix typos and use of apostrophes.
Also make the status of the document clearer.

Patch by Alan Jenkins.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17888 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-10 21:16:14 +00:00
Rolf Leggewie
d31564dc80 SKR04: sed s/Kap.\ Ges/Kap.Ges/ so that it is the same everywhere
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17887 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-10 08:17:05 +00:00
Rolf Leggewie
d3452fcc1c SKR04: replace some double with single spaces
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17886 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-10 08:10:17 +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
Christian Stimming
f27f419d88 ofx_proc_account() already works. Remove "WRITEME".
Patch by Alan Jenkins.

Signed-off-by: Christian Stimming <stimming@tuhh.de>
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17880 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-07 16:49:13 +00:00
Christian Stimming
5754cb3ae7 Fix use of "=" in if statement where "==" was intended
This fixes the default currency and description in the new account dialog.

Patch by Alan Jenkins.

Signed-off-by: Christian Stimming <stimming@tuhh.de>
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17879 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-07 16:49:07 +00:00
Christian Stimming
59f5711250 Convert source documentation to UTF8
Most of the source tree is UTF8, but there are some latin-1 hangovers.
Apply "iconv --from-code ISO_8859-1" to these files.

This affects bullet point characters in src/optional/xsl/README, and
Benoit Grégoire's name in source files (and hence the Doxygen output).

E.g. it should fix <http://svn.gnucash.org/docs/HEAD/reference.html>
which claims to be UTF8, but encodes Benoit's name in latin-1.

Patch by Alan Jenkins.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17877 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-03 21:19:39 +00:00