Commit Graph

19677 Commits

Author SHA1 Message Date
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 Erling Blad
f95ae1a96d Partial update of Norwegian po file 2018-02-16 15:41:25 +01:00
John Erling Blad
4a6f0223ef Changed last one to blame 2018-02-16 15:39:28 +01:00
John Erling Blad
e8363e29b4 Partial update of Norwegian po file 2018-02-16 15:33:41 +01:00
John Erling Blad
839ba137b9 Partial update of Norwegian po-file 2018-02-16 13:57:09 +01:00
John Erling Blad
ff0f4ac8d7 Partial update of Norwegian po-file 2018-02-16 13:43:55 +01: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
Christopher Lam
3aba4d2dd8 bug 793278 fix for maint
This is caused by commit 766e74096 - min-date was
erroneously thought to mean 'min date of date-list'
but actually meant 'negative infinity date'. This
commit changes date comparison logic to always
return #t when comparing
(gnc:timepair-le min-date date) for
the first date interval.

Test case also created.
2018-02-15 22:46:22 +08:00
fell
2598dbe5e6 Insert lost '#, c-format' lines again into de.po
Additional removed garbage
2018-02-14 19:04:18 +01:00
Geert Janssens
b5e07517f0 Merge branch 'addendum-replace-numeric-with-number' of https://github.com/christopherlam/gnucash into unstable 2018-02-14 18:54:08 +01:00
Christopher Lam
044c172081 bug 793278 fix
This is caused by commit 766e74096 - min-date was
erroneously thought to mean 'min date of date-list'
but actually meant 'negative infinity date'. This
commit changes date comparison logic to always
return #t when comparing (<= min-date date) for
the first date interval.

Test case also created.
2018-02-14 18:36:16 +01:00
Geert Janssens
2e3ec99219 Merge branch 'maint' into unstable 2018-02-14 18:20:18 +01:00
John Clements
e3a00804da fix syntax of example qif file
add (apparently) required separators and transaction descriptions
2018-02-14 18:19:13 +01:00
Geert Janssens
c7b5061e8f Bug 792884 - cmake: gschemas.compiled missing
Fix handling of gschemas.compiled. It should only be called
at install time to regenerate gschemas.compiled based on all
available gschema files. In the installation directory that
can be more than just our own.

Note to force the compilation to run after all gschema files
themselves are installed, the gnome and gnome-utils gschemas
have been moved into a higher-level gschemas directory and
the install command is added there.
2018-02-14 17:56:07 +01:00
fell
5cf58758a2 Merge branch 'translation27DE' into unstable 2018-02-14 14:47:51 +01:00
fell
2a7b0b7b91 Review of PR #268
4910 translated messages, 161 fuzzy translations, 123 untranslated
messages.
14 msgstr lack the keyboard accelerator mark '_'
2018-02-14 14:46:53 +01:00
Christopher Lam
604a2d0864 Bugfix create-commodity-list
45f61a3 had couple bugs.
- value/share was inadvertently swapped
- no need to define comm-list in
  create-commodity-list to return it
2018-02-14 17:15:26 +08:00