Commit Graph

19731 Commits

Author SHA1 Message Date
Geert Janssens
92afea59ae Fix guile-json inclusion 2018-05-03 21:19:55 +02:00
Christopher Lam
50e109a9fa guile-json: attempt cmake 2018-05-03 21:13:52 +02:00
Christopher Lam
02cfd017e9 guile-json: upgrade to 4-byte unicode chars. 2018-05-03 21:13:52 +02:00
Christopher Lam
f2337406a3 Modify CMakeLists to test for presence of guile-json 2018-05-03 21:13:52 +02:00
Christopher Lam
52d5f0ba2d guile-json - initial commit 2018-05-03 21:13:52 +02:00
Geert Janssens
85e0a73739 Merge branch 'patch-1' of https://github.com/fkoester/gnucash into maint 2018-05-03 19:07:36 +02:00
Geert Janssens
075c0c4db3 Make 'Printable report' in invoice search dialog work
The code couldn't find a proper main window to attach
the report(s) to.
2018-05-03 19:00:45 +02:00
Geert Janssens
0c6b92959a Get metadata migration working again when upgrading from 2.6 to 3.1
Due to a typo the old GNC_DOT_DIR path was wrong
($HOME.gnucash instead of $HOME/.gnucash)
2018-04-30 20:59:25 +02:00
John Ralls
02266d72d9 Add GNC_DBD_DIR to etc/gnucash/environment for MacOS builds. 2018-04-29 21:48:51 -07:00
John Ralls
6645d93f9a Release GnuCash 3.1 2018-04-28 14:33:04 -07:00
John Ralls
20c59f7c30 Update translations from the Tranlation Project. 2018-04-28 12:38:14 -07:00
Geert Janssens
b761b5a0dc Bug 795377 - Reads and saves Gnucash 2.6.19 XML file, then can't reread it, due to bad date in old file
This commit contains another round of cleanups in the
timespec to time64 conversion. There were a number of
false assumptions that time64 = 0 would be a bad date
in the xml parser. This commit corrects enough of them to
eliminate the bug. Further cleanup is probably advised but
can be done at a later stage.
2018-04-28 12:19:28 +02:00
John Ralls
9c4469d039 Bug 795405 - All Dates in Price Database Off-By-One After 3.0 Upgrade
Also Bug 791825 - Accounting Period dates off by 1.
The DST start/end dates were reversed *and* the DST offset had the wrong
sign in Windows, resulting in the effective timezone always being one to
the west off (i.e. PDT was -9 and PST was -8).
2018-04-27 15:00:28 -07:00
John Ralls
83e993fb80 Add a TimeZoneProvider::dump().
Because gdb can't always see clearly inside m_zone_vector.
2018-04-27 14:16:49 -07:00
John Ralls
f6855bc0f8 Rename zone_vector to m_zone_vector.
To comply with coding spec.
2018-04-27 14:16:49 -07:00
Geert Janssens
3e41bb011d Merge branch 'maint-string-html-escape' of https://github.com/christopherlam/gnucash into maint 2018-04-27 19:06:23 +02:00
Christopher Lam
ecab580351 Remove regex dependency 2018-04-28 00:37:44 +08:00
Christopher Lam
583c0217c4 line&bar chart subtitles are always sanitized
This obviates bug 726449 for consistency
2018-04-28 00:37:44 +08:00
Christopher Lam
ba2c1f6a05 html-jqplot.scm begone!
Remove unused jqplot-escape-string, and move remaining
(gnc:html-[js|css]-include) functions to html-utilities.scm
2018-04-27 22:26:20 +08:00
Christopher Lam
fcb5f64bd5 jqplot-escape-string -> gnc:html-string-sanitize 2018-04-27 22:26:20 +08:00
Geert Janssens
bc5f86ff92 Bug 794941 - Both print icons export to pdf
This affects only Windows and OS X gnucash users. On linux we use
webkit2 for our report handling which has the opposite issue, namely
that both buttons will open the print dialog and it's no longer possible
to effectively export directly to pdf (though one can choose print to file
in the print dialog as a work around). This inverse issue is tracked separately in
https://bugzilla.gnome.org/show_bug.cgi?id=787018
2018-04-27 16:13:34 +02:00
Christopher Lam
ea71c696c2 New function gnc:html-string-sanitize
Function to sanitize strings prior to adding to html report. This is
functionally similar to jqplot-escape-string, and is not locale sensitive.
2018-04-27 22:08:39 +08:00
Geert Janssens
d0fca7794e Merge branch 'fixes3' of https://github.com/Bob-IT/gnucash into maint 2018-04-27 11:33:57 +02:00
Geert Janssens
d69cdaebf2 Add new test source to distribution list 2018-04-27 09:55:58 +02:00
Geert Janssens
74fd6e046b Add a few unit tests for qofquerycore 2018-04-26 23:06:36 +02:00
Geert Janssens
2498f9393d Update make-testfile for new sourcefile locations 2018-04-26 23:06:36 +02:00
Geert Janssens
c71204628d Bug 795031 - 3.0 Crashes on loading when opening 2.6.19 file 2018-04-26 23:06:36 +02:00
Geert Janssens
4aadfbe636 Bug 795040 - GnuCash crashes when searching for a newly created bill 2018-04-26 23:06:35 +02:00
John Ralls
0106a771d0 Bug 795039 - Crash on startup using Technicolor Style sheet in report
Take 3: Catch encoding exceptions from trying to read a string into
Scheme using scm_from_utf8_string and try again using
scm_from_locale_string. If that throws too, give up and log a
warning.
2018-04-26 13:01:00 -07:00
Robert Fewell
196e7ea3af Clean up gnc-budget-view.c of tabs and white space 2018-04-25 14:41:12 +01:00
Robert Fewell
2eb0324b79 Bug 795389 - Hard to see figures in the budget window
The budget view had hard coded black for normal values and dark grey for
other values. Changed this so normal values are reset to default color
and adjusted the grey based on default color for theme.
2018-04-25 14:19:01 +01:00
Robert Fewell
9ce01be36a Bug 795471 - Budget window scrolls edited cell out of site
When editing cells that have been revealed on the right by scrolling the
window snaps back to the left hiding the cell being edited. This may be
due to an underlying gtk issue but these changes fix the issue visually.
2018-04-25 14:13:36 +01:00
John Ralls
c4e5e18c0a Redefine some more buggy Guile string conversions. 2018-04-24 17:57:52 -07:00
Robert Fewell
dacaa93951 Bug 795446 - On Windows there is a blank tip of the day
When the tip_of_the_day.list is created a new line is appended to the
list file and on Windows this causes a blank tip so remove the adding
of the extra line.
2018-04-24 15:52:52 +01:00
John Ralls
c443160737 Fix Travis failures from transcoding fixes. 2018-04-23 14:02:24 -07:00
John Ralls
14c30344c2 Work around libstdc++ weirdness with codecvt destructor. 2018-04-22 16:51:01 -07:00
John Ralls
8e9b13461e Reverse Swig "off-by-one" error.
See
46ab0c252d

