Commit Graph

15447 Commits

Author SHA1 Message Date
John Ralls
0418280e04 Ensure that all qof_instance_get target variables are initialized
If qof_instance_get doesn't complete, perhaps because it was passed an invalid instance, the target variable might otherwise be used uninitialized.
2013-11-05 13:19:04 -08:00
John Ralls
ecee2d963f Update dependencies and versions 2013-11-05 11:32:12 -08:00
John Ralls
d0be95f2c6 Assert on entry to qof_instance_set() if editlevel is 0
To ensure that change will be forwarded to the backend
2013-11-04 11:41:14 -08:00
John Ralls
291a3abfa3 Add a call to $TESTS_ENVIRONMENT in tests:
So that g_tester-based tests can be set up to use Guile.
2013-11-04 11:40:16 -08:00
John Ralls
6515a8e858 Contain getting slots for gnc_options_db inside QofBook
Turn gnc_option_db_save_to_kvp and …load_from_kvp into callbacks passed to qof_book_(save|load)_options to avoid adding a dependency between qofbook and option-utils.
2013-11-04 11:40:15 -08:00
John Ralls
38b3961bb8 replace qof_book_kvp_changed with qof_instance_set_dirty 2013-11-04 11:40:13 -08:00
John Ralls
7faed65401 Remove QofBook KVP access for several options
Replace them with GObject Properties. Note that the setters for these properties are handled in Scheme and still use the raw KVP access.
2013-11-04 11:40:12 -08:00
John Ralls
36eba1ac42 Replace business kvp access with properties. 2013-11-04 11:36:33 -08:00
John Ralls
272655b60c Replace Import KVP access with properties. 2013-11-04 11:35:07 -08:00
John Ralls
3a51d704c8 Replace usage of SX kvp access with SX properties. 2013-11-04 11:35:06 -08:00
John Ralls
db1b2caebf Add GncOwner kvp properties
export-pdf-dir, invoice-last-posted-account, payment-last-account

