- move the swig version check after the guile checks
this allows us to check for a different version of swig
based on the guile version that was detected
- use more recent autoconf macros for swig (from the autotools archive)
this give us more flexible error reporting
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23560 57a11ea4-9604-0410-9ed3-97b8803252fd
- guile 1.8 doesn't need the swig patch
- make sure all swig interface files include guile-mappings.h
for the *utf8_string to *locale_string mappings
but only load it when building guile modules
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23559 57a11ea4-9604-0410-9ed3-97b8803252fd
This is actually a bug in swig.
This commit works around it by patching the swig
generated source files until swig itself has been fixed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23557 57a11ea4-9604-0410-9ed3-97b8803252fd
Notes:
- in some situations the original *locale_string variant is retained. This
is when locale encoded strings are processed (mostly file names).
- the utf8 variants don't exist for guile 1.8. For that version these
functions will be rededefined to call the locale variants.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23556 57a11ea4-9604-0410-9ed3-97b8803252fd
This is a quick hack to get the last 2.4 gnucash build
use the 2.4 branch of the documentation.
This should be implemented properly for git as well still,
but may need some more thought.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23543 57a11ea4-9604-0410-9ed3-97b8803252fd
If there's only one window, automatically add an account hierarchy page
to it. If it's a subsequent empty window, just ignore it (ie don't restore
it from the state file).
This commit deals with the secondary issue mentioned in
bug 436479 - Gnucash doesn't display the data file name in the title bar
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23528 57a11ea4-9604-0410-9ed3-97b8803252fd
Read compile time version number to display in the report
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23519 57a11ea4-9604-0410-9ed3-97b8803252fd
Work around a bug in guile 1.8. It escapes spaces in symbols
when printed to a string, but can't convert that string
back properly in a symbol
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23501 57a11ea4-9604-0410-9ed3-97b8803252fd
g_key_file_[gs]et_string parses the string to escape newlines and comments
This erroneously does some escaping in the #{symbol name}# guile extended format
for symbols. Since we already strip newlines and comments ourselves,
we can save and store the string without any additoinal parsing
using g_key_file_[gs]et_value.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23499 57a11ea4-9604-0410-9ed3-97b8803252fd
- only pop up the exhange rate notification message when an exchange
rate is effectively asked. Still only pop it up once per post operation.
- ask for conversion rates again if an invoice is reposted on a different date
- only keep one price per foreign currency in the invoice's price list
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23491 57a11ea4-9604-0410-9ed3-97b8803252fd
Look for missing exchange rates in tax table entries
as well as in invoice entries
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23485 57a11ea4-9604-0410-9ed3-97b8803252fd
It no longer requires access to the installed gsettings schemas.
The default value for XDG data dirs didn't work anyway because
it used a ; instead of a : as separator (as it should for the
environment file).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23474 57a11ea4-9604-0410-9ed3-97b8803252fd
The preferences backend can't work from the source environment because
it's schemas won't be compiled. This situation is only relevant for testing,
which is done from the source (or build) tree.
Note that a few preferences are needed by the xml backend. If no preferences
backend is loaded, some sane defaults will be used instead. Again this should
only matter for testing, in which case the real preferences are not relevant
anyway.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23473 57a11ea4-9604-0410-9ed3-97b8803252fd
Basically two things:
- whenever eval-when is used, the expand keyword should be added (not yet documented)
- eval-when is not needed for use-modules, because use-modules is a macro that performs the eval-when by itself
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23460 57a11ea4-9604-0410-9ed3-97b8803252fd
Make it also work with guile 2 in non-compiled mode
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23459 57a11ea4-9604-0410-9ed3-97b8803252fd
The default perl version was too old for DateManip's dependencies
A couple of cosmetic tweaks
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23449 57a11ea4-9604-0410-9ed3-97b8803252fd
This re-applies commit r23416 and fixes the test reports by
setting a fixed locale before running the tests. This should
ensure a predictable report output to compare against
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23443 57a11ea4-9604-0410-9ed3-97b8803252fd
- move GNC_GSETTINGS_PREFIX parsing to a location that it is also used in the python bindings
- read backup retain policy related settings before testing if they are valid
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23442 57a11ea4-9604-0410-9ed3-97b8803252fd
- reduce state file access to one location (tree view)
- at runtime, let model keep track of the sort state (it needs it
the most for its query)
- the view code can read the sort state from the model when needed
- reuse state handling code in gnc_tree_view where possible to avoid
unneeded code duplication
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23431 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit restores the functionality for register and register2.
As before saved state from 2.4 won't be migrated
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23430 57a11ea4-9604-0410-9ed3-97b8803252fd
These are set automatically via AC_SUBST in configure.ac
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23401 57a11ea4-9604-0410-9ed3-97b8803252fd
The use of (macro? ) has changed in guile2.
In addition the test script has been reformatted
to make it more readable and easier to detect
where exactly it fails.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23394 57a11ea4-9604-0410-9ed3-97b8803252fd
This cleans up some left overs from before guile had a .pc file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23391 57a11ea4-9604-0410-9ed3-97b8803252fd
Use guile specific macros to determing the guile executable to use.
Unfortunately the macro names may be different on various supported
platforms. So we have to run some extra tests to determine which
macro names we need exactly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23390 57a11ea4-9604-0410-9ed3-97b8803252fd
Signal handlers didn't get removed properly from gsettings keys
when an invoice page was closed, leading to a crash if the
signal handler is later activated again.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23356 57a11ea4-9604-0410-9ed3-97b8803252fd
The new implementation uses the gnucash metafile in .gnucash/books
to save gui state for any page that is based on gnc_tree_view.
Think Account Hierarchy, Budgets, Vendor/Customer/Employee overviews.
Each of these sets a unique name for a state section that the tree view
will use to store column width/visibility, sort column, sort order.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23351 57a11ea4-9604-0410-9ed3-97b8803252fd
- keep the state information in memory while gnucash is running
- upon saving the state, only delete those sections that will be
recreated by the save_all_state function
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23350 57a11ea4-9604-0410-9ed3-97b8803252fd
- win32: improve iss script to only replace the real XDG_DATA_DIRS path, not the comment
- use $(datadir) instead of $(prefix)/share, for the rare case someone configures with
--datadir=DIR
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23337 57a11ea4-9604-0410-9ed3-97b8803252fd
* Add unit test to verify changes
* gnc_budget_set_account_period_value returns without doing anything
if requested period value is greater than num_periods
* Add warning message when setting invalid period
Author: R Ratliff <ratliff.bobby@gmail.com>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23335 57a11ea4-9604-0410-9ed3-97b8803252fd
- fix inverted test if saving/restoring is requested
- fix glib CRIT warning when saving
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23327 57a11ea4-9604-0410-9ed3-97b8803252fd
* Set scrollbar visibility
* Turn on word wrap
Author: R Ratliff <ratliff.bobby@gmail.com>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23318 57a11ea4-9604-0410-9ed3-97b8803252fd
This update removes the register2 changes for the next release
as it is not complete yet.
Author: Robert Fewell
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23314 57a11ea4-9604-0410-9ed3-97b8803252fd
If the timeout is reached, the dialog is closed as if the user clicked on save.
The timeout period can be set via the preferences dialog
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23312 57a11ea4-9604-0410-9ed3-97b8803252fd
This code was unintentionally disabled in the preferences refactoring process
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23308 57a11ea4-9604-0410-9ed3-97b8803252fd
That file is a built source. It is already removed by the maintainer-clean
rule.
Author: Sébastien Villemot <sebastien@debian.org>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23302 57a11ea4-9604-0410-9ed3-97b8803252fd
* Totals column moves to right hand side when periods are added
* Remove unneeded gnc_plugin_page_budget_refresh_cb
Design: in gnc_budget_view_refresh, detect the condition when periods
are added. If this is true, delete the totals column. It will be
regenerated at the end of the refresh function.
Author: R Ratliff <ratliff.bobby@gmail.com>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23301 57a11ea4-9604-0410-9ed3-97b8803252fd
* In budget flow report options, change the maximum value
for period to 60 (Note the FIXMEs)
Author: Robert Ratliff <ratliff.bobby@gmail.com>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23300 57a11ea4-9604-0410-9ed3-97b8803252fd