Commit Graph
100 Commits
Author SHA1 Message Date
Andreas Köhler cc8b101186 Do not intentionally divide by zero in test-numeric
Random numbers are 0 sometimes, especially on systems with smaller
RAND_MAX. Do not use it as divisor and repeat the run when we hit one.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15474 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-31 01:35:25 +00:00
Andreas Köhler f81aa515fd Implement gnc_timegm directly without mktime.
Calculate the seconds since the start of the UNIX epoch directly without
the help of mktime. This also works on Windows. Systems with timegm are
unaffected.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15472 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-31 00:05:23 +00:00
Andreas Köhler 0ef4c64c6b Do not crash on delete_event in new user dialog. Fix #401484.
If the new user dialog is closed with the help of the window manager,
the delete_event is not handled and g_assert_not_reached() is reached by
the code. Treat it like a click on "Cancel" instead.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15459 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-29 00:52:02 +00:00
Andreas Köhler f0d6aab958 Replace mkstemp and rename by g_mkstemp and g_rename.
Mkstemp is unavailable on Windows and g_rename is preferred. Completes
r15435 on trunk and must not be backported.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15449 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-28 13:40:54 +00:00
Andreas Köhler bcdc4e3635 Install.sh: Some updates, use freetype and libgnurx from gnome.org.
Update glib, freetype, pango, gtk and gtkhtml. Use libgnurx which should
be equivalent to regex-spencer despite the naming change. Put -lregex
into REGEX_LDFLAGS. Freetype 2.2.1 has a pkgconfig file included now.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15446 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-28 05:24:56 +00:00
Andreas Köhler 5d79c1a22f Add a few functions from GLib 2.8 in lib/glib28.
Remove empty directory lib/glib26. Add lib/glib28 instead with the
necessary sources and headers to have the following functions even on a
GLib 2.6 system (!defined(HAVE_GLIB_2_8))
- g_access, g_chmod,
- g_file_set_contents,
- g_win32_locale_filename_from_utf8.
Make use of them, improving r15429 and r15430.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15445 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-28 05:13:54 +00:00
Andreas Köhler 51311e141f Install.sh: Add DISABLE_OPTIMIZATIONS and --disable-static's.
If DISABLE_OPTIMIZATIONS is "yes", add "-O0" to CFLAGS. This will make the
binaries slower, smaller and easier to debug. Also add
"--disable-static" to the configuration of libtool, guile and libgsf.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15434 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-27 12:53:51 +00:00
Andreas Köhler 275069ff90 Replace access by _waccess on Windows. Fix leak from r15429.
As g_access is new in GLib 2.8, use _waccess directly. Also free the
results of g_utf8_to_utf16.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15430 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-26 23:35:29 +00:00
Andreas Köhler 89e7929fc0 Replace chmod by _wchmod on Windows.
To unlink the lock file we need write-access on it. As g_chmod is new in
GLib 2.8, use _wchmod directly.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15429 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-26 22:29:42 +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 df01f32fbf Add paths for AqBanking in gnucash\inst tree. Fix #399816.
The DDLs of OpenSSL, Gwenhywfar and AqBanking must be in the PATH for
GnuCash+AqBanking to work. The distributed version includes them in
\bin, but PATH was incomplete for the gnucash shell and batch scripts.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15423 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-23 20:35:20 +00:00
Andreas Köhler b45ce825eb Do not %s-printf NULL-title of average balance plot. Fix #397935.
The average balance report does not specify a title for the plot, so we
must not printf it or GnuCash will crash on Windows.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15420 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-23 02:50:40 +00:00
Andreas Köhler c59bda28a3 Replace creat() by g_open().
g_open is necessary to use the wide character api and creat() is
equivalent to open with O_CREAT|O_WRONLY|O_TRUNC.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15413 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-21 22:30:57 +00:00
Andreas Köhler f1f0f8537a Use g_getenv instead of getenv.
getenv returns the pure bytes, whereas g_getenv converts the value to
the GLib filename encoding, i.e. UTF-8 on Windows. Also use TRUE instead
of 1 as overwrite argument to g_setenv.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15412 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-21 22:11:34 +00:00
Andreas Köhler 9c72ea9327 Fix Gwenhywfar build in install.sh.
* Add $_OPENSSL_UDIR/bin to PATH.
* No need to copy OpenSSL libraries from WINDIR\\system32, because we
  switched to the GnuWin32 package and even checked that system32 is
  clean.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15411 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-21 19:32:59 +00:00
