Commit Graph

15902 Commits

Author SHA1 Message Date
Geert Janssens
1d76256f92 Reapply "Fix typo in test-engine-kvp-properties."
This reverts commit c475b9f8c7545e1f4dc3b1e0a3b9b6b217a30719.
2014-05-07 18:32:49 +02:00
Geert Janssens
49a5909ff2 Fixes necessary to marry private-kvp branch with c++ work 2014-05-07 18:32:48 +02:00
Geert Janssens
45cb5504f3 Merge branch 'private-kvp' into master again
This was done by branching right before the original merge
and redoing a clean merge of the private-kvp branch again.

This result was then cherry-picked onto master with
git cherry-pick <merge-commit> -m 1

It was done like this because git merge would consider
the private-kvp branch already merged even after a revert
(see git-revert man page) and won't allow to merge a
second time on the same branch.

Resolved conflicts:
	README.dependencies
	src/app-utils/gnc-sx-instance-model.c
	src/engine/cap-gains.c
	src/engine/test/Makefile.am
	src/gnome/assistant-hierarchy.c
	src/import-export/import-match-map.c
	src/import-export/import-utilities.c
	src/import-export/ofx/gnc-ofx-kvp.c
	src/libqof/qof/qofbook.cpp
	src/libqof/qof/qofinstance-p.h
	src/libqof/qof/qofinstance.cpp
	src/libqof/qof/test/test-kvp_frame.c
	src/report/report-gnome/gnc-plugin-page-report.c
2014-05-07 18:32:47 +02:00
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
Mike Alexander
e818c21aa0 Merge branch 'maint' 2014-05-05 16:32:02 -04:00
Mike Alexander
7f746724fe Don't nest AC_MSG_CHECKING calls, it produces confuing output. 2014-05-05 16:30:30 -04: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
Mike Alexander
8c21aff5e1 Better test for conflict between optimization and FORTIFY_SOURCE 2014-05-02 18:07:43 -04:00
John Ralls
8cb391b308 Better test for conflict between optimization and FORTIFY_SOURCE 2014-05-02 14:02:24 -07:00
Herbert Muehlenberurger
ac9a6ae606 Fix typo in test-engine-kvp-properties. 2014-05-02 07:19:41 -07:00
Geert Janssens
fb09e8d985 Merge branch 'maint'
* Add two new Devanagari script languages: Bodo and Dogri
* Only add _FORTIFY_SOURCE directive if optimized compilation is detected
2014-05-02 16:02:19 +02:00
Geert Janssens
ca48086287 Add _FORTIFY_SOURCE directive only when compiling with optimization enabled 2014-05-02 15:55:48 +02: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
Jeff Earickson
08c59b58d9 The Dogri language in Devanagari Script. 2014-04-30 16:19:40 +02:00
Jeff Earickson
9ab3cccadf Addition of the Dogri language (doi) to LINGUAS 2014-04-30 16:19:39 +02:00
Jeff Earickson
ef5356942d Addition of the Bodo language translation file, in Devanagari script 2014-04-30 16:19:39 +02:00
Jeff Earickson
7b16320f25 Addition of the Bodo language (brx) in Devanagari Script. 2014-04-30 16:17:03 +02: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
8784b94491 Merge branch 'maint'
Revert error on warning default when building from scm
2014-04-28 18:45:18 +02:00
Geert Janssens
c4bbd14587 Revert error on warning default when building from svn 2014-04-28 18:44:46 +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
Gary Bilkus
06e7199bda Win32: Fix configure.ac to cope with new gcc not understanding no-undefined flag 2014-04-28 14:57:38 +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
4ec1f6b724 Fix code that customizes parameters for specific gcc versions
to agree with the comments.
2014-04-27 16:25:51 -04:00
Mike Alexander
c2c246ccf8 Bug 729001: Fix a minor typo affecting the profile option in the previous commit 2014-04-26 20:20:32 -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