Commit Graph

18664 Commits

Author SHA1 Message Date
John Ralls
77ab04100c Bug 789297 - Account Tax Related Information - 2.7.0 is not backwards compatible 2017-10-26 16:23:44 -07:00
John Ralls
82dec9a231 Fix NEWS errors reported by Chris Lam 2017-10-26 15:51:18 -07:00
Geert Janssens
1a8cf021d2 Add GNUCASH_BUILD_ID cmake/configure variable which allows packagers to define their own
For example distros may want to set the version of their package source (rpm, dpkg,...) rather than
our git id.
2017-10-26 22:48:50 +02:00
Geert Janssens
67ae241075 Use alternative revision retrieval if git describe is failing
This happens primarily on Travis. It looks like the shallow clone it makes is missing
tags. So if git describe fails, fall back to only the short commit hash (as we used to do
previously everywhere).
2017-10-26 22:48:50 +02:00
Geert Janssens
998f1185c1 Improve about dialog layout and contents
The main changes are
- group version and build information together
- increase size of application icon and name
- A more complete copyright notice (including 'Copyright' and 'GnuCash')

The default gtk provided about dialog widget won't allow for much more customization than that...

Note the build info has been condensed and is now based on 'git describe' which
returns a very concise, yet complete description of a commit starting from
the last tag that precedes it. This info will also be used anywhere else the build info
was displayed from now on, simplifying translations as well.
2017-10-26 22:48:50 +02:00
John Ralls
4be826055a Revert "Partial fix to exception crashes on Windows."
This reverts commit 4746054635.
a300384 is the correct fix for this problem.
2017-10-26 13:08:36 -07:00
John Ralls
a300304354 Fix Windows crash-on-throw.
Thanks to https://stackoverflow.com/questions/46688200/mixing-c-and-c-causing-exceptions-to-terminate
2017-10-26 12:38:50 -07:00
John Ralls
4746054635 Partial fix to exception crashes on Windows.
There seems to be more than one problem that causes the exception handler ("catch") to
get lost on Windows:
* Throwing from a constructor called from a member function of another object of the same
class. That's fixed here for the GncNumeric string constructor, but there's at least one other
instance I'm still working on in GncNumeric::to_decimal.
* Hidden memory allocation in a stack-allocated object like std::string, std::istringstream,
or boost::smatch: The throw causes the object to go out of scope which calls its destructor
and in that case the catch reference is either lost or never compiled in.

This change ifdefs out the creation of detailed exception messages on Windows to avoid
the destruction of the std::istringstream and its attached std::string, creates a series of
helper functions to ensure that the boost::smatch is in a non-throwing scope, and puts the
computed values directly into the member variables instead of delegating the construction
to a temporary and then copying out the values. The last item is more correct anyway, as
C++ constructor delegation is supposed to happen in the member initialization part rather
than the function body.
With these changes the exceptions from the GncNumeric string constructor are handled
correctly.
2017-10-26 11:33:50 -07:00
Geert Janssens
df8ceadb63 Fix building from dist tarball with python bindings enabled 2017-10-26 14:05:17 +02:00
Geert Janssens
7cb59aafe8 Fix disabling src docs build on Windows
As it was written it also prevented building source docs on other platforms, causing
cmake warnings and a failed dist build.
2017-10-26 14:05:17 +02:00
Geert Janssens
1238b9d8cd Prevent gcc from searching config.h in the current directory
This will avoid a ninja-build from picking up a config.h generated by the autotools build
(in the root build directory). Picking up the wrong config.h may lead to all kinds of
subtle issues if the autotools run was done with different options than the cmake run.
2017-10-26 14:05:17 +02:00
Geert Janssens
67d011b86f Add gnucash.1 man page as proper dependency for dist
This file is now generated using CONFIGURE_FILE, so cmake will pick it
up as a generated file and do proper dependency resolution based on it.
2017-10-26 14:05:17 +02:00
Carwyn Nelson
7b1d298bc6 Little refactor of account.c 2017-10-25 09:43:13 +02:00
Geert Janssens
444eb1c28e Improve gnc_numeric_boxed_copy_func based on discussion in PR#145
In essence
- guard against nullptr dereferencing
- free returned values
2017-10-23 23:05:49 +02:00
Bob-IT
53ef0c5be9 Save button active on every load
The gnc_numeric numval was being set with a valid numeric and hence was always different to the parsed amount.
2017-10-23 23:05:49 +02:00
John Ralls
70a37a24ae Don't build design docs on Windows.
To avoid requiring texinfo.
2017-10-22 11:51:48 -07:00
John Ralls
7b44e280e8 Add fixed bugs for 2.7.0 to NEWS. 2017-10-20 15:37:06 -07:00
Geert Janssens
b83be1b8c6 Remove configure option --enable-locale-specific-tax and make gnucash always behave as if it was set 2017-10-20 20:50:33 +02:00
Jose Marino
968956d271 fix reconcile dialog always showing ending balance of zero
The reconcile account dialog always displays a value of 0.00 as the
Ending Balance, regardless of account and statement date.
This is caused by function xaccAccountGetReconcilePostponeBalance
returning the wrong value, returning TRUE when it should return FALSE,
and setting balance to the default {0,1}.