Andreas Köhler aea560125c Always supply three arguments to g_open.
g_open is not #defined as open on Windows and always needs three
arguments. Use 0 where missing.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15410 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-21 19:28:31 +00:00
Andreas Köhler 9243b2f4ac Use MAX_DATE_LENGTH+1 as length for some date buffers.
Avoid memory corruption by reserving enough bytes on the stack for a
date buffer. Patch by Richard Earnshaw <rearnsha@netbsd.org>.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15409 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-21 17:51:12 +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 6783775210 Use g_dir_{open,read_name,close}.
Replace opendir, readdir and closedir by their GLib wrappers so that
files on Windows will be retrieved with the wide character api.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15403 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-20 18:37:35 +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 5611e7efd3 Correctly empty date format combobox in qif import druid. Fix #396668.
When entering the page about choosing the date format (d-m-y, etc.) the
list of entries of the combobox is to be cleared and refilled.
Therefore, loop through all entries instead of
gtk_combo_box_remove_text'ing only the first entry. Trunk-only bug.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15392 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-16 19:43:42 +00:00
Andreas Köhler 3cce429ee1 Use correct exit status in backend/file tests.
Let the tests exit with status get_rv() instead of 0 so that 'make
check' really fails if necessary.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15391 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-15 20:28:01 +00:00
Andreas Köhler a611cec8b1 Fix the module name in two backend/file tests.
gnc-backend-file has been renamed to gncmod-backend-file, so all tests
should use that new name.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15390 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-15 20:27:58 +00:00
Andreas Köhler f1de45a420 Drop gnucash-config and gnucash.m4.
GnuCashs APIs, ABIs, and libraries are not designed for third-party
development, so do not encourage it at this point of time.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15379 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-14 19:38:11 +00:00
Andreas Köhler 5d8552f07c Drop variables GNC_LIBDIR and GNC_MODULE_DIR.
Both are equal to pkglibdir and only used in src/bin/, even mixed with
pkglibdir. The module installation paths are hard-coded to pkglibdir
anyway, so we do not provide that flexibility right now.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15378 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-14 19:38:05 +00:00
Andreas Köhler b749d1f585 Add DYLD_LIBRARY_PATH variable to the gnucash script.
On MacOS, the load-extension calls need DYLD_LIBRARY_PATH to be set to
find the libraries. This was missing in the startup script.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15377 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-14 19:38:01 +00:00
Andreas Köhler de7f075fd5 Use double-clicks in general import dialogs.
In the import account matcher and import transaction match picker tree
views, let double-clicks on rows close the corresponding dialogs.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15347 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-12 23:02:47 +00:00
Andreas Köhler f0cc9650ba Use double-clicks in the qif import druid. Fix #395325.
In the account picker dialogs, double clicks now close the dialogs. More
importantly, these dialogs are showed as a result of double clicks
(row-activated) instead of selection changes. This lets the user choose
the matching account more than once if there is only one item to match.

Introduces new i18n strings


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15336 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-11 22:16:23 +00:00
Andreas Köhler dae1442ed2 Avoid crash in QIF import, page payees/memos. Fix #392707.
On the payees/memo page in the QIF import druid, provide the callback
for line clicks the correct display information and not the one of
another/previous page. This slipped in r14588, 2.0 is crash-free.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15332 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-09 20:18:08 +00:00
Andreas Köhler 5c16caedbf Make GnuCash work on Windows again.
* add $prefix/lib/gnucash to $PATH
* move all modules to $prefix/lib/gnucash, even if not compiled with
  '-module'. This happens in install.sh after 'make install', so add
  $prefix/lib/bin to PATH and GNC_MODULE_PATH or move the dlls manually
  if you run 'make install' yourself
* distribute only the .la files for the shared libraries
* shutdown gconfd-2 in dish.sh so that inno can access the schemas.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15328 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-07 21:33:26 +00:00
Andreas Köhler 4ef738101e Translate expenses in mortgage/loan druid. Fix #393436.
Mark the names and memos of expenses (Taxes, Insurance, PMI, Other
Expenses) in the Mortgage/Loan Setup Druid for translation. Spotted by
Fabrice Kurz.

