Commit Graph

12212 Commits

Author SHA1 Message Date
Geert Janssens
ae98012d0c Revert "Merge branch 'private-kvp'"
This reverts commit f49983b801, reversing
changes made to acad5a02bb.
2014-05-07 18:32:44 +02:00
Geert Janssens
9d40512307 Revert "Fix typo in test-engine-kvp-properties."
This reverts commit ac9a6ae606.
2014-05-07 18:32:40 +02:00
Geert Janssens
ec9bd763d1 Revert "Fix bad qof_instance crash in dialog-payments"
This reverts commit edd85faad7.
2014-05-07 18:32:40 +02:00
Geert Janssens
79d168080d Merge branch 'maint'
* Proper fix for libdbi crash
* Saved report configuration dialog resize issues
2014-05-05 21:57:44 +02:00
Colin
cc41107269 Fix crash initialising dbi if libdbi version >= 0.9.0 2014-05-05 21:56:57 +02:00
Geert Janssens
d702c92d63 Revert "Fix crash with libdib >= 0.9.0"
This reverts commit 6695f6c660.
2014-05-05 21:55:24 +02:00
Geert Janssens
9e5d613257 Bug 729497 - Saved Report Configuration selection window resize 2014-05-05 21:42:40 +02:00
Geert Janssens
cd79b1f5de Merge branch 'maint'
* Mike Alexander's Better test for conflict between optimization and FORTIFY_SOURCE
* Fix crash with libdbi >= 0.9.0, based on a patch by Colin Law
2014-05-05 17:57:03 +02:00
Geert Janssens
6695f6c660 Fix crash with libdib >= 0.9.0
Based on a patch provided by Colin Law
2014-05-05 17:55:30 +02:00
John Ralls
edd85faad7 Fix bad qof_instance crash in dialog-payments
Just needed one more level of indirection.
Thanks to Mike Alexander for the report.
2014-05-04 09:53:03 -07:00
Herbert Muehlenberurger
ac9a6ae606 Fix typo in test-engine-kvp-properties. 2014-05-02 07:19:41 -07:00
John Ralls
f49983b801 Merge branch 'private-kvp'
Makes all kvp operations private to the object of which the kvp is
a member. Access from outside of the object is accomplished via
GObject Properties. A convenience function, qof_instance_set(),
is provided that wraps g_object_set and marks dirty the instance
so that it will be saved. It is still necessary to wrap calls in
begin_edit/commit to accomplish the save to the SQL backend. A
like-named wrapper, qof_instance_get() is provided to balance the API.

Note that the XML backend retains direct access to KVP to avoid having
to catalog the properties.
2014-05-01 14:57:34 -07:00
John Ralls
207bedb4c5 Replace direct kvp access with qof_book_save_options. 2014-05-01 13:04:22 -07:00
John Ralls
6dfb7febf2 Convert capital gains kvp access to properties on Split. 2014-05-01 13:02:07 -07:00
Christian Stimming
acad5a02bb CMake: Remove removed file from cmake, so that it compiles fine again. 2014-04-28 21:24:17 +02:00
Geert Janssens
5bc2503199 Merge branch 'maint'
* Minor fixes to make gnucash build under mingw/gcc 4.8.x
2014-04-28 14:58:52 +02:00
Gary Bilkus
7c0074a1c3 Win32: Fix problem in gnc-split-reg.h caused by earlier preprocessor define of DELETE etc 2014-04-28 14:58:01 +02:00
John Ralls
dbe336cd7c C++: Rename files to be compiled as C++ to foo.cpp
Instead of using the -xc++ compiler flag.
2014-04-27 16:32:58 -07:00
John Ralls
82df074771 C++ Windows fixes.
Particularly interesting is src/engine/Makefile.am: Having a mention of
target_CFLAGS in an #if disables automatic use AM_CFLAGS even when the
#if condition is false.
2014-04-27 15:06:02 -07:00
Mike Alexander
c7f4bf7fed Merge branch 'maint'
* Fix price quotes after removal of yahoo-get-historical-quotes
  * calculate num-columns-required in transaction report correctly
  * Additional changes to column calculations in transaction report
  * Fix configure.ac code that customizes parameters for specific gcc versions
  * Ignore SIGTTOU while importing Python console class.
