Commit Graph

19387 Commits

Author SHA1 Message Date
Geert Janssens
62fd179f87 Adjust gnc_userconfig_dir and get_userconfig_home to the former returns a subdirectory of the latter
Also add a few comments to make the distinction more clear.
2018-02-19 20:31:51 +01:00
Geert Janssens
27256357f5 Merge branch 'BUG792809' of https://github.com/Bob-IT/gnucash into unstable 2018-02-19 20:31:33 +01:00
John Ralls
5929bb3bf8 Move string.scm to qif-imp, the only place it's used. 2018-02-19 11:25:08 -08:00
John Ralls
4ad2359872 Remove unused functions from utilities.scm
moving safe-strcmp to aging.scm, it's sole use.
2018-02-19 11:10:14 -08:00
John Ralls
720acddff2 Restore fin.scm, incorrectly removed earlier.
But put it in app-utils where it's used and load it explicitly.
2018-02-19 10:50:38 -08:00
John Ralls
923995f2cc Restore inadvertently-deleted standard-reports tests. 2018-02-19 08:20:48 -08:00
fell
464281644c Merge branch 'maint' into unstable
Should resolve issue mentioned in PR #277
Conflicts:
	libgnucash/app-utils/gnc-sx-instance-model.c: resolved
	po/de.po: changes in maint ignored
2018-02-19 15:25:53 +01:00
fell
ee217c61b2 Make REPORT_ERROR private
amending commit ce71586
2018-02-19 12:29:06 +01:00
fell
fb26ef648e update de.po to commit ce71586
4684 translated messages, 5 untranslated messages.
2018-02-19 12:17:53 +01:00
fell
ce715862fe Mark forgotten error messages in gnc-sx-instance-model.c translatable
and report them bilingual:
 *  in g_critical untranslated and
 *  in g_list_append translated.
2018-02-19 11:50:10 +01:00
John Ralls
f4965ae2ac Move direct check dependencies to the originating CMakeLists.txt.
Removing transitive dependencies from being declared direct.
2018-02-18 22:16:27 -08:00
John Ralls
474c3ae079 Make a target for the python-bindings test to set its dependencies. 2018-02-18 16:08:26 -08:00
John Ralls
605f3466cb Rename the gnc-module test libraries to be consistent with other modules. 2018-02-18 16:07:25 -08:00
John Ralls
a5f46a5e45 More Scheme dependency additions. 2018-02-18 15:59:00 -08:00
Robert Fewell
b2ed250db1 Change gsettings upgrade test so old_maj_min is < 207
With the original value of 208, the use-gnucash-color-theme kept on
being reset to what ever the use-theme-colors was, by default false.
2018-02-18 22:41:39 +00:00
Robert Fewell
22921c9f29 On first load, cell height is wrong which affects highlighting
Move the get text height function which is the basis of the cell height
to the start of the draw procedure so highlight area can be computed
correctly.
2018-02-18 22:41:39 +00:00
Robert Fewell
3bc741e193 Remove doc gtk2 rc file and replace with gtk3 css one 2018-02-18 22:41:21 +00:00
Robert Fewell
7c9ac17cb6 Move the user CSS settings file
Move the CSS settings file to a location based on XDG_CONFIG_HOME which
is OS dependant but with slight changes for Windows and OS X.

- Windows: CSIDL_APPDATA/Gnucash
- OS X: $HOME/Application Support/Gnucash
- Linux: $XDG_CONFIG_HOME/gnucash (or the default $HOME/.config/gnucash)
2018-02-18 22:40:45 +00:00
John Ralls
ec0656e7d5 Bug 793568 - "Cash Flow" report crashes 2018-02-18 10:27:34 -08:00
fell
c6cbac588e Add a TODO note for variadic macros after C++2a standardization 2018-02-18 11:38:54 +01:00
Geert Janssens
ffeafad636 Spelling fix in import map editor 2018-02-18 10:34:41 +01:00
John Ralls
48bdab38d4 Replace sprintf with Guile's built-in format. 2018-02-17 15:24:44 -08:00
Geert Janssens
e3cd9f88c9 Merge branch 'unstable-TR-progress' of https://github.com/christopherlam/gnucash into unstable 2018-02-17 23:22:23 +01:00
Harald H
611ead2bc1 Updated info and migrated to the latest AppStream specs
+ Specified metadata license
+ Added required nametag
+ Added required project license
+ Added required summary
+ Changed urls to https
+ Fixed screenshot tags
+ Added category
+ Added url for bugtracker, faq, help, donation and translate

