Commit Graph

19452 Commits

Author SHA1 Message Date
Christopher Lam
2d983c6703 bugfix gnc_ui_new_account_window
parent -> parent_acct
fixes bug introduced in c76efd656e
2018-03-03 00:26:49 +08:00
Geert Janssens
e4884cdf09 Merge branch 'maint' into unstable
Ignoring changes in obsolete test-flat-bayes.c (was removed before on unstable)
2018-03-01 19:59:34 +01:00
Geert Janssens
cf73c93bdf Bug 792008 - gnucash 2.6.19 fails to build
Replace g_assert_true with g_assert for now
2018-03-01 19:58:07 +01:00
Geert Janssens
13e6880b34 Bug 745941 - Review of po Headers / make pot 2018-03-01 18:31:49 +01:00
Geert Janssens
a64e40dac3 Properly detect git in case of linked worktree 2018-03-01 18:21:38 +01:00
Christopher Lam
546b54c976 TR: Show "Grand Total" only if it has been generated. 2018-03-01 21:23:55 +08:00
Christopher Lam
cb18d3ca42 test-TR: Add dual-column testing 2018-03-01 20:55:17 +08:00
Christopher Lam
4f98391a27 test-TR: unit tests
initial attempt
2018-03-01 20:55:17 +08:00
Christopher Lam
5176850083 TR ENH: Add "Subtotal Summary Grid"
The subtotal summary-grid will tabulate subtotals - prime-sortkey
vertically, sec-sortkey horizontally. This will be useful, for
example, with prime-sortkey = accounts, sec-sortkey = date,
sec-subtotal = monthly... will produce a monthly time series
spreadsheet.

Introduces grid datastructure.

This is a simple list, each element is a vector
(vector row col data).

In the Transaction Report, row and col are defined
as a pair (cons sortvalue subtotal-heading), whereas:
- sortvalue = string/number used to sort the grid headers,
- subtotal-heading = string used as grid header row/col
- data = the gnc-monetary collector.
2018-03-01 20:55:17 +08:00
Geert Janssens
dd0553af6a Merge branch 'scheme-progress-1' of https://github.com/christopherlam/gnucash into unstable 2018-03-01 13:01:29 +01:00
Christopher Lam
8fef1adcc4 date-utilities: bugfix weekly render
This was introduced by 48bdab3.
2018-03-01 12:14:53 +08:00
John Ralls
93f892072c Bug 793947 - Impossible to render printable invoice
gncInvoiceGetID returs a char*, so ~a is indeed the correct code.
Odd that the scheme sprintf used %d to format it.
2018-02-28 19:45:49 -07:00
Christopher Lam
7054cc83bc Bug 793898 - 2.7.4: Incorrect copyright statement in gnucash/report/standard-reports/sx-summary.scm
no copyright claim was intended
2018-03-01 06:40:16 +08:00
Christopher Lam
872aa6b740 TR: change multichoice values from list to symbols
Context: https://wiki.gnucash.org/logs/2018/02/24.html#T05:43:50

Summary: I had formerly set some multichoice values to be a list.
However I think options.scm cannot handle list values. They must be
scheme symbols. It wasn't clear to me during TR refactoring and
development.

The root cause is in options.scm multichoice handling, whereby it's
trying to compare the option value with (eq?); in scheme (eq? (list
"A") (list "A")) is always #f.

06ad55cae9/libgnucash/app-utils/options.scm (L911)
is the relevant old code.
2018-03-01 06:40:16 +08:00
Christopher Lam
90fb712c7f TR: make no-report-data message consistent with initial no-account 2018-03-01 06:40:16 +08:00
Christopher Lam
840e1f8b02 TR: simplify no-account-after-filtering stage 2018-03-01 06:40:16 +08:00
Christopher Lam
d8d552ee8a options.scm: tidy (gnc:render-options-changed)
This small change introduces \n into the HTML render.
2018-03-01 05:30:48 +08:00
Geert Janssens
7da9a3ba58 Merge branch 'reg-item' of https://github.com/Bob-IT/gnucash into unstable 2018-02-28 18:16:10 +01:00
Robert Fewell
8353b5693e With register obscured the sheet kept being redrawn
When the register is obscured by another window, the sheet would get
lot of draw events. This was tracked down to getting the foreground
colour for the item-edit widget for the state GTK_STATE_FLAG_NORMAL.
Changed this to use the value obtained from gtk_widget_get_state_flags.
2018-02-28 16:33:54 +00:00
Geert Janssens
ad1664604f Cleanup namespace usage for boost::locale
In a previous commit I wrongly believed xgettext might not find
our strings if we used the fully namespaced boost::locale::translate or
aliased bl::translate instead of just translate. However that's
wrong, so I have changed the code to always use bl::translate.
2018-02-28 16:50:20 +01:00
Geert Janssens
b71c346ef5 Fix typo: should read 'older version of gettext' rather than 'older version of gnucash' 2018-02-28 16:48:49 +01:00
Geert Janssens
66abe02354 Merge branch 'master' of https://github.com/jeblad/gnucash into unstable 2018-02-28 16:10:00 +01:00
Geert Janssens
fbaa41ac47 Merge branch 'register-pref-update' of https://github.com/Bob-IT/gnucash into unstable 2018-02-28 15:44:59 +01:00
Geert Janssens
c186624160 Rework source directory structure for gschema, gtkbuilder and ui files
There is now a directory for each respective file type directly in the gnucash source directory
(This was already started for gschema files before).

