Commit Graph

18662 Commits

Author SHA1 Message Date
Geert Janssens
045ee429bf Check GNC_DATA_HOME environment to override default userdata location.
This replaces GNC_DOT_DIR as it was called in older gnucash releases.
2017-08-26 21:38:21 +02:00
Geert Janssens
a153412e5a Use platform dependent locations for gnucash user's data (gnc_userdata_home)
- Linux: use whatever the xdg spec dictates
- Windows: use AppData(Roaming)
- OS X/Quarz: use NSApplicationSupportDirectory special directory, which
              typically resolves to $HOME/Library/Application Support

If the preferred directory can't be used the code will fallback to
$HOME/.gnucash (the old location) if it exists. It won't create it
however. Instead if missing it will fall back to the platform's
temporary directory.

Code is added also to automatically migrate all data from the old
location to the new (only the first time).
2017-08-26 21:38:21 +02:00
Geert Janssens
ae75bc963f Rewrite several file path routines to use boost::filesystem
This is a basis for moving .gnucash to a more modern location for
application specific user data (following the xdg spec).
2017-08-26 21:38:21 +02:00
John Ralls
2006155985 Build gwengui-gkt3 only if AQBanking is enabled. 2017-08-25 20:55:52 -07:00
John Ralls
2ee5b202bf Temporarily include building libgwengui-gtk3 in GnuCash.
Revert this commit when it's widely available in distributed packages.
2017-08-25 16:39:14 -07:00
John Ralls
35752e5929 Conditionally modify getpassword_cb to match new signature in gwenhywfar 4.7.99. 2017-08-25 16:07:18 -07:00
John Ralls
0f2719ced1 Convert to libgwengui-gtk3 2017-08-25 16:07:18 -07:00
Geert Janssens
7ee15a3d70 Fully enable the new Account Substring option on the transaction report
This is done by reverting the following two commits which disabled
and hid the option on maint:
- Hide Account Substring option
  (commit 197faeab3f)
- Reduce to compatibility shim
  (commit 19fe7d8a56)
2017-08-25 11:43:49 +02:00
Geert Janssens
76e53b065e Hide Account Substring option
It is only there for compatibility with gnucash 2.8.
It should not be visible on 2.6.x, only exist.
2017-08-25 11:43:49 +02:00
christopherlam
7c7cef5aed Reduce to compatibility shim
Reduce option to retain compatibility layer for earlier 2.8
2017-08-25 11:43:47 +02:00
christopherlam
bdfe184af6 added case sensitive filter
please squash commits for me!
2017-08-25 11:43:45 +02:00
christopherlam
4704e14b3e Account fullname filter for transaction.scm
This small change will introduce an account full-name filter. Only accounts whose fullname containing substring will be selected e.g. ":Travel" will match Expenses:Travel:Holiday and Expenses:Business:Travel. This can be left blank, which will mimic previous behavior. This will ease accounts selection tremendously.
2017-08-25 11:43:44 +02:00
Geert Janssens
197faeab3f Hide Account Substring option
It is only there for compatibility with gnucash 2.8.
It should not be visible on 2.6.x, only exist.
2017-08-25 11:40:54 +02:00
Geert Janssens
19f4ce2f5a Merge branch 'patch-3' of https://github.com/christopherlam/gnucash into maint 2017-08-25 11:29:46 +02:00
christopherlam
19fe7d8a56 Reduce to compatibility shim
Reduce option to retain compatibility layer for earlier 2.8
2017-08-25 17:13:54 +08:00
Robert Fewell
d3e6a9c53b Change comment in fallback css file for emphasize-label 2017-08-24 09:02:18 +01:00
Robert Fewell
da9a57eef3 Rename the colour defines to closely match the text in import matcher 2017-08-23 17:31:42 +01:00
Robert Fewell
f7a4fa6fb0 Rename direction boolean to arrow_down 2017-08-23 16:58:28 +01:00
Robert Fewell
efaa7dbb1a Change the way dense calendar background colours are sourced
Defined the three colours and function to decide if the foreground
colour is light and make the colours darker. Also changed the colour of
the grid to based on border colour.
2017-08-23 16:53:34 +01:00
Robert Fewell
4cdae2481e Improve marker alignment depending on row height being odd or even 2017-08-23 16:51:59 +01:00
Robert Fewell
3a04e8b937 Fix some lines with spaces on them 2017-08-23 16:50:38 +01:00
Robert Fewell
94d538d233 Change glade comment in css file 2017-08-23 15:47:12 +01:00
Geert Janssens
64f36323b2 Build test-import-pending-matches as c++
It depends on libgncmod-test-engine which needs c++ building/linking.
Without this change the next commit would produce the following linker error:
/usr/bin/ld: ../../../libgnucash/engine/test-core/.libs/libgncmod-test-engine.a(test-engine-stuff.o): undefined reference to symbol '__gxx_personality_v0@@CXXABI_1.3'
/usr/lib64/libstdc++.so.6: error adding symbols: DSO missing from command line