2014-04-27 16:42:34 -04:00
Mike Alexander
2c4463e77f Ignore SIGTTOU while importing Python console class.
Importing it causes this signal to be sent and if GnuCash is running
in the background it hangs.
2014-04-27 16:26:13 -04:00
Mike Alexander
b32f9d2a59 Bug 729001: fix more build errors related to partial switch to C++. 2014-04-26 19:38:35 -04:00
John Ralls
72e0b29a09 Revert addition of lprofiler
Inadvertent leak into previous changeset.
2014-04-26 12:37:55 -07:00
John Ralls
8f0098015c C++: Fix compiler warnings from gcc-4.7 on Fedora 18
Clang didn't complain about these. Note that some of the error messages
for not-clang in the tests have changed, likely due to C++. The old ones
are commented out for now; this part needs to be tested with an older
gcc to see if it's consistent.
2014-04-26 11:10:56 -07:00
John Ralls
403a0f6c42 Bug 729001 - Work around warnings invalid for C++ 2014-04-26 10:42:11 -07:00
Geert Janssens
fb8018b374 Additional changes to column calculations
- Add some comments to remember why this was done
- Fix one error in the code
2014-04-26 18:27:45 +02:00
Amish
65e8e3b11d calculate num-columns-required correctly
This fix, calculates num-columns-required correctly based on which columns are used/not-used/merged. Earlier code did not consider merged columns.

Effectively with this fix, when you print report, on average it saves 2-3 pages per 12-15 pages.
2014-04-26 17:54:20 +02:00
Geert Janssens
95e12216bf Fix price quotes after removal of yahoo-get-historical-quotes 2014-04-26 11:31:33 +02:00
Mike Alexander
8bbd87fd46 Merge branch 'maint'
*     Use libsecret if available
 *     correction in version number in NEWS history re 2.6.3 and 2.6.2
 *     deletion of duplicate lines in src/engine/gnc-commodity.c
2014-04-25 19:45:28 -04:00
John Ralls
daf4480836 Merge branch 'c++-build'
First merge, libqof only, and no functional changes yet.
2014-04-25 13:42:00 -07:00
John Ralls
bedf00a160 Compile LibQOF as C++
This is a minimal change to get LibQOF and only LibQOF to compile as C++.
There are no functional changes, just casts to satisfy the rather pickier
C++ compiler and wrapping declarations with extern "C" { } to maintain C
mangling so that the libgncmod_qof will work with the rest of the program.

A note about renaming gnc-numeric.c to gnc-numeric.cpp: Dunno if it's a
clang bug, but it wouldn't link test-math with the -xc++ flag; renaming
the one file got around the problem. We'll likely have to do the same for
other test programs and for gnucash-bin.c.
2014-04-25 13:41:11 -07:00
John Ralls
3abf8b47f6 Remove unused partial book handling. 2014-04-25 12:34:08 -07:00
Michalis Kamprianis
c2c72eaaa2 Minor corrections
correction in version number in NEWS history re 2.6.3 and 2.6.2
deletion of duplicate lines in src/engine/gnc-commodity.c

	modified:   NEWS
	modified:   src/engine/gnc-commodity.c
2014-04-25 16:35:44 +02:00
Moritz Lipp
540956546e Use libsecret if available
This patch provides libsecret [1] support to gnucash since gnome-keyring has
been deprecated. It will check for an installed libsecret version and will use
it in favor of gnome-keyring.

Since it is not recommended to use SECRET_SCHEMA_COMPAT_NETWORK for new uses, it
uses its own defined scheme to store the credentials. Therefore passwords that
have been stored in the network schema are migrated to the new schema by trying
to access them with the old schema and storing them again in the new one.
2014-04-24 22:10:53 +02:00
Geert Janssens
e6c36983d4 Merge branch 'maint'
* Bug726449 - Budget Barchart does not show up if running sum is selected
* Add fixed EUR-LVL conversion rate to gnc_euro_rates
* Update Latvian translation
* Add Indian Konkani translation
* Remove unused function yahoo-get-historical-quotes
* Fix handling of kvps for address, entry, job, order and taxtable objects
* Prevent older gnucash versions from loading data files with said kvps
2014-04-24 12:14:59 +02:00
Geert Janssens
171ac3de90 Prevent older gnucash versions from opening a data file if previously unhandled kvps are used
Prior to gnucash 26.4 with kvps for address, entry, job and taxtable objects
were not handled properly (but not in use either).
This patch will prevent any older version of gnucash to open a data file if a newer
version has written any of the above kvps.

