Commit Graph

11841 Commits

Author SHA1 Message Date
Phil Longstaff
9017cbf593 Disable radio buttons for access types (sqlite3/mysql/pgsql) which don't have a qof backend
registered.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17979 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-07 17:46:25 +00:00
Phil Longstaff
cf19b319e3 Don't create qof backends for uri types where there is no libdbi driver installed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17978 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-07 17:36:13 +00:00
Phil Longstaff
f20bbd373d In File Access dialog, sqlite3 is default format, so make db fields
insensitive when dialog opened.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17977 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-07 00:46:16 +00:00
Phil Longstaff
bcf974bd11 1) Add new dialog-file-access which combines the standard GTK file selection widget with
the database selection fields from the old database connection dialog.  If --enable-dbi
is specified at configuration time, this dialog is used instead of the file open and
save-as dialogs.
2) Prompt to create a mysql db if it doesn't exist.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17976 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-06 22:43:07 +00:00
Phil Longstaff
dea5a1c388 Handle integer values returned as string GValues (mysql does this for bigint
values).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17975 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-06 21:02:10 +00:00
Phil Longstaff
a9116066f4 1) Update table version number so that tables aren't re-updated each time (update won't hurt, but
is not needed)
2) Don't free memory too soon


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17974 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-05 15:33:40 +00:00
Phil Longstaff
e0f50e0589 Update business table version numbers
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17973 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-05 15:28:44 +00:00
Andrew Sackville-West
ad7e8d3876 refactor saved-reports-2.4 migration to eliminate duplicate code and
fix the report template renderer name reference.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17972 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-05 01:05:24 +00:00
Charles Day
5456ef6eba Business ledger: Don't leave the account cell if the user chooses not to create a new account when prompted. This allows any typo to be quickly fixed. Previously the account cell text was blanked and focus moved to the next cell.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17971 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-04 15:31:22 +00:00
Charles Day
69379901ca Register: Fix an unbalanced ENTER().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17970 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-03 22:48:18 +00:00
Charles Day
7014c66c6f Bug #343217: Register: Don't leave the account cell if the user chooses not to create a new account when prompted. This allows any typo to be quickly fixed. Previously the account cell text was blanked and focus moved to the next cell.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17969 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-03 19:02:09 +00:00
Andrew Sackville-West
522afc3085 update email address for Polish \"last translator\"
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17968 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-02 23:58:48 +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
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