Introduces new i18n strings
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15327 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-07 15:42:22 +00:00
Andreas Köhler 3657baff03 Adjust box packing in payment dialog. Fix #393024.
When enlarging the Payment Dialog window, space is currently allocated
to each widget equally.  The only widget that would benefit from
additional space is the Transfer Account tree.
Patch by cardinal@dodds.net.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15326 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-07 14:18:01 +00:00
Andreas Köhler 985046f959 Actually translate "Remove Splits".
The button label in the warning dialog about reconciled splits when
removing splits from a transaction used N_ without gettext, so was
untranslated.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15325 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-07 14:17:55 +00:00
Andreas Köhler 1a376999ec Update for 2.0.4 release.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15324 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-07 13:04:50 +00:00
Andreas Köhler 9652b5b5a1 Rename businessmod-core.c and businessmod-gnome.c.
Move these two files to gncmod-business-core.c and
gncmod-business-gnome.c, resp., to better match the common naming.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15323 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-07 07:04:59 +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 96e1ed071d Call g_module_make_resident in qof backend provider modules.
If the GncModule system finds a QofBackendProvider module M before that
has been initialized by QOF, M will register itself with QOF but does
not mark itself as resident, so the module system will unload it again,
leaving bogus pointers in QOF. Now it does.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15320 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-07 07:04:17 +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 348c8cce3e Make GnuCash compile from a git repository.
Patch gnc-svnversion to check for .git, but in the top-level source
directory instead of src/gnome-utils. Use the output of "git-rev-parse
HEAD" as version string.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15292 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-01 16:47:32 +00:00
Andreas Köhler baa9f30239 Configure from a relative path on Windows, because gnucash-build-env
will not work with top_srcdir begin absolute.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15275 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-28 22:14:36 +00:00
Andreas Köhler 20d5166d8a No need to manually exclude test subdirectories from mingw build
anymore, since r15260.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15270 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-28 14:33:42 +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 aa665d1d89 Use `cp -a' in dist.sh. Let inno create guile.bat (which sets
GUILE_LOAD_PATH) and slibcat, because the user running GnuCash later on
may not have the rights to do that.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15251 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-23 18:50:20 +00:00
Andreas Köhler 6739f10fea Fix slib installation within inst_guile, a regression introduced by
r15246.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15250 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-23 12:36:33 +00:00
Andreas Köhler 741bd0abf1 Avoid crash when renaming page in a page-less window by returning if
there is no current page. Fixes #388841.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15249 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-23 06:51:00 +00:00
Andreas Köhler c3272290ea Strip libdir directives in distributed libtool .la files, because they
may point to still existing libraries that will be dlopened and conflict
with those loaded on startup.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15248 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-23 06:41:31 +00:00
Andreas Köhler 643de6fae9 Fix install.sh typo, spotted by hfelton.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15247 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-22 11:10:38 +00:00
Andreas Köhler cef6ed4b1f Various install.sh improvements:
* Use $GNUCASH_DIR\\{repos,build,inst,dist} as directories for the
  source, build, installation and packaging
* `mkdir -p' cannot handle backslashes, use unix paths
* Downgrade to ORBit2-2.13.3
* Print command to create /etc/profile.d if needed


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15246 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-21 23:09:04 +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 af0dc642d2 install.sh: Ease registration of environment variables. Fix dist.sh to
set PATH for unzip and gconftool-2.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15244 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-21 19:19:09 +00:00
Andreas Köhler 94947a75db Do not distribute share\guile\1.6\slibcat and let slib recreate it once
GnuCash is started for the first time.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15239 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-21 01:07:02 +00:00
Andreas Köhler c0db3c7dd7 install.sh: Make gnome installation relocatable again.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15227 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-18 19:39:05 +00:00
Andreas Köhler eb6ca3e6d7 install.sh: Do not call pkg-config-msys.sh from within
pkg-config-msys.sh. Use correct header directory for regex (differs
between v3.8 and v3.8.g.3). Untested.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15224 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-18 02:53:14 +00:00
Andreas Köhler 8d288704d7 Do not determine SWIG_LIB by running swig -swiglib, because we do not
make use of it and it made problems on MinGW (output was two lines).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15223 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-17 18:32:18 +00:00
Andreas Köhler d7120c002c Revert r15216, because the actual guile dll file names differ from those
in builds of revisions <15213.
Replace shebang in packaging/win32/functions by a local variables list.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15221 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-16 02:50:23 +00:00
Andreas Köhler 989da8757d Add dist.sh, a script that extracts all necessary files needed to run
GnuCash on Windows and puts them into $DIST_DIR. The plan is to call the
Inno Setup Compiler from it and create gnucash-$ver-setup.exe with one
command. A complete GnuCash build on MinGW is needed to run it.
Factor out common functions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15214 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-15 14:36:45 +00:00
Andreas Köhler eed0933fdf Install.sh improvements:
* Replace RegEx-Gnu by RegEx-Spencer 3.8, because GtkHTML is linked
  against that
