Commit Graph

18553 Commits

Author SHA1 Message Date
John Ralls
711cea1f4f Fix the fix from mac for test-userdata-dir.c 2017-09-16 18:09:34 -07:00
John Ralls
9dc8e6f40a Fix test-userdata-dir on Mac. 2017-09-16 14:50:33 -07:00
Geert Janssens
42aa734475 Travis fixes
- Remove trailing semicolons. They're not needed in shell scripts
- Don't create default XDG_DATA_HOME (<HOME>/.local/share) the code
  should work equally well if that directory doesn't exist and so
  not creating it tests another part of the code
2017-09-16 22:29:29 +02:00
Geert Janssens
a8cccc00f3 Minor tweaks to the userdata_dir logic
- have gnc_validate_directory throw as well in case of a missing directory
  that it shouldn't create. This allows to remove 3 other throws
- slightly adjust the error message in case of missing directory
- never migrate when the final directory is a temporary (sub)directory
2017-09-16 22:29:29 +02:00
John Ralls
681d0271de Fix python init errors. 2017-09-16 11:30:07 -07:00
Geert Janssens
2ac118f80c Improve a few comments. 2017-09-16 19:33:56 +02:00
Geert Janssens
61a90d99fb Disable creating a user_data_dir in the test environment
The code should be able to cope with this
2017-09-16 19:18:01 +02:00
Geert Janssens
3a1f7d7339 Also undo the changes to POTFILES.in 2017-09-16 19:15:49 +02:00
Geert Janssens
f3c0ec6068 Revert "Merge branch 'new-gst-report' of https://github.com/christopherlam/gnucash"
This reverts commit 48483b1e3d, reversing
changes made to 53fbc6f62f.

This merge was unintentionally pushed to master. This branch still
needed improvements.
2017-09-16 17:43:18 +02:00
Geert Janssens
8b1ebc5168 Update python bindings to use PyGI and Gtk3
While it doesn't fully fix the python bindings, gnucash
now at least doesn't segfault on start up if built with
python bindings enabled. There are still issues to fix though.
2017-09-16 17:38:47 +02:00
Geert Janssens
48483b1e3d Merge branch 'new-gst-report' of https://github.com/christopherlam/gnucash 2017-09-16 10:24:00 +02:00
christopherlam
53fbc6f62f "Sorting" tab overhaul to improve UI
This change will ensure the Sorting tab only presents *valid* options. e.g.
Changing Primary Sortkey to 'none will disable its descendant options.
Changing to 'Date will enable Date-interval choice.
Changing to 'Account-name will enable relevant account-name options.
Usability fix. This should help newcomers.
2017-09-16 16:10:10 +08:00
christopherlam
499c33cb35 Disallow Closing Transactions.
These txns must not be counted in this report.
2017-09-16 15:08:12 +08:00
christopherlam
9d85ee65d8 Initial commit income-gst-report.scm
Suitable for annual income & expense tax return.
Also suitable for GST/VAT returns.
Derived from transaction.scm
Also handle voided transactions correctly
2017-09-16 12:52:46 +08:00
christopherlam
8c65a1269d Reindent income-gst-report.scm 2017-09-16 12:52:30 +08:00
christopherlam
71b88ab4c5 cp transction.scm income-gst-statement.scm
https://github.com/Gnucash/gnucash/pull/177 rises from the ashes.
Commit memory is now unfortunately lost, due to my inexperience.

Start with transaction.scm as initial commit to illustrate its
heritage.
2017-09-16 12:52:04 +08:00
Geert Janssens
75b5a41eee Merge branch 'maint' 2017-09-15 21:51:50 +02:00
Geert Janssens
3bc0241e74 Bug 647805 - Interdependent report options fail to change state after using apply for a limited number of times
On the C side an SCM guile_options object is wrapped in a GNCOptionDB. This is
however a multi-to-one relationship. That is there can be several GNCOptionDBs
wrapping the same SCM guile_options object. This happens for example when
a report is open together with its Options dialog. Both manager their own
GNCOptionDB object while both wrap the same SCM guile_options.

The problem in this bug was caused by a callback function picking the wrong
GNCOptionDB based on the given SCM guile_options object. Which GNCOptionDB
got picked was completely dependent on how g_hash_table_foreach would cycle
through the stored dbs. It appears this is dependent on the in-memory order
of the hash table's values.

By being more selective of which GNCOptionDB we're looking for, this
could be circumvented. The GNCOptionDB we want is the one related to the open
report options dialog. This GNCOptionDB is different from the one managed by
the report tab in that it has callbacks set. So from now on we search for
a GNCOptionDB that wraps the give SCM guile_options and has one particular
callback set.
2017-09-15 20:54:42 +02:00
fell
b9d6e0257b Bug 787479 - Persian currency symbol is doubled 2017-09-15 15:02:53 +02:00
John Ralls
2cb48672f0 Fix the actual cmake dist problem, missing macros.
This reverts commit 36adb31ee9 which was
the wrong approach.
2017-09-14 12:01:05 -07:00
Geert Janssens
46545d3e45 Apply python binding changes to correct file 2017-09-13 15:01:48 +02:00
John Ralls
36adb31ee9 Fix some odd automake errors that show up only during a CMake ninja dist. 2017-09-12 17:10:49 -07:00
John Ralls
739995df54 Fix distribution pieces for gwenhywfar-gtk3. 2017-09-12 17:09:51 -07:00
John Ralls
1dea835c31 Re-enable generation of POTFILES.in
With a hack to get the right line-endings on Windows.
2017-09-12 14:28:05 -07:00
lmat
0cdd776941 Adding python tests to cmake
And removing some debugging comments
2017-09-12 14:20:18 +02:00
Geert Janssens
37ecf56fbb Merge branch 'maint'
Resolved conflicts:
	bindings/python/tests/CMakeLists.txt