I have not removed the current underscore prefixes as you may want to migrate from the deprecated intltool to modern gettext before doing so. Relevant information:
- https://blogs.gnome.org/mclasen/2016/07/21/using-modern-gettext/
- https://wiki.gnome.org/MigratingFromIntltoolToGettext
2018-02-17 22:55:34 +01:00
Geert Janssens
07c3162a73 Fix a few leftovers from work on main.scm
- Load proper file in gnucash-bin.c
- Load string.scm (now in gnucash subdir) to make reports and qif-import work again
2018-02-17 21:09:07 +01:00
Geert Janssens
fbdacae610 Remove the need for a temporary script file to compile gschemas
I opted for this temporary script to be able to print a message while compiling
as glib-compile-schemas is totally silent. Turns out printing the message can equally
be done directly in the install command.
2018-02-17 20:16:11 +01:00
Geert Janssens
de4b72dc11 Drop install rule for previously removed (scm) config file 2018-02-17 20:09:36 +01:00
Christopher Lam
bdd7cc73ef GSTR: Restore some strings 2018-02-17 08:17:01 +08:00
Christopher Lam
bc8ad8961a TR & GSTReport: Improve comments
This commit only improves the comments for
both reports, and uses gnc:error calls as
advised. The reordering in GST Report now
reflects the logical transformation of a
split into column amount.
2018-02-17 08:17:01 +08:00
Christopher Lam
97e415fdf3 GSTReport: filter out some transactions
This commit restores filtering for closing, link
and payment transactions.
2018-02-17 08:17:01 +08:00
Christopher Lam
b261eb18b3 Revert options.scm lookup-options renaming
and use (gnc:error) as advised
2018-02-17 08:17:01 +08:00
Christopher Lam
276a7d24d2 REWRITE income-gst-statement.scm
This commit rewrites income-gst-statement.scm to be a derivation
of transaction.scm, modifying the options database and passing
custom arguments to the trep-renderer.

This should hopefully reduce risk of errors.
2018-02-17 08:17:01 +08:00
Christopher Lam
88b3446299 ADD-API: gnc:option-make-internal!, gnc:unregister-option
This commit adds 2 additional helper calls, primarily useful for
derived reports.

gnc:option-make-internal! will hide an existing option. e.g.
a derived report can set the value for a Display/* option and
hide it from the user.

gnc:unregister-option will unregister option. This is primarily
useful for derived options e.g. another report copies from
transaction.scm and removes some options and recreates them with
different parameters.

For example, unregister existing option from section "Accounts"
name "Accounts", and recreate with different parameters e.g.
limited account types.
2018-02-17 08:16:23 +08:00
Christopher Lam
6004b55d16 TR: remove unnecessary no-account-after-filtering step
This merges the initial 'no-account' warning and the
'no-account-after-filtering' warning. This reduces
the number of strings required.

The user can select some accounts, set an account name
filter which produces no accounts, and will see a
blank report with the gnc:render-options-changed
confirming that options were set, and the blank
filter is caused by the filter.

Example: http://i.imgur.com/eqq1Bpa.png
2018-02-17 08:16:23 +08:00
Christopher Lam
3749ca528b TR: omit display of $0 in subtotals in other currencies.
Previously in dual-subtotal columns, the dual-subtotal would
attempt to print all commodities in the row. This meant
if user chose common-currency thereby triggering additional
commodities, the dual-subtotal would attempt to add amounts
in other commodities which would be 0, and display the 0
amount. This commit will modify the the dual-subtotal strategy
to only add column where a value actually exists.

This commit is a continuation of previous TR enhancement
(multiple data columns) where I have now understood how
to disable these $0 amounts in subtotals.

From: http://i.imgur.com/sqAHsPQ.png
To:   http://i.imgur.com/n0R7xeV.png
2018-02-17 08:16:23 +08:00
Christopher Lam
12f3099f59 (infobox)->(gnc:render-options-changed) in options.scm
This commit will change (infobox) to a general-purpose
renderer for "all options changed by user" in options.scm
and can be inserted into any report. It reduces the
number of strings required.
2018-02-17 08:16:23 +08:00
christopherlam
01e604d8ee Use xaccSplitGetReconcile instead of (zero? date)
(zero? date) not a good test for reconcile status.
Use xaccSplitGetReconcile(split)=='y'.
This is a better test.
2018-02-17 08:16:23 +08:00
John Ralls
cd8f2b7c7e Rename libgnucash/scm/main.scm to utilities.scm
Because it hasn't been "main" since GnuCash became a C program.
2018-02-16 15:52:19 -08:00
John Ralls
32f6958ebb We're done modularizing. About 16 years ago. 2018-02-16 15:41:47 -08:00
John Ralls
8b0d9425e9 Remove some obsolete and unused Scheme files. 2018-02-16 15:37:46 -08:00
John Ralls
26e51339a6 Rework the Scheme target dependencies.
Should fix Bug 793122 - 2.7.3: ninja build fails
along with the nagging parallel-build problems.
2018-02-16 14:28:46 -08:00
John Ralls
772aabf15f Make sure that all of the builder and uimanager files are installed...
in the correct subdirectory.
2018-02-15 16:46:12 -08:00
John Ralls
941cc7dcf5 Rationalize the copying and installation of GtkBuilder and GtkUIManager files.
Trying to catch all of the possible CMake build files as exceptions is
too hard. Name the source files and copy/install them.
2018-02-15 16:08:16 -08:00
John Ralls
a92180f03b Remove superfluous variable. 2018-02-15 16:05:51 -08:00
John Ralls
d97b0f2617 No more Makefile.am. 2018-02-15 16:04:59 -08:00
John Ralls
82ad7aca51 Prevent a couple of divide-by-zero errors.
Might fix Bug 792800.
2018-02-15 15:21:55 -08:00
John Ralls
04408650c1 Fix double free, caused test to crash on Mac. 2018-02-15 11:04:15 -08:00
John Ralls
b3b3783809 Merge branch 'maint' into unstable 2018-02-15 10:56:43 -08:00
John Ralls
1999d85343 Merge Chris Lam's 'maint-fix-45f61a3'. 2018-02-15 10:30:42 -08:00
John Ralls
33d434596d Merge branch 'maint' into unstable 2018-02-15 10:20:57 -08:00