A follow up on bug 728841
2014-04-24 12:11:20 +02:00
Michalis Kamprianis
f0e42a005f Bug 728841 - XML backend does not always store KVP slots
add appropriate code for slot handling in the relevant subclasses

	modified:   src/backend/xml/gnc-address-xml-v2.c
	modified:   src/backend/xml/gnc-entry-xml-v2.c
	modified:   src/backend/xml/gnc-job-xml-v2.c
	modified:   src/backend/xml/gnc-order-xml-v2.c
	modified:   src/backend/xml/gnc-tax-table-xml-v2.c
2014-04-24 11:10:55 +02:00
Geert Janssens
25256c1ba7 Remove unused function yahoo-get-historical-quotes
This gets rid of the dependency on guile-www as well
2014-04-24 11:10:55 +02:00
Geert Janssens
f9a93229d2 Add fixed EUR-LVL conversion rate to gnc_euro_rates
This is a follow up on bug 727338
2014-04-23 14:50:58 +02:00
Carsten Rinke
5baa87bf4e Bug726449 - Budget Barchart does not show up if running sum is selected 2014-04-21 11:21:15 +02:00
John Ralls
cf78eecdfa Merge branch 'maint'
* Morritz Lipp's libdbi-0.9.0 compatibility fix
* Morritz Lipp's realloc return value fix
* Re-enable save and enable loading of $GNC_DOT_DIR/accelerator-map on OSX
2014-04-18 12:57:30 -07:00
Moritz Lipp
52c07a545d Correct usage of realloc in gnc_xml_be_get_file_lock
This patch fixes a common mistake where the return value of the function call
is set to the passed buffer and therefore previous allocated memory is lost if
the realloc call fails. Therefore a temporary variable is introduced and the
memory will be freed if the reallocation fails. In addition the return value of
the malloc allocation is checked.
2014-04-18 12:53:26 -07:00
Moritz Lipp
b122141a2c Make compatible to libdbi >= 0.9.0
Several functions of libdbi are now deprecated (e.g.: dbi_conn_new) and have
been replaced with _r functions (e.g.: dbi_conn_new_r) which now require a
dbi_instance passed as a parameter. This patch checks if the version of libdbi
is higher or equal than 0.9.0 and iff so, it uses the new _r functions instead
of the deprecated ones.
2014-04-18 12:53:16 -07:00
John Ralls
b4b097529e Re-enable loading and saving gnucashdotdir/accelerator-home on OSX
Per user request. Permits user to customize the accelerator map and have the result
survive upgrades. Loads gnucashdotdir/accelerator-home if it exists, otherwise loads
share/gnucash/ui/osx_accel_map.
2014-04-18 12:52:40 -07:00
Geert Janssens
096e71cb6a Periodic merge of branch 'maint'
- Replace deprecated g_dirname
2014-04-17 18:24:18 +02:00
Moritz Lipp
4cf991a24c Replace deprecated g_dirname 2014-04-17 18:05:09 +02:00
Dmitry Pavlov
d9628ceae9 Implemented ranged report generation. User can build budget report on selected periods instead on all of them. Not included periods can be "folded" as a columns with summed values. To support report settings saving and range 'types' can be used instead of exact period numbers 2014-04-12 17:24:55 -07:00
Cristian Marchi
52ab2d527d Fix spaces for some strings not correctly picked up by xgettext.scm script. 2014-04-05 14:17:52 +02:00
Cristian Marchi
5bd7d2e73b Bump copyright year 2014-04-05 12:01:00 +02:00
Carsten Rinke
c9b5a81b08 Bug727130 - Crash when newline in Report Title 2014-04-04 20:46:53 +02:00