* qof_time_format_from_utf8 converts an strftime format specification
from UTF-8 to the locale encoding
* qof_format_time calls strftime repeatedly with growing allocated
buffers until the result fits into one, or return NULL
* qof_formatted_time_to_utf8 converts the result back to UTF-8
* qof_strftime takes similar arguments to strftime, but in UTF-8
* the conversion functions on Windows are implemented in qof-win32.c to
allow them to use windows.h, as they need wcstombs and mbstowcs
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15795 57a11ea4-9604-0410-9ed3-97b8803252fd
Handle two NULL parameters to %s in printfs. In
gnc_update_state_file_keys, also use \r for splitting the contents into
lines.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15793 57a11ea4-9604-0410-9ed3-97b8803252fd
off the environment variable GNC_AUTO_SCRUB_LOTS instead of commenting
it out of the code. This make it easier for developers to test/users
to try lot scrubbing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15791 57a11ea4-9604-0410-9ed3-97b8803252fd
re-implement gnc_lot_get_earliest_split and gnc_lot_get_latest_split
using xaccSplitDateOrder. This greatly simplifies the functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15790 57a11ea4-9604-0410-9ed3-97b8803252fd
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.
This code was originally committed to trunk as #15458 on 1/28/07, and
then backed out with #15461 on 1/29/07. Backward compatibility
support for this code was committed to the 2.0 branch in #15460 and
was released as part of 2.0.5. Now that 2.0.5 has now been out for
six weeks, this commit puts the original changes back into trunk.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15787 57a11ea4-9604-0410-9ed3-97b8803252fd
Change GncDenseCal to be a composite widget using GtkDrawArea, rather than
being a "native" widget; much more straightforward implementation. Update
some GTK API usage for deprecation/modernity.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15786 57a11ea4-9604-0410-9ed3-97b8803252fd
The scrolled windows for "transfer to" and "transfer from" now take the
treeviews directly and do not pack them into viewports, letting them
actually scroll the scrolled window.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15782 57a11ea4-9604-0410-9ed3-97b8803252fd
main window (#338161). Also add a tooltip showing the account full
name to the page labels in the main window (#343239).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15774 57a11ea4-9604-0410-9ed3-97b8803252fd
GtkPrint/GtkHTML as combination is not yet stable enough to use it by
default. It seems however to be the way to go, so all necessary changes
are only commented out.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15771 57a11ea4-9604-0410-9ed3-97b8803252fd
environment variable or via a command line option. Based on a patch
from James Radley. Implements #328762.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15760 57a11ea4-9604-0410-9ed3-97b8803252fd
to move to the tab immediately to the left, or to move to the most
recently viewed tab. Implements #346314.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15759 57a11ea4-9604-0410-9ed3-97b8803252fd
the date (GtkPrint only), and for setting the font used by the check
printing code (GnomePrint and GtkPrint). The fonts actually used by
GnomePrint seem very limited compared to those used by GtkPrint, but
the font size specification always seems to be honored.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15753 57a11ea4-9604-0410-9ed3-97b8803252fd
Update glib, cairo, pango, gtk+ and gtkhtml. Drop libgnomeprintui, but
keep libgnomeprint because goffice depends on it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15750 57a11ea4-9604-0410-9ed3-97b8803252fd
Use GThreading system when available, but depend on it on Windows.
Gzipped data files are still loaded by libxml2. On write, again create
a pipe p and a thread t that gzwrites bytes read from p to a given file.
After the other thread has finished writing to p, it waits for t to
return to avoid loss of data.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15748 57a11ea4-9604-0410-9ed3-97b8803252fd
pexports somestimes crashes in a new MSYS shell if a path, like the one
to a header file, contains "..".
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15747 57a11ea4-9604-0410-9ed3-97b8803252fd
Read environment variable GNC_DOT_DIR and, if available, use this
instead of `g_get_home_dir`/.gnucash. This allows one develop without
impacting an existing stable installation, excepting shared GConf
keys. Setting HOME does not help, because g_get_home_dir prefers
passwd entries.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15746 57a11ea4-9604-0410-9ed3-97b8803252fd
GNUCASH_{APP_UTILS,GNOME_UTILS,REGISTER_CORE}_{CFLAGS,LIBS} and
GNC_FALSE have been completely unused. GNUCASH_ENGINE_{,BASE}_* could be
moved to its only user engine/Makefile.am.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15745 57a11ea4-9604-0410-9ed3-97b8803252fd
The HTML Help Workshop includes htmlhelp.lib, but we cannot use it for
creating DLLs---it is a static thingy. So test with -shared in
install.sh. It would be nice to have a similar test improvement in
configure.in.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15744 57a11ea4-9604-0410-9ed3-97b8803252fd
If GtkHTML uses GtkPrint, reports and checks will use it, so GnomePrint
is not needed. Also, remove some spurious GNOME_PRINT_{CFLAGS,LIBS} from
Makefile.am files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15742 57a11ea4-9604-0410-9ed3-97b8803252fd
Remove gnc_{save,restore}_print_settings, revert part of r15733.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15735 57a11ea4-9604-0410-9ed3-97b8803252fd