Commit Graph

20004 Commits

Author SHA1 Message Date
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
Geert Janssens
63fc399c5e Merge branch 'maint' of https://github.com/over9001/gnucash into maint 2018-04-17 20:37:29 +02:00
Ryan
1c97fee76b
Small minor fix
off-by-one spacing and a missing closing paren bothered me.
I decided to do something about it.
:)
This is what being a good citizen of the internet looks like, right?
2018-04-17 14:23:21 -04:00
Geert Janssens
80dbb9940b Fix a couple of warnings introduced by commit 01420adb99
In addition make the code really use an inner join if no additional conditions are set
which gives better performance on at least postgresql
2018-04-17 19:45:39 +02:00
Geert Janssens
87f94abc8d Bug 794916 - Fails to find environment file at startup when installation prefix is '/opt' 2018-04-16 23:25:37 +02:00
John Ralls
4a4e7a9a7b Merge branch 'maint' 2018-04-14 16:45:52 -07:00
John Ralls
5e807a0e18 Merge branch 'maint' into unstable 2018-04-14 16:39:38 -07:00
John Ralls
8a3889d088 Merge Chirs Lam's Bug 795064 - Enable subtotal-only if... into unstable. 2018-04-14 16:31:16 -07:00
Christopher Lam
044583d72f Bug 795064 - Enable subtotal-only if either sortkeys are dates
This will allow 'show subtotals only' if sortkeys are date-types. This
allows, for example, prime-sortkey=date, yearly. sec-sortkey=date,
monthly.
2018-04-15 07:18:17 +08:00
John Ralls
40a266fc62 One more catch-by-value error. 2018-04-14 16:03:04 -07:00
John Ralls
518519654c Merge Bill Nottingham's 'gmock-trial' into unstable. 2018-04-14 15:52:26 -07:00
John Ralls
4ba77f7b09 Remove another gnc_pop_locale(). 2018-04-14 13:11:23 -07:00
John Ralls
a04fd573ef Bug 792105 - Startup takes several minutes
set/get_locale are apparently very expensive on Mingw64, and setting
the C locale for extracting a string is unnecessary.

Unfortunately the released version of libdbi still uses strtod so
setting the C locale *is* still necessary for retrieving floats
and doubles and for passing queries.

Thanks to Mkubat for the diagnosis.
2018-04-14 12:38:04 -07:00
Geert Janssens
4e3bf5a5cb Bug 118391 - Long currency names untranslated
Fix for Win32
2018-04-14 12:38:04 -07:00
John Ralls
f680823dbf Bug 795039 - Crash on startup using Technicolor Style sheet in report
The mingw-w64 toolchain bizarrely substitutes scm_to_locale_string()
for scm_to_utf8_string(). This results in latin1 (yeah, "locale" is
a lie) instead of utf8 which causes an assertion in
g_utf8_collate_key().

Perhaps equally bizarre, the compiler doesn't make the substitution
with scm_to_utf8_stringn(), so use that instead.
2018-04-14 10:18:01 -07:00
John Ralls
01420adb99 Bug 772776 - VERY large queries (over 11000 fields in IN clause) slow...
down GnuCash

Replace with joins or subqueries. Affords a 20% speedup on Windows.
2018-04-14 10:18:01 -07:00
John Ralls
e90a662a20 Use subquery instead of instancevec GncSqlTransBackend::load_all. 2018-04-14 10:18:01 -07:00
John Ralls
b739661171 Remove functions marked G_UNUSED.
More noise reduction.
2018-04-14 10:18:01 -07:00
John Ralls
9b64357427 Remove LOAD_TRANSACTIONS_AS_NEEDED from SQL backend.
We're not ready for that and until we are it's just noise.
2018-04-14 10:18:01 -07:00
John Ralls
e4d0ad9dda Reduce use of gnc_sql_slots_load_for_instancevec. 2018-04-14 10:18:01 -07:00
Geert Janssens
a39ba1672a Merge branch 'unstable-tr-fix' of https://github.com/christopherlam/gnucash into unstable 2018-04-14 18:59:26 +02:00
Geert Janssens
dcfc1280bd Base invoice posted status on the presence of a posted transaction rather than a posted account
Bills and invoices that are posted and subsequently unposted again still store their
posted account internally as a convenience to the user (upon reposting the old
account will be offered by default) so it's not a reliable test for the posted state.
The posted transaction on the other hand is guaranteed to only exist when the invoice is
posted. This should fix a slew of small and perhaps larger side effects, such as
a posted bill still appearing as editable, critical warnings when creating new bills/invoices
and so on.
2018-04-14 18:46:26 +02:00
Geert Janssens
6093e5978f Bug 794767 - Dates default to 01/01/1970 2018-04-14 18:39:18 +02:00
Christopher Lam
8db114658b html-font: add default font family
Windows ships with GTK2 in which the default font styles are named
"Sans" "Sans Bold" "Sans Normal" etc. There is no "Sans" font in
Windows; I vote to add a default "Sans-Serif" font-family which is
valid CSS. This ensures exported reports are shown as intended.
2018-04-15 00:16:34 +08:00
Christopher Lam
1ee2c08306 GSTR: close br tag; add empty lines to empty-report-message
This will be useful for unit testing, and for displaying
gnc:render-options-changed.
2018-04-14 23:47:00 +08:00
Christopher Lam
b02e4a7c14 GSTR: bugfix individual tax on sales should be negated
The GST-on-sales relates to income, therefore should be negated.
2018-04-14 23:47:00 +08:00
Christopher Lam
4acc5a23f5 TR: instead of hand-crafting html-string, use html-table API
Using html-table API seems more robust than hand-crafting HTML.
2018-04-14 23:47:00 +08:00
Christopher Lam
2d9021ca42 TR: catch invalid regex
This commit prevents report crashing when either Account or
Transaction Matcher strings are invalid POSIX regular expressions and
called with make-regexp.
2018-04-14 23:47:00 +08:00
Christopher Lam
d273a3304e TR: convert Reconcile Status Filter to QofQuery
I presume QofQuery based in C is faster than scheme filtering. No
saved-reports incompatibility is expected.
2018-04-14 23:47:00 +08:00
Christopher Lam
73ffcaa81e TR: refactor add-subtotal-row
This commit refactors add-subtotal-row to use a named let. This avoids
set! calls, and is more idiomatic scheme.
2018-04-14 23:47:00 +08:00
Geert Janssens
3a44b368d4 Merge branch 'unstable' of https://github.com/Abschiedsstein/gnucash into unstable 2018-04-14 17:36:09 +02:00