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
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
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
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
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
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
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
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
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
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
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
* 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
* 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
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
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
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
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
* 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
* 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
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
* 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