The code uses bal.denom!=0 as an indicator that a valid balance was
received in variable v. However, bal is initialized to {0,1}
making the test always true even when we didn't receive a valid
value in variable v.
Thus, this function returns TRUE with *balance={0,1} when no valid
balance was found in "reconcile-info/postpone/balance".

This patch fixes the function to return FALSE if v doesn't hold
a valid value or if bal.denom is set to 0.
2017-10-19 11:29:19 -06:00
John Ralls
5e7c2106ec Re-release 2.7.0 2017-10-17 09:32:03 -07:00
John Ralls
b6d3c0e581 Disable inclusion of transaction text for OFX transactions in the description.
OFX puts rather useless information in the transaction text that makes
the description overly long with the important part at the end.
2017-10-16 14:28:43 -07:00
John Ralls
25e3b22a4a Use file:/// when constructing a tempdir uri on Windows.
g_get_temp_dir doesn't provide the leading /.
2017-10-16 14:27:15 -07:00
John Ralls
99a2888868 Merge branch 'unstable-fix-spelling' of https://github.com/christopherlam/gnucash into unstable 2017-10-16 12:04:17 -07:00
John Ralls
2184cb347a Install libgwengui-gtk3.dll on Windows. 2017-10-16 11:22:55 -07:00
Christopher Lam
4c007f8b28 Fix spelling insensative->insensitive 2017-10-16 21:00:26 +08:00
John Ralls
91a2ee4525 [MacOS] Change CMake installed names to absolute paths from @rpath/...
gtk-mac-bundler can't access the executable's rpath list so it can't
follow dependencies if they're not in $install_dir/lib from @rpath.
Autotools always sets absolute path install names so this should have no
adverse affects on other Mac builds.
2017-10-15 13:22:29 -07:00
John Ralls
14eafd8a1d Build Macs with WebKit1.
Temporarily, I hope. Javascript isn't working with WebKit-2.16 but does
with WebKit 2.4.11 and I don't want to hold up releasing 2.7.0 any longer.
2017-10-14 14:31:23 -07:00
John Ralls
281421d5cf HTML: Connect to load-failed and resource-load signals.
Useful diagnostics for reports not drawing.
2017-10-14 14:31:23 -07:00
John Ralls
97b09b5df5 Fix html temp-file URI.
The file path must start with a / anyway so we were getting URIs that
looked like "file:////foo/bar".
2017-10-14 14:31:23 -07:00
fell
789a28dd5b reapply commit 3cdac65 on the new dialog-ab-pref and remove obsolete
section from dialog-ab.gade
2017-10-11 22:38:09 +02:00
fell
9e92cc2ec6 Merge branch 'maint' into unstable 2017-10-06 20:42:22 +02:00
fell
3cdac65d49 Use descriptions from gschema as tooltips in Preferences Aqbanking
Inspired by Finster
https://lists.gnucash.org/logs/2017/10/05.html#T06:42:38
2017-10-06 20:17:12 +02:00
Geert Janssens
9472e9347f Replace ambiguous 'scm' with 'vcs' in macro name
Pointed out by Frank.
2017-10-05 22:47:11 +02:00
Geert Janssens
29b862adc2 Use different format specifier to make older git versions happy 2017-10-05 17:02:32 +02:00
Geert Janssens
545b24fe97 Merge branch maint into unstable
Resolved conflicts:
2017-10-05 16:29:36 +02:00
Geert Janssens
e56cb37813 Additional changes to use commit date rather than build date
This effectively replaces the use of GNUCASH_BUILD_DATE with GNUCASH_SCM_REV_DATE.
The latter is extracted from the current commit if building from some kind of vcs
(currently only works correctly for svn and git). The info extracted while building
from vcs is then also added to the dist tarball so it's available when building
from tarball as well (via the file libgnucash/core-utils/gnc-vcs-info.h).