* Update fontconfig, use expat-2.0.0.zip from ftp.gnome.org, drop
  inst_expat
* Use $GNOME_WIN32_URL/dependencies for other packages too
* Build guile with -avoid-version


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15213 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-14 22:32:01 +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
Andreas Köhler 4018fd17ab Drop argv-list-converters.[ch], because its use was removed by r12942
when we switched to a more C-based start-up.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15167 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-02 18:03:13 +00:00
Andreas Köhler 36e5eb23ec Save window size and position of the transfer dialog.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15166 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-02 02:46:30 +00:00
Andreas Köhler 26f4dd062a When progress bar is showing, do not make menus and toolbars
insensitive, but rather the underlying action groups. This way even
keyboard accelerators will not make sneaking calls while saving.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15162 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-29 19:46:34 +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
Andreas Köhler e0cbea3e7a Replace remaining _WIN32 macro tests by G_OS_WIN32 ones.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15097 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-08 21:06:59 +00:00
Andreas Köhler 7ebf6b80b7 Add swig base-typemap double gdouble. gnc-progress-dialog-set-value
should work again now.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15096 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-08 20:50:45 +00:00
Andreas Köhler 084159c80d Default directory tweaks:
* replace gnc_init_default_directory by gnc_get_default_directory and do
  gconf query there
* remove gnc_extract_directory, but add gnc_set_default_directory
* do not save default directory with trailing (back)slash anymore


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15095 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-08 16:40:41 +00:00
Andreas Köhler 30abc747ec Work around a bug in the MSYS bash (which generates 0x01 smilies when
handling some command substitutions), by adding a wrapper script for
pkg-config.exe.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15093 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-07 00:23:53 +00:00
Andreas Köhler 6ff291e2c9 Do not simply touch install-sh because we need that from automake
--add-missing. Warn the user if he has put install.sh in ., .., or
..\.. from the repository. Improves r15037.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15092 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-06 23:52:44 +00:00
Andreas Köhler 674cb55874 Inform the user about 'gnucash-docs' package when Help is selected with
no content. Fixes #347102.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15081 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-03 19:50:54 +00:00
Andreas Köhler b3f2483ec6 Make gnc-dense-cal:month_name to use g_date_strftime instead of strftime
so that it returns a clean UTF-8 string.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15080 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-03 19:49:13 +00:00
Andreas Köhler 4605519e70 Some win32 package updates:
- Updated versions: MinGW, GLib, ATK, Pango, GTK+, Gail, LibGnome,
                    LibGSF, Glade, SVN
- Move autotools up in the chain (guile1.8 will need that)
- Stick with GOffice 0.3.0 (newer version need code changes), but
  provide patch for 0.3.2
