Commit Graph
463 Commits
Author SHA1 Message Date
David Hampton 4209e9bd88 Play nicer with recent releases of glib that have tightened what's
considered a valid key in a key/value file.  This change will cause
gnucash to rewrite any opened state file into a new version where all
key names fit the new glib requirements.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15458 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-28 21:58:20 +00:00
David Hampton 10d17674e6 Remove unused functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15448 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-28 06:20:43 +00:00
David Hampton 8e40824e19 Update for the new base level of gtk2.6. Add all the gtk2.6
properties that have been stripped out in the past.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15433 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-27 04:33:37 +00:00
Andreas Köhler af04e4cd25 Use guiles native sort and record. Fix #373809.
Slib 3a4 changed the way to determine whether to use natively supported
features or the ones provided by slib. This leads to several problems:
* some code creates a record with one implementation and code uses it
  with the other implementation
* slibs sort does not seem to work with guile 1.6.8 arrays and even
  exposes a bug in those arrays

Return to the status quo by removing all (require 'sort) and (require
'record). GnuCash depends on Guile >= 1.6 which should feature that.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15428 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-25 22:14:14 +00:00
Andreas Köhler 5c126dea86 Use g_open, g_fopen, g_stat and g_unlink.
Replace open, fopen, stat and unlink by their GLib wrappers so that
files on Windows will be handled with the wide character api.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15407 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-21 16:38:42 +00:00
Andreas Köhler 35f43c0a1a Raise dependencies: GLib 2.6, Pango 1.8, GTK+ 2.6.
Ask for GLib 2.6 and GTK+ 2.6. Let the included GOffice 0.0.4 and LibGSF
1.12.3 use their native base dependencies. Remove all #ifdefs and
compatibility code that were necessary to make GnuCash, GOffice and
LibGSF compile on an older setup (GLib 2.4, Pango 1.6, GTK+ 2.4).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15400 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-20 15:21:35 +00:00
Andreas Köhler e8720a89db Compile GncModule's with --avoid-version.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15322 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-07 07:04:47 +00:00
Andreas Köhler b34a1c9f3f Unify library names and installation directories.
Rename libcore-utils        to libgnc-core-utils
Rename libgncgnome          to libgnc-gnome
Rename libgncmodule         to libgnc-module
Rename libgncqof            to libgnc-qof
Rename libgnc-backend-file  to libgncmod-backend-file
Move libgnc-business-ledger to $prefix/lib
Move libgncqof-backend-qsf  to $prefix/lib/gnucash
Move libgncmod-backend-file to $prefix/lib/gnucash


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15321 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-07 07:04:23 +00:00
Andreas Köhler 2e69bba2db Merge reshuffle-modules (r15315) back into the trunk.
Modules are loaded directly with the g_symbol_* API now while dropping
the dependency on libltdl.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15317 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-06 00:41:51 +00:00
Andreas Köhler e5c7756b51 Do not build tests for make all' but only make check'. This is done by
using the automake prefix check_ instead of noinst_. The modules created
in src/gnc-module/test now use that prefix too, but with LDFLAGS="-rpath
${PWD}" to make them shared (we never install them).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15260 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-27 02:51:03 +00:00
Andreas Köhler 49470adf27 Add include directives for ${top_builddir}/src/swig-runtime.h.
Merged r15229 from branches/reshuffle-modules.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15245 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-21 19:28:26 +00:00
Andreas Köhler 47f406a9b7 Fix some printf's of NULL in DEBUG, ENTER and LEAVE macro invocations.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15188 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-06 20:03:30 +00:00
Chris Shoemaker b2c2ae2bf8 Add src/base-typemaps.i as a prerequisite for all wrapper-generator rules.
Fix some comment typos.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15114 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-14 02:14:13 +00:00
Andreas Köhler c94218b42c Fix three incorrect tests for swig-wrapped objects and one
initialization as #f instead of '(), the latter making qif imports work
again. Remove also a few lines of old commented cruft.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15102 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-09 14:27:48 +00:00
David Hampton c7172736dd Fix some scheme inexact errors. Fixes 347462.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15088 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-06 04:45:27 +00:00
Chris Shoemaker e528848f5a [Part 2] Audit all .scm files for cases where null objects were assumed
to be #f.  (It helps to save all buffers before the commit.)




git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15061 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-29 03:39:39 +00:00
Chris Shoemaker e4ebb3eb1b Audit all .scm files for cases where null objects were assumed to be #f.
In most of these cases, I know the value is always returned from C, so we
can use "null?".  In cases where I wasn't sure, I make it check for either
#f or null?.  Hopefully, I got 'em all.  But, really, what are the chances?



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15060 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-29 03:12:49 +00:00
Chris Shoemaker 96ce3a8d56 Fix three wrapper-related bugs found and patched by Mike Alexander
<mta@umich.edu>.

1) Since the output of (xaccTransGetSplit ...) may now be '(), check for it
with (null? ...).

2) Fix the result of a sed mis-ordering:
s/gnc:query-get-splits/qof-query-run/g
s/gnc:query-get-splits-unique-trans/xaccQueryGetSplitsUniqueTrans/g

3) Fix the result of a sed typo:
s/gnc:split-corr-account-fullname/SPLIT-CORR-ACCT-FULLNAME/g
which should've been
s/gnc:split-corr-account-fullname/SPLIT-CORR-ACCT-NAME/g



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15046 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-19 23:58:03 +00:00
Chris Shoemaker 2cd782b451 Replace xaccTransGetSplits with xaccTransGetSplitList.
'xaccTransGetSplits' doesn't exist.  It was a result of an incorrect 
ordering of sed substitutions:

s/gnc:transaction-get-split/xaccTransGetSplit/g
s/gnc:transaction-get-splits/xaccTransGetSplitList/g



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15042 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-19 01:00:17 +00:00
Andreas Köhler 816ee79de1 Quote a list of account types to avoid a cash flow crash. Fixes #363068.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15035 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-18 10:15:58 +00:00
Chris Shoemaker 838ff86fbd Factor out some common typemaps into src/base-typemaps.i
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15026 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-16 03:35:56 +00:00
Chris Shoemaker 31e926c486 Merge swig-redo branch back into trunk.
g-wrap is gone.  I, for one, welcome our new swig overlords.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15024 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-15 19:02:05 +00:00
Chris Shoemaker 923cd256b4 Allow budget values to default to unset, rather than zero.
Main patch by Gregory Alexander <gregalexa@gmail.com>.
On editing, interpret a blank as an unset budget value.
On reporting, show "." for unset budget values.
Add bugdet functions for testing whether a budget value is set or not, 
and for unsetting it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15009 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-11 20:55:20 +00:00
Andreas Köhler 35300b2c76 Quote an empty scheme list and avoid crash of transaction report on
empty session. Fixes #359412.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14926 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-03 21:13:13 +00:00
Christian Stimming c2c2be885e Add library dir for test runtime where necessary, as discussed on gnucash-devel
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14921 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-02 14:02:04 +00:00
Christian Stimming ca9485f5d9 Next round of Makefile symlink cleanup.
Scheme files are now symlinked or copied into subdirectories gnucash/ and g-wrapped/. 
Also, parallel builds should work fine now.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14764 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-29 08:05:33 +00:00
Christian Stimming 3fc7807fda Mark forgotten strings for translation
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14677 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-15 19:34:03 +00:00
Christian Stimming 6757d16770 Fix all last untranslated report titles. Deactivated Test Graphing report because it is untranslated completely.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14646 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-12 14:38:39 +00:00
David Hampton e1a44e071c Fix compilation errors on FC3.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14594 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-05 21:48:54 +00:00
Andreas Köhler a2db583699 Unref all new stores.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14592 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-05 09:18:26 +00:00
David Hampton e5b0bdbe10 Remove the majority of the remaining deprecated widgets by collapsing
the "deprecated-cleanup" branch (r13935:14581) back into trunk.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14588 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-02 18:13:30 +00:00
Derek Atkins 3ad22b5eb5 Allow proper compile/install from tarball using separate builddir.
- Don't distribute (most) generated files.
  - Be (more) consistent about when generated files are cleaned.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14555 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-07-25 13:25:26 +00:00
Christian Stimming fa525462c6 Change cmdline warning into an actual user's error dialog.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14546 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-07-20 14:34:35 +00:00
Andreas Köhler e3f064f002 Remove a duplicate of gnc:html-text?.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14503 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-07-15 13:26:48 +00:00
Andreas Köhler 4762dbf429 String fixes that have been delayed due to the string freeze.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14493 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-07-13 22:58:55 +00:00
David Hampton 82f7170740 Restore the original sort ordering which is grouping by parent
account, and then sorting within a group first by account code and
then by account name.  Partial fix for #345385.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14454 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-06-28 03:46:25 +00:00
Derek Atkins 3366829dc2 Move the GLIB26 compatibility checks to configure.in.
Just modify GLIB_LIBS and GLIB_CFLAGS so everyone properly
	  links against the glib26 compatibility library when necessary.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14330 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-06-05 03:39:54 +00:00
David Hampton d982c50662 Don't ever reference lib/glib26 if the host system has glib 2.6 or
better installed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14328 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-06-05 02:44:25 +00:00
David Hampton e5c0029700 Add lib/glib26 to the include and library paths.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14327 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-06-05 01:48:35 +00:00
Andreas Köhler 6a590e818a Add gnc_html_copy and enable report pages to copy to clipboard. Fixes
#343645. Readd descriptions for Cut/Copy/Paste actions in register
pages.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14318 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-06-04 12:23:58 +00:00
Derek Atkins 1e9a1f874d Re-enable window sensitivity if the report fails. Fixes #341610
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14178 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-24 15:53:50 +00:00
Joshua Sled 7a1963b83e Bug#341609: filter template transactions from general journal report query.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14066 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-14 23:24:06 +00:00
Chris Shoemaker 3dd0f96c60 Fixing bug #341589: Apparently, guile 1.8 will actually enforce the rule
that all datum portions of case-statement clauses be unique.  The syntax:
   'foo expands to a list of two symbols: (quote foo) 
   If both 'foo and 'bar are used, then the "quote" symbol won't be unique.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14034 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-13 04:52:09 +00:00
Christian Stimming 542a5511a2 Fix strings that mentioned gnucash-1.8
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14029 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-12 10:50:06 +00:00
Chris Shoemaker 3ed9be95ba Fix fancy invoice report. Bug #341046.
Also, liberalize gnc:html-table-append-row! to accept a non-list argument.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13985 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-10 03:54:45 +00:00
David Hampton 5e8b7bbc88 Remove translation on new strings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13890 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-30 19:28:24 +00:00
David Hampton c90adde7ba Function opening curly brace should be on a line by itself.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13886 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-30 02:59:58 +00:00
David Hampton 08ee1d10d2 Don't allow the user to save a report until they have changed the
report name. Remove the duplicate shortcut on the Add Report menu
item.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13878 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-29 07:30:20 +00:00
David Hampton 2932ad7c5a Don't load a custom report that has the same name as a standard
report.  Fixes #168250.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13877 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-29 07:27:45 +00:00
David Hampton 8600495bb8 Update a report's tab name in the main window when the name in the
report options is changed. Fixes #334199.  Also update a register's
tab name if the account name is changed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13832 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-22 20:14:41 +00:00