Commit Graph

14462 Commits

Author SHA1 Message Date
Geert Janssens
7f40be5302 Fix some static warnings and errors as a result of Eclipse's static code
analysis.
As a result, some unused functions and function prototypes are removed.

It did expose one real bug in Transaction.c so far.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21687 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-08 17:11:21 +00:00
Geert Janssens
e0e113a6b9 ActivePerl only allows to download the most recent version. So change
the comments to be more liberal (at least 5.8).
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21686 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-08 17:11:06 +00:00
Geert Janssens
a41ed6e945 Bug #665202 - Improve python-finding code
Patch by Pacho Ramos

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21685 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-07 11:34:57 +00:00
Christian Stimming
98aeba26d4 Move dialog-dup-trans.c from ledger-core to gnome-utils.
Add gnc_dup_date_dialog() variant that can ask for a date without
the "num" field.

On pressing the Enter key, the widget closes but logs the following
warning:
 CRIT <Gtk> IA__gtk_widget_event: assertion `WIDGET_REALIZED_FOR_EVENT (widget, event)' failed
However, this problem already existed with the old code - the behaviour
and warning was unchanged by this commit.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21684 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-07 08:38:00 +00:00
Mike Alexander
3f75cbf8e4 Fix the selection callback in account tree page which has the read only test backwards.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21683 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 22:13:07 +00:00
Christian Stimming
d189d28439 Minor variable name unification - let all invoice reports use gnc:pagename-general.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21682 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 21:25:09 +00:00
Christian Stimming
ca56c1909a Prepare the "Print Invoice" scheme function to be given a report name.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21681 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 21:24:50 +00:00
Mike Alexander
b9c5d697c4 Fix r21499 which fixed bug #420342
1. Make searching for a date range work, the date range was being ignored and
   all transactions were returned.
2. Don't leak so many strings
3. Allow an end date in the filter even if there is no start date.
4. Don't reset the sort order or filter to the default if the user says
   to not save it.  Instead leave the saved value unchanged.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21680 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 06:06:03 +00:00
John Ralls
1234240e62 Revert "[Testing] Make engine/test-scm-query work."
This reverts commit 13fd037ef5120784791b25d4ebc12ad9bc6275b2.
It's unnecessary and doesn't compile.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21679 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:42:51 +00:00
John Ralls
a9e98bcde7 [Testing] Fix Transposed words in test-modsysver.c
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21678 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:42:40 +00:00
John Ralls
629e375784 [Testing] Gnc-module: Provide checked error messages to replace noted warnings (c-files only)
Much better for expected warnings to be tested for than to have a lead-in message saying that they're really OK.

Don't have the test utilities in Scheme yet.

Set the phony modules in misc-modules to be libtool modules instead of shared libraries. Aside from being more correct, this ensures that they'll have the same name on Linux and OSX.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21677 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:08:10 +00:00
John Ralls
02071518ee [Testing] Engine: Provide checked error messages to replace noted warnings
Much better for expected warnings to be tested for than to have a lead-in message saying that they're really OK.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21676 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:08:01 +00:00
John Ralls
5e355a56c4 [Testing] Backend/XML: Provide checked error messages to replace noted warnings
Much better for expected warnings to be tested for than to have a lead-in message saying that they're really OK.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21675 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:07:48 +00:00
John Ralls
d6e4eea168 [Testing] Fill in some missing libraries for gnc-module check.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21674 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:07:39 +00:00
John Ralls
6f9fb847bc [Testing] Make engine/test-scm-query work.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21673 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:07:29 +00:00
John Ralls
00833146d2 [Testing] More python-bindings test fixes
Ensure that libgncmod-engine can load its backends, and that all module dependencies can be found on OSX when gnucash isn't installed.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21672 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:07:16 +00:00
John Ralls
a2b258302d [Testing] Suppress the useless Guile deprecated warning.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21671 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:07:05 +00:00
John Ralls
90c24bd238 [Testing] Ensure that qof_log_init() has been called for all tests
Prevents error messages about g_hash being NULL.

Invokes qof_log_init_file_special ("stderr") in gnc_module_system_init(), so gnc_log_init() had to be moved to after that call in main() so that the command-line log setting doesn't get replaced with the default setting in module_system_init.

Note that gnc_module_load_common() has one of the offending "ENTER" macros that cause the error, and it's before the safety call of module_system_init, so test programs need to explicitly call module_system_init before loading any modules.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21670 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:06:52 +00:00
John Ralls
6bb175db1e [Engine Testing] Rework utest-Account.c to use the new error-message handlers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21669 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:06:37 +00:00
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
Christian Stimming
f338e3fe41 Win32 build: Minor version upgrade of aqbanking and ktoblzcheck.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21666 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-04 20:44:24 +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
35d00f7cd6 Remove some more empty directories
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21662 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-03 10:40:51 +00:00
Geert Janssens
6b52e3f0b0 Remove some empty directories
These were left behind by earlier commits

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21661 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-03 10:39:43 +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
fd2b0ebdc4 Update POTFILES.in to reflect recent moves and deletions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21658 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-02 22:00:29 +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
6cc40a4ed8 Add missing Root Account part.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21633 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-28 16:37:38 +00:00
Mike Evans
4a2a29e016 Bug #664764 - Account setup for Swedish small business
Added Swedish chart of accounts for small businesses.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21632 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-28 16:37:31 +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