Along the way, the "dialog date" dialog accepts a GDate argument instead of
a time_t because the user enters a date, not a date-and-time.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21706 57a11ea4-9604-0410-9ed3-97b8803252fd
Some data files may only have filter[0] in which case filter[1] is NULL
and filter[2] invalid. A rare situation, but I have one test data file
consistently crashing on this.
I also took the opportunity to convert from strcmp to g_strcmp0.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21690 57a11ea4-9604-0410-9ed3-97b8803252fd
Without these parts gnucash would not build if the GTKCOMBO_BOX_TOOLTIPS_WORK
were set. It doesn't yet fix the core reason itself for the conditionals.
More work is needed to implement per-entry tooltips in comboboxes before
the old OptionMenu based code can be removed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21689 57a11ea4-9604-0410-9ed3-97b8803252fd
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
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
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
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
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
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
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
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
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
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
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
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
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
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