Commit Graph
10990 Commits
Author SHA1 Message Date
John Ralls f7604f117f [Testing] Provide list error handler, rename some functions
Add an GTestFatalFunc which can examine a list of error conditions and suppress those messages and prevent their exiting while passing through any unexpected errors.

Rename test_silent_logger to test_null_handler and change it to a GTestFatalFunc (it can still be used as a GLogFunc).

Rename test_handle_faults to test_checked_handler and improve its flow and message display. It no longer asserts on a bad match.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21668 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:06:28 +00:00
John Ralls 609a23e431 [Testing] Get the python tests working when uninstalled
Also fix a couple of failing tests.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21667 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:06:18 +00:00
Geert Janssens 1f8b1293bd Bug #661383 - GnuCash segfault on Linux (Fedora 16 beta) because of
shared library load / unload weirdness
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21665 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-04 17:34:37 +00:00
Mike Evans 12854c34f8 Fix right align for number cells in table.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21663 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-04 11:00:40 +00:00
Geert Janssens f859c49098 Bug #665401 - Migrate Tax Report Options from GladeXML to Builder
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21660 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-03 10:35:17 +00:00
John Ralls 2dc8e5e80b [Testing] Brain failure in gnc-engine.c, sorry.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21659 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-02 22:36:12 +00:00
John Ralls a6ea338687 [Testing] Set GNC_BUILDDIR and GNC_UNINSTALLED where needed
These are all of the locations where tests raised errors about not being able to find backends or standard reports.

Note that in many cases the tests would pass. I fixed some of the bogus tests, but there are still plenty more that either do nothing at all or return success no matter what happens.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21657 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-02 22:00:18 +00:00
John Ralls 4a2ab37162 [Testing] Provide for gnc_path_get_reportdir() and gnc_path_get_stdreportsdir() to return build-directory paths
As with engine, in response to environment variables GNC_UNINSTALLED and GNC_BUILDDIR.
GNC_UNINSTALLED is intended to be set via g_setenv() or (setenv) at the beginning of a test program. GNC_BUILDDIR is intended to be set with
GNC_BUILDDIR=`cd ${top_builddir} && pwd`
as part of the TESTS_ENVIRONMENT variable in test Makefiles.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21656 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-02 22:00:05 +00:00
John Ralls a66ecf90fb [Testing] Provide for engine to load backends from build path
If two new environment variables (GNC_UNINSTALLED and GNC_BUILDDIR)are set, load the backends from GNC_BUILDDIR/src/backend.

GNC_UNINSTALLED is intended to be set via g_setenv() or (setenv) at the beginning of a test program. GNC_BUILDDIR is intended to be set with
GNC_BUILDDIR=`cd ${top_builddir} && pwd`
as part of the TESTS_ENVIRONMENT variable in test Makefiles.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21655 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-02 21:59:56 +00:00
Geert Janssens 3d4ca10d15 Bug #664877 - Migrate Qif Import Druid to an Assistant
This patch removes some test druid files that were in the same directory
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21654 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-02 20:55:58 +00:00
Geert Janssens b5e3f95511 Bug #664877 - Migrate Qif Import Druid to an Assistant
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21653 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-02 20:55:43 +00:00
Mike Evans 10fcc37d97 Bug #665098 - document shortcut for blank transaction.
Added accelerator text to menu.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21652 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-02 11:09:16 +00:00
Mike Evans f932feb035 Undo r21650. Wrong approach. Uses wrong save dialog.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21651 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-01 10:02:51 +00:00
Mike Evans fbb1db7451 Bug #658247 - First time setup should prompt to save file.
Open a save dialog after chart of accounts assistant.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21650 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-30 14:47:14 +00:00
Mike Evans cb8c25a426 Sort list of reports.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21648 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-30 11:03:35 +00:00
John Ralls 6d5a9d3d6d Remove the obsolescent src/doc/design directory from recursive build.
Prevents make distcheck from building the ps and pdf versions of the texinfo, which imposed a dependency on TeX.

Removing the directory from the dist requires removing the Makefile from configure, which completely disables building, so it remains. To build the info file, cd src/doc/design and make info.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21647 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-29 21:29:58 +00:00
John Ralls 732f9651fc Remove src/import-export/qif-io-core
This directory was created 10 years ago to hold a rewritten qif importer. It was never substantively worked on after.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21646 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-29 21:29:47 +00:00
John Ralls db9d8ee570 Make distcheck fixes.
Fix some errors in r21570 which cause "make distcheck" to fail, and a couple of others besides.

