The implementation of a GtkComboBox in the preference is somewhat suboptimal
as the gconf key is the integer index in the combo box, but the needed key is
the (untranslated!) string of the report name. As a workaround, the list
of names exists twice, once in business-prefs.glade and once in gnc-plugin-business.c.
At least this works fine from the point of view of the user.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21715 57a11ea4-9604-0410-9ed3-97b8803252fd
This one should have been committed before r21713
because that commit uses the changed parameter.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21714 57a11ea4-9604-0410-9ed3-97b8803252fd
Rounding in Bill/Invoices
This patch fixes the rounding by showing the actual value to convert. As
a result the exchange rate direction had to be swapped as well to avoid
lots of confusion.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21713 57a11ea4-9604-0410-9ed3-97b8803252fd
Note that any exchange rate successfully entered before the posting is
aborted are still saved with the invoice.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21712 57a11ea4-9604-0410-9ed3-97b8803252fd
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