- Other minor install.sh improvements


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15076 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-01 22:43:00 +00:00
Andreas Köhler e9bff107fc Another NULL %s-printf.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15070 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-01 21:14:30 +00:00
Andreas Köhler 3773eb5ce8 Fix two NULL %s-printf's.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15069 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-01 20:46:12 +00:00
Andreas Köhler d55270e287 Fix gnc_history_generate_label to search for the correct dir separator
and not to crash when there is none.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15068 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-01 20:45:35 +00:00
Andreas Köhler d3ded67d47 Automatically update the gconf search path on windows. Add a
force_slashes parameter to gnc_path_get_gconfdir to get a slash
separated path instead of using G_DIR_SEPARATOR (backslash).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15067 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-01 19:36:06 +00:00
Andreas Köhler f54d0980f2 Update slib url to stick with old version 3a3.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15058 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-26 20:45:33 +00:00
Andreas Köhler a986b57043 Fix typo in reset.sh.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15055 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-21 18:31:05 +00:00
Andreas Köhler db409d6cee Replace xaccTransAppendSplit by xaccSplitSetParent in a few scheme
files.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15053 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-21 13:26:59 +00:00
Andreas Köhler 821b3ad587 Correct order of account and split parameters to xaccSplitSetAccount in
a few scheme files.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15052 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-21 13:26:46 +00:00
Andreas Köhler 653c34fa93 Correct xaccTransactionSetDescription to xaccTransSetDescription in a
few scheme files.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15051 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-21 13:26:31 +00:00
Andreas Köhler cc8d0c9163 Unlink ${SWIG_DIR}\INSTALL because it bites with /bin/install.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15047 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-20 15:59:50 +00:00
Andreas Köhler e99befc7bb Correct gnc_gconf_add/remove_notification to avoid printf'ing NULL and
therefore crashes on Solaris and Windows. r14675 had fixed that, r14945
(me) undermined it though.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15041 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-18 21:08:26 +00:00
Andreas Köhler 500b53f9ee Make gnucash.bat work.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15040 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-18 19:45:12 +00:00
Andreas Köhler 4724a70e4a Make win32 compile again.
* Add a few GUILE_LIBS
* Remove platform specific .so from a load-extension parameter


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15039 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-18 18:15:32 +00:00
Andreas Köhler 72db146b86 Adjust install.sh to better cope with current HEAD.
* Replace g-wrap by swig
* Bump SVN_REV (prior SVNREV_FLAG) to HEAD
* Remove backup files in the repository to cleanup `svn status'


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15038 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-18 18:03:09 +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
Andreas Köhler e60faaee40 Do not svn:ignore g-wrap files anymore.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15025 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-16 01:28:08 +00:00
Andreas Köhler 198a2df8eb Repost goffice-0.3.0-patch.diff, with gtk-doc.m4 included.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15007 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-11 17:09:32 +00:00
Andreas Köhler 38d082642c Lessen restriction of the parameter whoami of the gnc_gconf_add/
remove_notification functions. Now the pair of section and whoami has to
be unique, as GncMainWindow adds notifications to two different
sections. Extends r14675.
Remove a superfluous leading slash and doubly defined gconf key macros.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14945 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-09 16:45:53 +00:00
Andreas Köhler 56dde9935b Remove "closing last window" confirmation dialog and corresponding
warning (reverting r14580). Fixes #355392.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14944 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-09 16:45:40 +00:00
Andreas Köhler 39eeb73fca Unconditionally call AC_CONFIG_HEADERS for libgsf and goffice config
header files. This way automake and config.status agree upon the list of
these files. Otherwise, in rare cases, make distclean might not remove a
file stamp-h5, making distcheck fail.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14932 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-06 16:02:37 +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
Andreas Köhler 5d9609b053 Correct account compatibility check with top level account.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14923 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-02 17:37:55 +00:00
Andreas Köhler a8c8a4f280 Initialize sort order in query lists. Fixes #357481.
BP



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14905 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-09-27 13:55:35 +00:00
Andreas Köhler 9c4cf55144 Ease account type changes in the account dialog after OK is clicked.
Before, we did not enforce compatibility with the parent account and
suggested to change only children or children and all parent accounts up
to the top-level one. We do enforce it now and only need to look at the
children.

The filling of the hash of (children) account (type) changes has been
replaced by showing the user a filtered account tree and the types are
adjusted recursively once the user verified the change.

This is another attempt to resolve #344966.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14899 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-09-26 22:09:06 +00:00
Andreas Köhler efcddd5e7e Free a list in import-account-matcher.c.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14898 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-09-26 22:08:52 +00:00
Andreas Köhler 311c85ac9b Make the account type list in the account dialog dynamically filtered
based on compatibility to the parent account.

* add gnc_account_parent_changed_cb. Filter by valid_types & parent
  compatible types
* add aw->preferred_account_type to remember what we chose but may not
  work currently
* make valid_types a guint32 (was GList*)
* last_used_account_type is only set in gnc_ui_to_account



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14897 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-09-26 22:08:34 +00:00
Andreas Köhler 9718dda4df f_model is not always set in gnc_tree_model_account_types_get_selection
because of a bug in gtk+ (#357791). Also add
gnc_tree_model_account_types_get_mask.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14896 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-09-26 22:08:22 +00:00
Andreas Köhler e18efa1191 Add gnc_tree_model_account_types_set_mask and bind mask to the filter
model instead using it as data of the filter function, because those can
only be set once per filter.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14895 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-09-26 22:08:09 +00:00
Andreas Köhler e15f0d6a7b Add xaccAccountTypesCompatibleWith and change xaccAccountTypesCompatible
to use that.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14894 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-09-26 22:07:55 +00:00