2017-09-12 13:48:01 +02:00
Rob Gowin
6ec9aa362b Fix issues with loading and running init.py 2017-09-11 16:09:57 -05:00
John Ralls
ac86ca949f Disable regeneration of POTFILES.in
On Windows CMake converts "\n" to CRLF, which causes xgettext to
mangle paths with [type: gettext/gsettings] in front of them and
also dirties the source directory with uncommittable changes.
The autotools build doesn't regenerate POTFILES.in and we've historically
maintained it by hand.
2017-09-11 12:18:57 -07:00
John Ralls
3f84f48415 Fix tiny omission that didn't build standard-reports.go. 2017-09-11 10:24:01 -07:00
fell
65f18589da Update changed string in de.po 2017-09-11 04:40:22 +02:00
fell
2275603eb4 Fix error in recent commit 2017-09-11 04:34:02 +02:00
John Ralls
465f24af2e Link libgncmod-app-utils-python to libgncmod-app-utils.
Instead of building libgncmod-app-utils-python as a stand-alone library
because gncmod-app-utils.c can be compiled only with guile thanks to
declaring scm_init_sw_app_utils_module. Linux linkers will just mark it
'U' but the MacOS linker errors out.
2017-09-10 18:24:39 -07:00
fell
240bc32e57 Remove build_year from translatable copyright string 2017-09-11 02:40:03 +02:00
fell
6c8275a7ff Review of PR #183
4612 translated messages, 25 fuzzy translations, 48 untranslated
messages.
2017-09-10 21:49:26 +02:00
Geert Janssens
556f7037ad Merge branch 'maint' 2017-09-10 19:16:38 +02:00
Geert Janssens
82bd4f69aa Merge branch 'fix_cmake_ofx_dep' of https://github.com/bhardwajs/gnucash 2017-09-10 18:56:44 +02:00
christopherlam
600f010472 Fix swig wrapper for gncTaxTableGetTaxTables
- Add new typedef GncTaxTableList
- Add SWIG wrapper for gncTaxTableGetTables
- gncTaxTableGetTables to return gncTaxTableList
2017-09-10 18:44:34 +02:00
Geert Janssens
f0f53d99b7 Merge branch 'trav' of https://github.com/limitedAtonement/gnucash 2017-09-10 18:32:58 +02:00
Geert Janssens
f0fe1e9949 Re-enable python-bindings test this time with a fully corrected python path
The fix was suggested by Rob Gowin.
In addition, disable some debug output in the python tests suite.
2017-09-10 11:57:28 +02:00
John Ralls
6e652e82ad Add w_image.c to EXTRA_DIST.
Missed in original commit, noticed by intltool.
2017-09-09 17:36:18 -07:00
Daniel
4250f53faa L10N: DE, some small corrections. 2017-09-09 21:35:05 +02:00
Sumit Bhardwaj
bbdb7151dd Made ofx-gschema dependent on WITH_OFX flag 2017-09-09 10:13:34 -07:00
lmat
121dd8cf90 Configure travis to use docker for CI
Currently, there is an ubuntu 14.04 and archlinux build and they both
use cmake with ninja, cmake with make, and autotools to build. It should
be straightforward to add another configuration.

Travis checks out the correct branch of the source code for us, and we
expose that source code to the docker container using a docker run
"volume".
2017-09-09 09:56:34 -04:00
Geert Janssens
a1bc2d0202 Temporarily disable python-bindings as it's currently failing
I have adjusted the PYTHON_PATH already based on the new directory layout,
but that's not sufficient.
2017-09-09 14:23:47 +02:00
Geert Janssens
22b11427cb Merge branch 'maint' 2017-09-09 14:09:13 +02:00
Rob Gowin
739ce35f6a Fix problems that occur when running out of CMake build dir 2017-09-09 14:08:28 +02:00
Rob Gowin
8efe0f83e6 Run the python bindings test when using CMake 2017-09-09 14:08:24 +02:00
lmat
f27d77746d Adding .gitignore entries for ctags and vim swaps 2017-09-09 13:04:09 +02:00
fell
11fa766266 Revert PR #182 mostly.
Part of Bug 787226 - German: Business:bill: Bill ID / Billing ID
mistranslated?

"Billing ID" is also used in the dialogs of customer invoices.
2017-09-08 23:42:31 +02:00
Geert Janssens
ef594e87e0 Merge branch 'maint.translation.de.02' of https://github.com/quazgar/gnucash into maint 2017-09-08 17:37:09 +02:00