In principle all files of each type should go into these global directories. The only
exception is if such a file belongs to an optional module. In that case the file
remains located inside that module's directory. Currently we have ui, glade and gschema file
exceptions in aqb and ofx importers.
2018-02-28 15:38:30 +01:00
Geert Janssens
f111e5958d Simplify POTFILES.in generation
As part of this also:
- Drop POTFILIES.ignore. Relevant lines have been moved to POTFILES.skip
- Remove skip lines for scm file links. With intltool out of the way these are never picked up any more.
2018-02-28 13:40:20 +01:00
Geert Janssens
c29b9c9cbf Remove autotools-only path exception to find reports
With it we can also remove the hack to find standard reports while running
from the build tree.
2018-02-28 12:08:37 +01:00
Geert Janssens
e7ec3a610d Drop no longer used intltool related variable 2018-02-27 23:00:30 +01:00
Geert Janssens
02c69a7933 Handle situation where gettext 0.19.6 is not available
By default we require gettext 0.19.6 as this is needed to generate a translated version of gnucash.desktop and gnucash.appdata.xml.
However this version is not available on some platforms (most notably our own ubuntu 14.04LTS travis instance).
By setting ALLOW_OLD_GETTEXT=ON, the build configuration falls back to generating untranslated versions of said files instead.
2018-02-27 22:38:27 +01:00
Geert Janssens
ba799feb2a Drop intltool in favour or using modern gettext
This requires at least gettext 0.19.6, and will break our ubuntu 14.04LTS test instance on Travis.
The next commit will work around this.
2018-02-27 22:30:06 +01:00
Geert Janssens
3462abe7ad Bug 793460 - gnucash/import-export/csv-imp/assistant-csv-trans-import.cpp:1941 is impossible to translate 2018-02-27 22:30:06 +01:00
Geert Janssens
72a48c0884 Improve config and app data migration to handle renaming of config<version>.user to config-user.scm on all platforms 2018-02-26 18:58:22 +01:00
John Ralls
06ad55cae9 Fix up some formatting problems and an extra bug in NEWS. 2018-02-24 20:02:43 -08:00
John Ralls
749beb197d Release GnuCash 2.7.5 2018-02-24 15:41:20 -08:00
John Ralls
eb5c33ecdb Distribute strings.scm! 2018-02-24 15:33:22 -08:00
John Ralls
f865aeeff6 Update Slovak and Spanish translations from the Translation Project. 2018-02-24 14:22:38 -08:00
John Ralls
d4476d06b4 Block events while creating scheduled transactions.
Events update the UI, which is slow, and if there are a lot of SXes
because it's an old file that can be significant.
2018-02-24 13:02:50 -08:00
Geert Janssens
10ab87d95c Make travis happy
On older stdlibc++ the default constructor of a stringstream is deleted.
2018-02-24 21:36:39 +01:00
Geert Janssens
61a21d12c6 Look for user editable config files in gnc_userconfig_dir instead of gnc_userdata_dir
At present these are
- log.conf
- config-user.scm (previously config.user-2.0)

Implement one-time migration of these files to the proper directory if they previously exist
Look for a log.conf file in gnc_userconfig_dir instead of gnc_userdata_dir

Note this commit also uses boost::locale::translate for the first time.
We may need to fine-tune our use, but in the current state strings marked
for translation using that function are already picked up for gnucash.pot.
2018-02-24 20:39:26 +01:00
Geert Janssens
beff795130 Stop searching for a config.auto file
It's no longer used in gnucash. The preferences are now handled via gsettings instead.
2018-02-24 20:39:26 +01:00
John Ralls
765c117aac Optimize GncDateTime string constructor.
Turns out the stream facet parser is really slow. Since we have a
well-constrained universe of input formats we don't really need that
overhead. This got a 33% improvement in loading a large SQLite database.
2018-02-24 11:12:13 -08:00
John Ralls
c10bb89547 Delete unused and redundant macro. 2018-02-24 11:12:13 -08:00
John Ralls
c76efd656e Transient-for for Edit/New Account dialog. 2018-02-24 11:12:13 -08:00
John Ralls
36fa8d57bf Transient-for for reconcile information dialog. 2018-02-24 11:12:12 -08:00
Geert Janssens
e186d77a16 Merge branch 'unstable-prepare-SRFI64' of https://github.com/christopherlam/gnucash into unstable 2018-02-23 11:48:42 +01:00
Robert Fewell
cd30578b2f Use the gnc_prefs_get_bool values to update cache values
This way is a safer way to update the cache values in case the settings
changed signal fails to trigger or there is a double trigger and the
cached value gets out of sync with the preference value.
2018-02-23 10:42:47 +00:00
Christopher Lam
f7378e9332 TR & options: upgrade HTML to XHTML
Upgrade <br> tags to <br /> to allow well-formed XML parsing.
2018-02-23 18:19:59 +08:00
Christopher Lam
03e862ec47 TR: (minor change) eq? -> eqv?
According to the guide, eqv? better than eq? for chars
2018-02-23 18:19:59 +08:00
Christopher Lam
578e9860d0 Add optional testing group for srfi-64
This adds an optional group to CMakeLists for
systems with SRFI-64 included.
2018-02-23 18:19:59 +08:00
Christopher Lam
458e7e9ff1 html-document.scm: Restore <html> tag
A previous commit 5b40df510 has eaten the <html> opening
tag which makes the whole document an invalid XML tree.

After this fix, the document is still not valid XHTML.
Until the exact DOCTYPE is finalised I suggest we
restore the root <html> tag.
2018-02-23 15:54:11 +08:00
Andreas Müller
128fce3ed8 Bug 787095 - Gnucash Crashes when opening old XML file 2018-02-22 15:59:12 -08:00