Since GncOwner isn't in the class hierarchy these properties must be implemented exactly alike in the three classes where they're appropriate.
2013-11-04 11:35:05 -08:00
John Ralls
2ff48a66a5 Add Transaction kvp properties from-sched-xaction, online-id. 2013-11-04 11:35:04 -08:00
John Ralls
d2d0f6290a Add several kvp properties to Account
online-id, ofd-income-account, an-account-id, an-bank-code, ab-account-uid, ab-trans-retrieval
2013-11-04 11:35:03 -08:00
John Ralls
e5e386d6b1 Add kvp properties sx-credit-numeric, sx-debit-numeric, ax-shares, and online-id to Split. 2013-11-04 11:35:03 -08:00
John Ralls
c9493cfcf5 Transfer the account-matching functions from import-export to Account
I would have preferred to separate the data-retrieval from the actual
bayesian routines but I didn't think that I could do so without losing
backwards data compatibility.
2013-11-04 11:35:03 -08:00
John Ralls
fadc3d7082 Use online-id properties of Account, Transaction, & Split 2013-11-04 11:35:01 -08:00
John Ralls
72c7f1d101 Remove QofBook functions qof_book_get_slots & qof_book_kvp_changed 2013-11-04 11:35:01 -08:00
John Ralls
11aae5b2b9 Move features hash creation to QofBook
So that the KVP stays private.
2013-11-04 11:35:01 -08:00
John Ralls
48df2d3569 New Split properties sx-account, sx-credit-formula, sx-debit-formula 2013-11-04 11:35:00 -08:00
John Ralls
dc8e9c0b00 Remove kvp-data as a QofInstance object property
Not actually used anywhere, but yet another back door into private data.
2013-11-04 11:34:59 -08:00
John Ralls
4f5e228903 Replace xaccSplitCopy with xaccSplitCopyNoKvp and xaccSplitCopyKvp
Provides ability to copy a split without its KVP instead of having to directly access the KVP and replace it with an empty frame.
2013-11-04 11:34:59 -08:00
John Ralls
c748f33b92 Add xaccTransCopyNoKvm
To avoid having to expose the KVM pointer in order to clear it.
Also rename xaccDupeTransaction to dupe_trans and make it static,
because it doesn't commit the new transaction.
2013-11-04 11:32:28 -08:00
John Ralls
f29ea9fbe9 Add properties "invoice", "owner-type", and "owner-guid"
Replaces direct KVP access.
2013-11-04 11:32:26 -08:00
John Ralls
e3e21b602b Add Transaction property "invoice"
Replaces direct KVP access.
2013-11-04 11:32:26 -08:00
John Ralls
8d9d51a7f7 Add Account property "lot-next-id"
Replaces direct kvp access.
2013-11-04 11:32:25 -08:00
John Ralls
9ea9896620 Remove convenience functions which return a pointer to kvm_data. 2013-11-04 11:32:24 -08:00
John Ralls
e58bcaac34 Move the capital gains account creation from cap-gains.c to Account.c
Functions which change an object's state should be members of the objects class.
2013-11-04 11:32:20 -08:00
John Ralls
9b51d42e7e Remove unused functions. 2013-11-04 11:32:20 -08:00
John Ralls
d5a9cda70e Wrap g_object_get/set with qof_instance_get/set
qof_instance_set marks dirty and will eventually also begin and commit edits.
2013-11-04 11:32:19 -08:00
John Ralls
1f3fbf4b52 Make most QofInstance functions private.
Import qofinstance-p.h into QofInstance child classes.
2013-11-04 11:32:18 -08:00
John Ralls
4a4b18059e Provide for easily moving GValues to and from KVP
So that all interaction with KVP is easily handled with properties.
Includes convenience functions for simplifying set/get property
functions.
2013-11-04 11:32:16 -08:00
John Ralls
c2d93cbe4c Fix broken win32 build
MinGW doesn't think a gsize is an unsigned long.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23377 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-03 23:28:50 +00:00
John Ralls
1d31c33af4 Release 2.5.7
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23374 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-03 00:04:48 +00:00
John Ralls
e607c93519 Clean out log files from testing the xml backend.
Otherwise make distcheck whines about them.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23373 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-03 00:04:38 +00:00
John Ralls
839bd61560 Remove dialog-preferences2.c from POTFILES.in
Left over from r23331

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23372 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-02 20:51:33 +00:00
John Ralls
53c139ce0b Skip this test when building with clang
See comment in test-scm-query-strings.c

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23371 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-02 20:51:17 +00:00
John Ralls
4431cdc67b replace static string filename with generated one
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23370 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-02 20:51:04 +00:00
John Ralls
47928126e0 Remove dead code.
Unsigned ints can't be less than 0.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23369 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-02 20:50:56 +00:00
John Ralls
fcd7b2ffbb Replace deprecated tempnam with a constant.
Fixes complaint in 10.9 Mac headers. Even though we were just using tempnam for convenience, we don't really need a randomized filename anyway.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23368 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-02 20:50:44 +00:00
John Ralls
d14473b707 Mac: Don't append 'Gnucash' to the 'Preferences' menu item title.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23367 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-02 20:50:32 +00:00
John Ralls
f20857edde Avoid critical error from trying to access an uninitialized GHash.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23366 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-02 20:50:23 +00:00
John Ralls
c0bd3d03cd Fix incorrect Enum type specifier
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23365 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-02 20:49:48 +00:00
Geert Janssens
c42c13da47 Update POTFILES.in after my recent work
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23364 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-31 22:26:20 +00:00
Geert Janssens
014eeee0b6 Bug 693244 - View Lots window enhancements
Fix remaining issue: sort on date now works

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23363 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-31 22:26:00 +00:00
Geert Janssens
f3c5b93b1e Improve visual appearance and sorting of Invoice payment dialog
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23362 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-31 22:25:03 +00:00
Geert Janssens
fed6a1e5b7 Bug 687478 - Bills due reminder doesn't work well with credit notes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23361 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-31 22:24:27 +00:00
Geert Janssens
d1cdf9a163 Bug 687479 - Automatic invoice/payment matching on posting an invoice should be an optional feature
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23360 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-31 22:24:05 +00:00
Geert Janssens
1f7549c082 Code reindentation in tests
Command used: astyle --indent=spaces=4 --brackets=break --suffix=none <files>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23359 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-31 22:23:28 +00:00
Geert Janssens
440f732edd Code reindentation
Command used: astyle --indent=spaces=4 --brackets=break --suffix=none <files>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23358 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-31 22:22:53 +00:00
Geert Janssens
cba8e9aef2 Remove now unused parameter
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23357 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-30 14:54:43 +00:00