Making the test compila as C++ solves the issue.
For reference commit ff07762 and commit 5e7dd9 seem to be related and
have additional explanations.
2017-08-23 15:14:37 +02:00
Robert Fewell
1051847e2b Use GTK_STYLE_PROVIDER_PRIORITY_FALLBACK for fallback css file 2017-08-22 14:22:11 +01:00
Robert Fewell
e8f8e56127 Use the css class defines in the import matcher help dialog 2017-08-22 13:35:03 +01:00
Robert Fewell
d4a248a244 Minor fix to gnc-tree-model-account, removal of double ; 2017-08-22 13:35:03 +01:00
Robert Fewell
2c5e2f7ade These variables are not required any more in gnc-dense-cal 2017-08-22 13:35:03 +01:00
Robert Fewell
cdfdfb48c1 Change the css for the primary label in dialog account
Renamed the css class used and moved to the fallback css file.
2017-08-22 13:35:03 +01:00
Robert Fewell
ffe9a23ca5 Change the Register2 css to be from the fallback file 2017-08-22 13:34:42 +01:00
Robert Fewell
908e3f3fc0 Do not set the foreground colour in Import Matcher
Let the theme set the foreground colour which is more relevant on dark
themes
2017-08-22 13:32:11 +01:00
Robert Fewell
e18d56dfc4 Rework the Import Matcher colours to be from the fallback css file
Rename the css classes used and make sure the import matcher used them.
2017-08-22 13:32:01 +01:00
Robert Fewell
3be453649d Rename css class negative-color to negative-numbers 2017-08-22 13:31:51 +01:00
Robert Fewell
94841d9e64 The summary bar never respected the use of a negative colour
Changed the summary bar to use the css negative colour if required. This
involved adding a boolean columns to the model for the result of
checking values for being negative and changing to use the 'markup'
property to display the negative values in the negative colour.
2017-08-22 13:31:47 +01:00
Robert Fewell
f034fd6467 Change the account treeview to use the css negative color 2017-08-22 13:31:47 +01:00
Robert Fewell
2475193120 Rework the negative label colour
Changed the class name to negative-color and moved the default to the
fallback css file.
2017-08-22 13:31:41 +01:00
Robert Fewell
501671dca7 Replace toggle arrow with a theme drawn one 2017-08-22 13:31:18 +01:00
Robert Fewell
f7556b6094 Add draw arrow call back to various widgets 2017-08-22 13:31:17 +01:00
Robert Fewell
ec8e52e87e Add a draw callback to draw a theme based up/down arrow 2017-08-22 13:31:17 +01:00
Robert Fewell
16a42799c0 Change the dense calender to use css so that it can be themed
Change the dense calender so that it is based on css and can be made
similar to the basic calender.
2017-08-22 13:31:08 +01:00
Robert Fewell
404214b793 Add CSS provider of a lesser priority than themes
Add a css provider that has a lesser priority than themes so that it
can be over-ridden by the theme. This may turn out to be the only one
required but for now keep the application one also.
2017-08-22 13:28:30 +01:00
Mike Alexander
29a92431cb Fix sigfigs(n) rounding to work when the input is bigger tnan 10**n.
For example rounding 1234567/1 to 6 significant figures would fail.
2017-08-22 00:47:08 -04:00
Mike Alexander
57638161f2 Fix numerator overflow constructing GncNumeric from 96.16 2017-08-22 00:35:10 -04:00
Mike Alexander
00c7089ecb Add tests for converting doubles 96.16 and 9616000000.0 to GncNumeric. 2017-08-22 00:30:28 -04:00
Mike Alexander
f5c864532f Add a couple of directories containing dependencies of libtest-core-guile.
Without this the  build fails the dependencies are loaded from the
installed version or the build fails if GnuCash is not installed..
2017-08-21 23:47:19 -04:00
Geert Janssens
7d3dab21df Merge branch 'maint'
Resolved conflicts:
	gnucash/gnome/gtkbuilder/dialog-fincalc.glade
2017-08-21 22:40:16 +02:00
Yasuaki Taniguchi
7b43822f76 Bug 784284 - unifying "Clear the entry." tooltip on Loan Repayment Calculator 2017-08-21 22:33:51 +02:00
Geert Janssens
4b3db97ba1 Merge branch 'maint'
Resolved conflicts:
	gnucash/report/report-system/html-document.scm
2017-08-21 21:53:27 +02:00
Kristjan Onu
a783c8e38f Correct Price Overview documentation typos
https://bugzilla.gnome.org/show_bug.cgi?id=786525
2017-08-21 21:46:14 +02:00
fell
38344caac1 PR #172: Accelerator fixes for Latvian language
Merge branch 'maint' of https://github.com/valdisvi/Gnucash into maint

4685 translated messages.
2017-08-21 18:12:42 +02:00
Robert Fewell
8d8073aafa Remove the rules hint from gnc-tree-view to align with current setting 2017-08-21 16:37:39 +01:00