While this gets distcheck to work on the Mac, there are still some problems with the standard-reports test on Linux related to trying to load reports from the installation directory (make install is run *after* make check during make distcheck). This test passes on the Mac, fails on Linux.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21645 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-29 21:29:37 +00:00
Mike Evans 4801e50176 Added user settable line width and data point markers to net worth
line chart.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21640 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-29 18:55:30 +00:00
Christian Stimming df09f174dd Read-only mode: Buttons in account tree window and owner tree window switch to insensitive.
Along the way, gnc_plugin_update_actions() shows a more detailed error
message if any of the action names do not result in an actual GtkAction,
e.g. because of a typo.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21638 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-28 21:44:46 +00:00
Christian Stimming fe3aa2e98f Read-only mode: Buttons in business result list are insensitive, accordingly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21637 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-28 21:44:34 +00:00
Christian Stimming e6d855000e Read-only mode: Business toolbar actions switch to insensitive.
Also, disable book auto-save if the book is read-only.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21636 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-28 21:44:21 +00:00
Mike Evans b3aa466378 Commented line width. This value really should be passed from .scm file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21631 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-27 11:03:02 +00:00
Mike Evans ae188cc4c9 Fix setting of line color for line charts.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21630 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-27 11:02:58 +00:00
Mike Evans 4de35e0f3e Bug #664862 - New report showing net assets over time
Added new line chart report for assets, net-linechart.scm.
Distantly related to Bug #570011

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21629 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-27 11:02:54 +00:00
Mike Evans 41dbd8bf6f File contents appear to be doubled. Removed extra copy.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21628 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-27 11:02:48 +00:00
Christian Stimming 2a93b09e82 Add "Post" and "Print" buttons in invoice search window, both for single or multiple invoices.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21627 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-26 22:17:22 +00:00
Mike Evans c0e6f0c838 Partial revert of r21588.
Causes crash when updating price quote.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21625 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-24 14:04:46 +00:00
Christian Stimming a5caa69df9 Enable the "Duplicate Invoice" button even for multiple selected items.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21623 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-23 19:05:56 +00:00
Mike Evans 6d56a869fa Bug #663368 - When importing CSV files, the word 'Deposit' appears in Num/Action column
Removed "Deposit".

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21622 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-23 13:11:10 +00:00
John Ralls 5f930058c8 src/Makefile.am: Move WITH_PYTHON block to just above where it's used
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21621 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-21 18:38:12 +00:00
Geert Janssens 1236f00bd9 Remove unneeded circular dependency between business-reports and
business-gnome.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21620 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-21 16:11:12 +00:00
Geert Janssens bcc284b0f7 Bug #630804 - make check failure in business module
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21618 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-21 14:19:10 +00:00
Christian Stimming 3179225cb2 Adapt cutecash / cmake build to r21605.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21608 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-21 12:00:46 +00:00
Geert Janssens 9eb42b358c Dissolve business-utils module by moving the leftovers into app-utils.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21607 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-21 10:40:43 +00:00
Geert Janssens e52619c40b Dissolve dialog-tax-table module by moving its only object into
gnome-utils.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21606 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-21 10:40:31 +00:00
Geert Janssens 76d820735c Dissolve the business-core module, by integrating its remaining bits in
the engine, where the rest already was moved before.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21605 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-21 10:40:17 +00:00
Mike Alexander 2e2edc1375 Make parallel build work in core-utils with python bindings enabled.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21604 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-21 05:43:38 +00:00
Mike Alexander ce3143c4be Avoid warning returning a boolean result in python bindings.
Getting "dereferencing type-punned pointer" doing Py_INCREF on Py_True and Py_False.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21603 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-21 05:43:29 +00:00
Christian Stimming da217aa506 Fix the broken code of the reconcile list widget to not mess up the GtkCList class structure.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21602 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 21:43:23 +00:00
John Ralls a32c6f5d5d [Python] Suppress the spew from loading the python module
Use --extra if you want it back.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21601 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 18:27:17 +00:00
John Ralls 4ee898d90b [Python] Export core-utils SWIG wrappers to Python.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21600 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 18:27:00 +00:00
Christian Stimming adb4a6fee6 Fix missing linker flag
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21599 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 10:20:15 +00:00
Geert Janssens 92f17e2989 Fix load errors in import-export tests
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21598 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 09:35:06 +00:00
Geert Janssens ceffe5dadc Fix failing xml backend test.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21597 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 09:34:57 +00:00
Geert Janssens b8c7e0af80 Spelling fixes in doxygen comments
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21596 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 09:34:45 +00:00
Geert Janssens 575c811df8 Fix failing python-bindings tests.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21595 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 09:34:23 +00:00
Geert Janssens 1ab89c8e84 Fix load warnings in gnome-utils tests
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21594 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 09:34:11 +00:00
Geert Janssens 01f7149061 Fix load warnings in report-gnome tests.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21593 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 09:34:01 +00:00
Geert Janssens 69a1320fa3 Fix load warnings in standard-reports tests
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21592 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 09:33:50 +00:00