Commit Graph
100 Commits
Author SHA1 Message Date
Andreas Köhler e3834d26db Fix an ofx import memory leak and a non-ascii-path problem on win32.
On Win32, the import file path needs to be converted to the system
codepage for libofx.  Also, free it afterwards.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16296 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-07-11 20:51:54 +00:00
Andreas Köhler aa3998edb3 Update the firewall rules to match the new location of gconfd-2.exe.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16280 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-07-08 13:22:08 +00:00
Andreas Köhler 8a2238218d Use redirect.exe for gconfd-2.exe (#450052) and qt3-wizard.exe (#452382).
Move the original executables to bin\, use renamed copies of
redirect.exe at the old locations.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16277 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-07-08 13:12:37 +00:00
Andreas Köhler ef937b6697 Add win32/redirect.c, a tool spawning itself in a parent bin\ directory.
This program, called as "prog.exe (arg)*", will search for
.\bin\prog.exe, ..\bin\prog.exe and so on.  The first hit will be
spawned with the same parameters and its exit status will be the exit
status of this program.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16276 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-07-08 13:08:49 +00:00
Andreas Köhler 52e39a6a5b Fix typo in binreloc message.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16269 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-07-08 11:05:12 +00:00
Andreas Köhler 6d66455305 Win32: Add ignoreversion for the installation of bin/*, #452170.
In the switch to self-compiled openssl dlls, libeay32.dll lost
versioning information.  Without ignoreversion inno setup will not
update this file although it really should, as it is newer and has added
symbols.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16238 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-30 15:27:49 +00:00
Andreas Köhler c64b0234c8 Win32 installer cosmetics. Add src/pixmaps/gnucash-icon-48x48.bmp.
Let setup.exe use the tango icon as file icon and on page headers.  Add
a file version to setup.exe.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16224 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-27 22:18:57 +00:00
Andreas Köhler 9079d155ec Readd support for account dialogs working only on a subset of account types.
This was added in r14897, but lost in the merge r15066 of trunk into
branches/remove-group2.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16215 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-26 18:43:16 +00:00
Andreas Köhler f37db3e98f Validate date in _fixup_recurrence_start_dates, #443941 win32 crash.
This invalid date is due to a missing block <fs:once> in the data file.
Why there is such an unwanted and incomplete sx is still unclear.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16214 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-26 16:56:38 +00:00
Andreas Köhler f84f1855e2 Call gbr_init() only on ENABLE_BINRELOC, #450991. Move variables into #ifdef'ed blocks.
Also fix the leaking of a GError if gbr_init failed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16213 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-25 22:22:15 +00:00
Andreas Köhler dcfda18f7c Revert some qof_instance_get_guid() calls to qof_entity_get_guid().
Those two functions were merged into one, qof_instance_get_guid(), in
r15773, but they returned different values if the parameter was NULL.
Some code depends on the return value being guid_null(), or maybe even
NULL, so revert the changes entity->instance, where the entity is not
guaranteed to be non-NULL.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16212 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-25 17:18:28 +00:00
Andreas Köhler fa28f0e4f0 Avoid a global static variable by using g_list_sort_with_data.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16211 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-25 17:18:11 +00:00
Andreas Köhler 4251bd7f84 Return NULL on qof_instance_get_guid(NULL) again, #448853.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16201 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-22 17:42:52 +00:00
Andreas Köhler dfde8ebcb7 Do not register qof backend modules on first load, #433779.
Qof backend modules used to call qof_backend_register_provider() and
g_module_make_resident() directly in g_module_check_init(), i.e. they
could not be unloaded after the gnucash module crawler detected them.
Probably after the renaming of libgnc-backend-file the QSF backend
module started to register itself before the gnc file backend, spitting
a validation error on virtually every data file load.

So g_module_check_init() has been renamed to qof_backend_module_init()
and is now called by qof_load_backend_library().


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16200 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-22 13:31:29 +00:00
Andreas Köhler 0bca303440 Correct use of xmlNodeGetContent in qsf backend module.
Its return value is a char pointer, not a char.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16199 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-22 13:31:23 +00:00
Andreas Köhler c892d648b9 Do not call setlocale &friends from within the file backend library.
The only valid call would be to bindtextdomain, but the library does not
use a different locale directory anyway.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16198 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-22 13:31:18 +00:00
Andreas Köhler c54e436609 Remove UI and register parts of the "Enable euro support" option, #449395.
* In euro currency registers, treat the option as always-on, i.e. show
  amounts both in the old currency and EUR
* Remove the option from the preferences dialog
* Keep gconf key, but default to disabled.  If enabled, the account tree
  view page shows an additional EUR total line in the summary bar


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16196 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-21 13:28:30 +00:00
Andreas Köhler 8c5d2fe40b Avoid stripping the win drive letter on qsf export. Fixes #448900.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16184 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-18 21:08:30 +00:00
Andreas Köhler 2a2981d02d Install.sh: Fix cross-compiling of gwenhywfar and ktoblzcheck.
For real cross-compiling, this change currently depends on unreleased
gwenhywfar changes and a windows openssl installation (cannot be
cross-compiled yet).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16183 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-18 20:42:36 +00:00
Andreas Köhler 742564b795 Install.sh: Fix PKG_CONFIG_PATH tracking when cross-compiling.
One must not simply set or reset environment variables that are tracked
for changes, because add_to_env relies on accurate helper variables.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16182 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-18 20:42:30 +00:00
Andreas Köhler 4fff6de98a Install.sh: When cross-compiling, mkdir $_GUILE_UDIR/bin before using it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16181 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-18 20:42:24 +00:00
Andreas Köhler c68e465991 Install.sh: Use ld, gcc, dlltool and ranlib for cross-compiling.
Add $_MINGW_UDIR/mingw32/bin to PATH and use gcc (and friends) instead
of mingw32-gcc.  Also make sure PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR
are exported to avoid using the build machine's installed packages.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16180 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-18 20:42:19 +00:00
Andreas Köhler 84806a7206 Install.sh: Harmonize skipping messages.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16179 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-18 20:42:15 +00:00
Andreas Köhler 4f17d1fdb9 Avoid crash in QIF import, page categories. Fixes #447917.
This is basically the same typo fix as r15332 (wrong display information
used in row-activated handler).  For whatever reasons it slipped once
again.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16177 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-18 02:49:55 +00:00
Andreas Köhler dab7f892d7 Allow running autogen.sh from the build directory by cd'ing into the source tree.
The source tree is either $srcdir, `dirname $0` or .


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16174 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-17 04:12:02 +00:00
Andreas Köhler caac02f303 Fix a %s-NULL-printf if default currency is neither locale nor chosen.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16162 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-14 20:01:49 +00:00
Andreas Köhler 15707599ee Add aqbanking/wizarddir to gnucash.iss.in and fix qbanking/cfgmoduledir.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16157 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-10 00:50:13 +00:00
Andreas Köhler b253df6c8a Add exact->inexact in plots for Guile 1.8 to print parsable doubles.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16152 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-03 20:56:52 +00:00
Andreas Köhler a5355e2bd4 Handle marker shape and color options of scatter plots, #353871.
Lost in translation, Guppi -> GOffice.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16150 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-03 19:43:40 +00:00
Andreas Köhler 13b667f971 Show price scatterplot if the source is the price db and no account has shares.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16149 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-03 19:43:35 +00:00
Andreas Köhler 5d338a6932 Fix another %s-NULL-printf in the options dialog.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16143 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-02 16:36:33 +00:00
Andreas Köhler 7a6d193581 Enable libgncqof-backend-qsf on Win32 by exporting QOF_LIB_DIR.
This is not needed for the installation tree built by install.sh, but
the binary installer has to add that environment variable to the
relocatable gnucash.bat it writes out.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16142 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-01 23:13:23 +00:00
Andreas Köhler c24fca6d1e Check for QOF_LIB_DIR environment variable and try to load qof backends from there first.
This is a minimally invasive way to make qof backends relocatable and
needed for the Windows port.  Avoiding qofla-dir.h completely is
probably desirable anyway.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16141 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-06-01 22:44:33 +00:00
Andreas Köhler 8498c69a8d Readd two pixels to the widths of colored backgrounds in the dense calendar.
When drawing week backgrounds and the outer month borders, two
mysterious pixels were subtracted from the widths.  This led to two
white pixels at the end of incomplete weeks that contained the last day
of the month and belonged to the last month of a calendar column.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16139 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-30 17:44:08 +00:00
Andreas Köhler f65e8bb40a Correctly check against end of dense calendar to avoid spurious marks, #433156.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16138 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-30 16:16:41 +00:00
Andreas Köhler c6759a4e15 Unref a few pango layouts returned by gtk_widget_create_pango_layout().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16137 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-30 15:56:31 +00:00
Andreas Köhler d9808804d5 In tax report, do not set to start and end of month if from-to mode is selected, #435329.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16136 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-30 15:56:27 +00:00
Andreas Köhler 949e3d5779 Do not change internal scheme strings in place, #389740.
This fixes a crash that happened in the QIF import with Guile 1.8 after
stripping utf8 violating bytes from the internal null-terminated string
of a scheme string, as the length parameter has not been updated and a
safety check threw an error from within a critical section at a later
stage.  Just do not wrap gnc_utf8_strip_invalid but rather
gnc_utf8_strip_invalid_strdup.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16135 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-29 16:24:38 +00:00
Andreas Köhler d8bfaa0572 Fix %s-NULL-printfs in image option previewers, #441798.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16134 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-28 20:44:46 +00:00
Andreas Köhler e83103cb96 Avoid unwanted signed->unsigned conversions in dense cal computations, #441209.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16132 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-27 23:18:36 +00:00
Andreas Köhler e549c193ef Fix a %s-NULL-printf in the register, #441207.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16131 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-27 15:19:21 +00:00
Andreas Köhler 0776778be4 Use UNIX line delimiters in dist.sh as well.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16130 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-26 22:23:49 +00:00
Andreas Köhler 268dbc379c Fix dist_libxml2().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16129 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-26 22:23:46 +00:00
Andreas Köhler 6c934547d5 Ignore custom.sh instead of custom.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16128 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-24 22:04:52 +00:00
Andreas Köhler 5433712750 Fix cross compilation of OpenSP and LibOFX.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16127 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-24 16:03:34 +00:00
Andreas Köhler 5332dc2830 Do not use register_env_var PKG_CONFIG_LIBDIR and leave it unset on Windows.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16126 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-23 19:04:14 +00:00
Andreas Köhler c61a83f29f Add $LIBXSLT_DIR/bin to PATH.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16125 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-23 18:49:47 +00:00
Andreas Köhler ba20c1d712 Fix cross platform installation of libxml2, gnome and exetype.
A native rebuild of packages should not be necessary.  Just remove
libxml2-2.6.27.win32.zip from your downloads directory.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16124 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-23 17:21:28 +00:00
Andreas Köhler a9bd785b02 Use UNIX line delimiters in packaging/win32/exetype.pl.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16123 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-23 17:21:20 +00:00
Andreas Köhler 88ade04604 Integrate create_cross_mingw.sh into install.sh. Minor cleanups.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16122 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-23 17:21:14 +00:00
Andreas Köhler 911647063a Untabify major scripts in packaging/win32. Use indent-tabs-mode instead of tab-width.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16121 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-23 17:21:07 +00:00
Andreas Köhler 3ddd959fc8 Let wget download to a UNIX path.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16120 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-23 17:21:03 +00:00
Andreas Köhler 8ccadd8410 Set executable flag on a few scripts in packaging/win32.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16117 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-21 17:27:12 +00:00
Andreas Köhler 6dd242aefa Use UNIX line delimiters in packaging/win32/functions.sh.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16116 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-21 17:22:26 +00:00
Andreas Köhler 3d32f08493 Link report-gnome against engine for gnc_get_current_session().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16115 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-21 08:12:20 +00:00
Andreas Köhler f18fa0614b Improve gui component handling of report plugin pages.
Let them be closed on session shutdown by setting the session.  Call
gnc_main_window_close_page in close handler.  Unregister the component
in _destroy_widget and move _destroy into it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16104 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-19 23:19:56 +00:00
Andreas Köhler b23b36822f Add close handler for register plugin pages, just call gnc_main_window_close_page.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16103 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-19 23:19:51 +00:00
Andreas Köhler 193b0cd6a8 Unregister option dialogs from gui component list while destroying.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16102 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-19 23:19:44 +00:00
Andreas Köhler 1e327c3f2b gnc-budget-lookup, used for getter of budget option, may return '() instead of #f.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16101 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-19 23:19:39 +00:00
Andreas Köhler f17426d697 In the transfer dialog, always use bold headers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16100 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-18 23:31:49 +00:00
Andreas Köhler ff06f1a801 In reconciliation window, only show interest button if account type is CREDIT or LIABILITY.
It used to be hidden and showed again by gtk_widget_show_all.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16099 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-18 23:09:30 +00:00
Andreas Köhler 55d98f19fc Make date picker in registers visible for rtl locales like hebrew, #386816.
The calendar popup starts at x=0, but in a right-to-left interface it is
drawn to the left, i.e. out off the window.  This can be avoided by
overwriting the default direction of the surrounding horizontal box.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16098 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-18 21:41:32 +00:00
Andreas Köhler 12d95d5262 Deuglify the account selection dialog for the account search a little bit.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16097 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-18 15:14:01 +00:00
Andreas Köhler c8a63e3c73 Correct the checks for gnc:*finance-quote-{check,helper}* to use string-null?.
g-find-program-in-path returns a string---it may be empty but not #f or '().


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16096 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-18 14:54:24 +00:00
Andreas Köhler 3000cdacb5 Fix a qif import error if commission account cannot be found in the mappings, #378274.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16095 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-18 14:54:19 +00:00
Andreas Köhler fa0cc34ec2 Update the main window titles and the window list on HOOK_BOOK_OPENED.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16094 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-18 14:54:14 +00:00
Andreas Köhler 28d40a43ad In QIF import, do not cat and merge accounts if imported_account_tree is empty.
If an error occurs while importing, imported_account_tree will be set to
#f, whereas functions called by gnc:account-tree-catenate-and-merge
would expect empty lists.  So do not call that function at all.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16093 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-18 14:54:08 +00:00
Andreas Köhler 668b42be04 Patch from Thomas Klausner to enable building with goffice-0.4.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16092 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-17 13:28:48 +00:00
Andreas Köhler d6de54691d Do not remove files from history list on startup, #388500.
It is not clear yet, when and how it is best to remove inaccessible
files from the history list.  At least we should not do it on startup.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16091 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-17 13:28:43 +00:00
Andreas Köhler 1413a11989 Add some delimiters for parsing CJK dates, #437898.
On Windows, the short date formats are used, containing standard
delimiters.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16081 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-13 15:02:40 +00:00
Andreas Köhler 03ccfc502e Make search and tax info dialogs invisible at the top-most level.
On the one hand this avoids nasty redraws, so that the user need not
watch the dialogs getting filled by widgets.  On the other, on Windows
because of #436721, dialogs are not redrawn correctly after a
gtk_window_resize(), rendering at least these two dialog partly unusable
without a full redraw.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16078 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-13 00:10:08 +00:00
Andreas Köhler 23c1d1a598 Add gnc_history_remove_file, call it if the history file cannot be loaded, #388500.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16077 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-12 23:30:35 +00:00
Andreas Köhler c402307aba Further improve date parsing on Windows. Revert parts of r16049 on Unix.
The recursive parsing of %x by strptime seems to work only for complete
strings, e.g. 4.6. in de_DE or 4/6 in en_UK will not be parsed
correctly.  Therefore, readd LANGINFO_D_FMT_CHECK and use
qof_win32_get_time_format(QOF_WIN32_PICTURE_{DATE,TIME,DATETIME} on
Windows for printing and scanning.  Make get_win32_locale_string and
translate_win32_picture accessible by QOF.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16073 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-12 16:50:49 +00:00
Andreas Köhler e4b8923fb0 On strptime('%X') and Windows, first translate the time picture to a format spec, cf. #437751.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16071 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-11 20:21:18 +00:00
Andreas Köhler 5237c40147 In gnc_find_or_create_equity_account, fix crash if there is no account "Equity", #436155.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16070 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-11 17:35:00 +00:00
Andreas Köhler cc1f575c56 Update the window title after a new main window has been created, #436479.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16069 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-08 22:07:48 +00:00
Andreas Köhler 0a179cf181 Update comment in glade-fixup to Gtk+ v2.6.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16065 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-08 20:45:13 +00:00
Andreas Köhler 92491cdfb4 In the tax information dialog, add a GtkHPaned to allow resizing of the accounts treeview, #432072.
The treeview on the left hand side does not support horizontal
scrolling, so separate both sides by a horizontal paned widget.  Save
and restore its position in GConf, too.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16064 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-08 20:45:08 +00:00
Andreas Köhler 3d4136fbac Fix a NULL-%s-printf in bayes matching, #436455.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16060 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-07 18:39:51 +00:00
Andreas Köhler 9f44e3155d Do not use langinfo to determine date format spec, but %x, %X or %c.
Remove check for HAVE_LANGINFO_D_FMT.  Rather use standard strftime and
(standard?) strptime format specifiers %x (date), %X (time) and %c
(date&time, all in national representation).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16049 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-05 21:02:56 +00:00
Andreas Köhler b9664b2cab Add Windows-specific code to lib/libc/strptime.c to eat %x, %X and %c.
Originally, it came from evolution-data-server,
/libedataserver/e-time-utils.c, but was modified to not depend on GLib.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16048 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-05 20:44:24 +00:00
Andreas Köhler b7d601be25 Save column selection in import account matcher to GConf.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16043 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-04 13:30:51 +00:00
Andreas Köhler 06c2311047 Add support for ActivePerl 5.6 to install-fq-mods.bat.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16036 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-01 22:05:42 +00:00
Andreas Köhler 310f26e54d Do not set timezone to UTC on Windows, #434752.
The perl module Date::Manip needs some timezone information to work, but
cannot determine that itself on Windows.  Setting the TZ environment
variable for the gnucash process has bad consequences, so rather call
Date_Init("TZ=UTC") if TZ is unset.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16035 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-01 14:03:44 +00:00
Andreas Köhler 3cda5a70e9 Patch from Zach Sadecki to start custom check items at index 1, #434029.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16028 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-30 08:25:57 +00:00
Andreas Köhler 05f60bd341 Patch from Zach Sadecki to lower the number of annoying console windows.
* At the end of the setup, optionally run gnucash.bat hidden
* Desktop and start menu icon run gnucash.bat minimized (hidden is not
  possible here)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16024 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-29 18:32:53 +00:00
Andreas Köhler 735ccffe48 Shutdown gconfd before uninstalling GnuCash, #434271.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16023 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-29 16:11:05 +00:00
Andreas Köhler b19ff0e667 Change gconfd-2.exe to the windows subsystem in inst_gnome more often.
If for some reason gnome is reinstalled but gconfd-2.console.exe has not
been removed, the subsystem type of the newly unzipped gconfd-2.exe is
not changed again, so it will pop up a console window.  Fix that.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16022 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-29 10:18:53 +00:00
Andreas Köhler c38bcd3ed7 Drop process.scm and spawn perl to retrieve price quotes.
Use gnc_spawn_process_async, gnc_process_get_fd, gnc_detach_process and
gnc_parse_time_to_timet in price-quotes.scm, but leave the work-flow
basically as before.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16017 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-28 19:13:47 +00:00
Andreas Köhler 94dc306411 Add gnc_parse_time_to_timet, a concatenation of strptime and mktime.
This will be needed for the price quotes on systems that lack a guile
function `strptime'.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16016 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-28 19:13:43 +00:00
Andreas Köhler 433a0cd5e2 Give the child process a real chance to die before we kill it.
Improve r15997 by processing all events without blocking, maybe until
the child is dead.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16015 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-28 16:04:06 +00:00
Andreas Köhler 4fc3ccb0ba Prepend to PATHEXT and give a default TZ on Windows.
* g_find_program_in_path will find gnc-fq-{check,helper} only if . is
  added to PATHEXT
* Date::Manip needs TZ set to something reasonable (install-fq-mods.bat
  should help the user)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16014 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-28 15:32:51 +00:00
Andreas Köhler 29475d0dae Add gnc-fq-helper and TZ environment variable test to install-fq-mods.bat.
Set TZ to UTC if unset and download a price.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16013 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-28 15:28:44 +00:00
Andreas Köhler 95679ff905 Add install-fq-mods.bat to dist and start menu.
* Dist new OpenSSL correctly
* cp libssl32.dll ssleay32.dll to make Crypt::SSLeay perl module happy


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16007 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-28 11:09:51 +00:00
Andreas Köhler e8208ae756 Update openssl safety net.
* Bark on $OPENSSL_DIR/lib/libcrypto.dll.a (0.9.7)
* Bark if libeay32.dll cannot be found
* Bark if libeay32.dll is found, but not in $OPENSSL_DIR/bin
* Do not care about libs in $WINDIR


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16002 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-27 16:54:47 +00:00
Andreas Köhler 0fe7ef82ce Fix a NULL-%s-printf, #433798.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16001 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-27 14:44:26 +00:00
Andreas Köhler dd1da2b495 Append `.sh' to packaging/win32/{functions,defaults}.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16000 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-26 21:58:07 +00:00
Andreas Köhler c1263802a8 Do not double-check libraries/programs if they are installed correctly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15999 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-26 21:22:22 +00:00
Andreas Köhler df8925cc05 Build OpenSSL 0.9.8e from tarball.
Also starring:
* Add mingw32-make, as openssl will be built in cmd.exe
* Link gwenhywfar against dynamic libraries (-leay32 -lssl32)
* Install svn before openssl to have the newer ssl dlls as first in PATH


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15998 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-26 17:17:41 +00:00
Andreas Köhler 27595e43a6 Fix gnc_spawn_process_async and gnc_detach_process.
* Do not use g_child_watch_add if the spawn failed
* Give the child process a chance to die before we kill it
* Rather use g_message if file descriptors cannot be closed


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15997 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-25 18:25:34 +00:00