The same date is also used to set the date in gnucash' man page document.
A practical detail: I have changed the substitution variables in the man page template
from @- -@ to ${} so we could leverage CONFIGURE_FILE in cmake. The necessary
related adjustments have also been made to Makefile.am's substitution rules.
2017-10-05 15:51:55 +02:00
Geert Janssens
7650d76582 Fix gnucash.pot generation from cmake build.
intltool-update should be run from the build directory, not the source directory.
If run from the source directory it will omit glade messages that have a context attribute
so all msgids with a msgctxt comment would be missing.
2017-10-03 22:56:35 +02:00
Geert Janssens
42ac55e03a Stop testing GObject's handling of invalid parameters 2017-10-03 22:56:35 +02:00
fell
a28f27a0e1 Fix a typo in gir error message 2017-10-03 19:42:32 +02:00
fell
de06e90022 Readd the missing glade msgctx strings to ru.po
4670 translated messages, 10 fuzzy translations, 5 untranslated
messages.
Follow up of PR #209.
2017-10-02 21:37:09 +02:00
fell
03552a43e9 ru.po: Minor improvements of the header after PR #209
4670 translated messages, 2 fuzzy translations, 5 untranslated messages.
2017-10-02 10:25:52 +02:00
ashed
9497ebc501 Update Russian Translation with the 2.6.18 gnucash.pot. 2017-10-01 15:29:29 -07:00
Bernhard M. Wiedemann
f9b2d8ce57 Allow to export the last commit's date
for use in release tarballs
to give users a hint on how old their software is.
2017-10-01 22:31:58 +02:00
Ashed
2450b8bc5b Updated and polished Russian Translation. 2017-09-29 11:22:44 -07:00
Robert Fewell
6b7a06fbdb Change the item_edit blanking rectangle position and size
Change the position and size of the cell blanking with background colour
 so it does not affect the red and blue horizontal lines.
2017-09-29 10:52:08 +01:00
Robert Fewell
6ffe5ec77c Change the position of the double row on the cursor
Move the double row down to bottom border + 1 line so it does not
interfere with the cursor cells.
2017-09-29 10:39:44 +01:00
Robert Fewell
948ba2ba04 Instead of removing a css class, wrap the change in save/restore 2017-09-29 10:27:53 +01:00
Robert Fewell
df1953a44a Rename internal CSS class prefix for the register to 'register-' 2017-09-29 10:25:18 +01:00
Robert Fewell
549b07ae66 Remove the CSS for a dark theme Register
It was decided that this is not required as the user can choose the
required colours by setting the preference to not use the built in
register colours.
2017-09-29 10:15:06 +01:00
Robert Fewell
3f17ed6c93 Fix typo in comment 2017-09-29 09:58:42 +01:00