Fixes the rest of Bug 795134.
Seems to fix Bug 794965 - Non-English Characters don't display properly
in reports.
2018-04-22 16:09:03 -07:00
John Ralls
35cd165bec Bug 795134 - Improper handle of unicode character in username
Part 1: gnc-filename-utils didn't manage the encoding differences
between Windows (UTF16) and GLib (UTF-8).
2018-04-22 13:55:36 -07:00
Robert Fewell
4e2697b02f Bug 794976 - Wrong context menu on register sheet
Block the entry one and signal for the gnucash one to show.
2018-04-21 19:38:45 +01:00
Robert Fewell
6a37d7f5dd Bug 795132 - Tabs not workings on register sheet with caps-lock
And the keyboard event state with the default mod mask to eliminate the
effect of the caps-lock value.
2018-04-21 19:38:36 +01:00
Robert Fewell
9e784b03e1 Remove white space and tabs from dialog-custom-report.c 2018-04-21 12:56:12 +01:00
Robert Fewell
0eabe766eb On Windows the tooltip for saved reports was incorrect
When the mouse was placed over a saved report description on Windows an
empty tooltip was displayed. Setup the query tooltip callback so it does
 not display a tooltip for description column.
2018-04-21 12:33:22 +01:00
Robert Fewell
ce839588db Bug 794990 - Double click does not work on saved reports
When you double click on the saved report description nothing happens.
This was down to a conflict on a couple of call backs and one of them
was incorrectly setup.
2018-04-21 12:28:49 +01:00
Fabian Köster
07a5485814 Fix syntax 2018-04-19 08:32:46 +02:00
Geert Janssens
451bbd53d9 Fix another date test
This may fix this crasher bug on windows:
https://bugzilla.gnome.org/show_bug.cgi?id=795040
However on linux it only fixes a warning so I can't be sure
until after the next nightly.
2018-04-18 19:07:30 +02:00
John Ralls
cad6bb4272 Bug 792105 - Startup takes several minutes, take two.
First, remove the unnecessary locale push & pop on <CT_TIME64>load.

Second, the registry accesses were caused by using g_win32_get_locale
to convert the Microsoft locale strings to POSIX ones. We don't care
what kind of string we get as long as we can pass it back to setlocale,
so remove that.

Third, gnc_push/pop_locale were used only in backend/dbi in a
very limited way and did much more than was necessary, so
convert them to C++ inlines in gnc-backend-dbi.hpp that does
only what we need them to.
2018-04-17 16:32:45 -07:00
John Ralls
39aecb7610 Bug 794936 - 3.0 does not open previously saved sqlite3 files...
properly - corrupted business data

Turned out to be a pointer/value mismatch between <CT_NUMERIC>load()
and most of the setter functions, so the address was getting set
as the value.
2018-04-17 16:32:44 -07:00
Geert Janssens
3138229cf6 A few whitespace fixups 2018-04-17 23:04:21 +02:00
Geert Janssens
06db9bcf2b Fix crash when loading sql book with posted transactions
This crash started to appear as of commit 80dbb9940b because the sequence
of split loading has changed as a result of the query optimizations.
Invoice transactions get loaded before the general transaction loading happens.
However because of this, when an invoice transaction was encountered again
during general transaction loading, it was (correctly) not created again
AND (incorrectly) not opened for subsequent editing. This caused
an assert to fail when the splits for this transaction are loaded
shortly afterwards. The solution is simply to ensure all transactions
are opened for editing during the general transaction loading call.
2018-04-17 23:04:21 +02:00
fell
51d1bc775d Fix another typo in README 2018-04-17 22:50:17 +02:00