Commit Graph

12566 Commits

Author SHA1 Message Date
Geert Janssens
c299f2444b Remove popt references
- popt has been replaced with the GOption infrastructure.
So there's no need to include the popt.h file.
- Also rewritten the comment that was elaborating on popt
vs GOption
- Finally removed the loglevel option (which was excluded from
the compile anyway) that still referred to popt.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18726 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 20:51:15 +00:00
Geert Janssens
13e0eef469 Fix minor spelling errors
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18725 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 20:47:47 +00:00
Phil Longstaff
cd0b4fe145 When creating lists of database objects, use g_list_prepend() rather than g_list_append(). There may be cases where the list order is significant and thus needs to be reversed, but that is not true in these cases. This provides a large improvement in database loading performance.
Analysis and basis patch supplied by Donald Allen.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18724 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 20:11:22 +00:00
Geert Janssens
61937bc3dd Update documentation references to Active Perl (5.8->5.10)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18723 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 19:53:37 +00:00
Geert Janssens
56f6f2c82a Remove redundant entries in EXTRA_DIST
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18722 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 19:49:28 +00:00
Christian Stimming
04e042eb90 More experimental cmake building.
Except for the scheme wrappers this seems to work until
at least the engine module. However, I didn't tackle the issue
with the generated headers which contain some installation
paths - but those we should get rid of anyway.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18721 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 19:44:59 +00:00
Phil Longstaff
f084ab3020 Fix bug 591177: Printer font is too small to read with webkit as html renderer.
From comment 23:
"The PDF in comment 2 is about 8 times smaller than it should be. One possible cause of this bug is if gtk_print_operation_set_unit (op, GTK_UNIT_POINTS) is not called. gtkprint defaults to GTK_UNIT_PIXEL - a useless unit to be using with printers.

On Linux GTK_UNIT_PIXEL units are 1 unit = 1/72 inch (the same as GTK_UNIT_POINTS as well as PostScript and PDF units). On Windows GTK_UNIT_PIXEL units are the GDI device units which for printers is the dpi resolution. So for a 600dpi printer 1 unit is 1/600".

If the application was developed on Linux and assumes the default gtkprint units are always 1/72" inch the output on Windows using a 600dpi printer will be 72/600 = 0.12 of the size (or approximately 1/8 of the size)."

Solution was to use webkit_web_frame_print_full() which allows us to provide our own GtkPrintOperation object with units set to GTK_UNIT_POINTS.  Tested on both Linux and Windows.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18720 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 19:44:11 +00:00
Christian Stimming
17fa30c6b3 Move two gtk-dependent files from src/core-utils to src/gnome-utils.
core-utils depends on glib and additionally guile and gconf, but
not (yet) gtk. Those two files which do are moved to the next
module which already depends on gtk, which is gnome-utils.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18719 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 19:14:02 +00:00
Geert Janssens
939744677f Add dutch translation to the Windows installer.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18718 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 18:30:30 +00:00
Christian Stimming
dec9dd39fc Add some experimental CMakeLists.txt which can compile the libqof part, on Linux, Windows/mingw and (no joke) Windows/MSVC.
I'm interested in some tests with the cmake build system, but
if it doesn't prove useful I will remove it again within a
few weeks.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18717 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 17:52:24 +00:00
Christian Stimming
e3599d54a3 Make libqof compatible for MSVC9.0 compiler (no joke).
The main change is that the syntax for variadic macros is
slightly different in MSVC compared to gcc. But they exist, so
offering the log macros in the different syntax is sufficient.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18716 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 17:38:35 +00:00
Christian Stimming
28d296d96d Make more header inclusions conditional on whether they exist.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18715 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 17:38:14 +00:00
Christian Stimming
78595343b2 Bug #610675: Revert the gnc-main-window parts of r18637 because it makes the tab names disappear under Windows.
This disables the enhancement of bug#608329 again, but
the disappearing of the tab names is a rather major bug.

Note that we either need to fix the enhancement again,
or revert the rest of r18637 as well so that the account
properties don't show the color chooser without any effects.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18714 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 17:37:53 +00:00
Christian Stimming
a9e2a574f0 Bug #605802: Fix input of Japanese characters in register with SCIM, IIIMF and XIM
Patch by Yasuaki Taniguchi. Revised and extended version of r18638.

The main functions are as follows:
(1) synchronization of preedit string between the register window and
sheet->entry,
(2) application to pango attributes to preedit string in the register window,
(3) include scroll offset patch (id=153514),
(4) include preedit string rollback patch (id=153518),
(5) fix formula and account cells input problem which Christian pointed out,
(6) surpress quick-fill when preedit string exists,
(7) fix Windows IME problem.
(8) Fix quick-fill problem.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18713 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-23 20:46:41 +00:00
Christian Stimming
e1960b4103 Update .gitignore, proposed by Jeff Kletsky
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18712 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-23 20:28:20 +00:00
Christian Stimming
b83517abd9 Bug #610348: Add compiling our own binary of libbonoboui because the ftp.gnome.org binary still depends on the obsolete libxml2.dll.
However, we still download the erroneous binary and unpack it into $GNOME_DIR
because libgnomeui depends on libbonoboui which in turn depends on libgnome.
Hence, libbonoboui cannot be compiled before libgnome-dev is unpacked, but
libgnomeui won't report to be installed correctly before libbonoboui is
available as well. Theoretically, we would have to split the inst_gnome step
so that it first unpacks libgnome et al., then we run the inst_libbonoboui
step, then we run the second part of inst_gnome which would be something like
inst_gnomeui. I'm lazy, so I silently overwrite the libbonoboui DLL with
our hand-compiled version and that's it.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18711 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-23 20:10:31 +00:00
Christian Stimming
a598e25d19 Updated Japanese translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18710 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-23 20:04:30 +00:00
Geert Janssens
0577a09492 Change file loading message to "Loading user data..."
Reading file is technically only correct for files not for databases.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18707 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-22 15:47:33 +00:00
Geert Janssens
0918b03678 Bug #608032 - MySQL timeout and no attempt reconnect, second version
This version builds on Phil's implementation of the dbi error callback
functions to test for a timeout and to do the reconnect.

The same error handling is equally implemented for postgres and sqlite.
Unlike MySQL these two database types don't actually generate timeouts, but the
functionality can be used later on for other error types as well.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18706 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-21 23:10:54 +00:00
Geert Janssens
9d5db48742 Make sure file urls actually contain path information or are NULL
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18705 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-21 23:04:44 +00:00
Geert Janssens
01f10135be Remove redundant GLIB check.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18704 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-21 18:47:42 +00:00
Geert Janssens
80e38458f8 Bump minimum required versions of gtk+, goffice and gtkhtml
gtk+: 2.10
goffice: 0.5.1
gtkhtml: 3.14

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18703 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-21 18:30:32 +00:00
Geert Janssens
3c7c04d699 Bug #610051 - Crash when using GktHtml whenever a report is opened
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18702 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-21 17:23:43 +00:00
Geert Janssens
31ee1513f6 Add a starter script for gnucash under ddd (a gui frontend for gdb)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18701 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-21 15:50:13 +00:00
Geert Janssens
a858e4a48c Build fixes for EL5 after glib 2.12 requirement
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18700 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-21 00:27:59 +00:00
John Ralls
8c4fa1f762 Ensure that GNC_DOT_PATH and other gnc_dotgnucash_dir() logic is
used for all cases, remove hard-coded references to /usr/etc,
    /usr/share, /usr/local/etc, and /usr/local/share while providing
    for xaccResolveFilePath to actually search the data and sysconfdir
    directories used in the build.
    
    (gnc_build_data_path): New function, just a copy of
    gnc_build_book_path. Needed for rewrite of xaccResolveFilePath.
    (xaccResolveFilePath): Cleaned out the hard-coded paths and weird
    file path contruction functions and rewrote the function to use
    gnc_path_get_foo and gnc_build_data_path without all of the silly
    indirection. Removed superfluous URI checks (which are correctly
    perfomed by xaccResolveURL()).
    (MakeHomeDir, xaccPathGenerator, xaccDataPathGenerator)
    (xaccUserPathGenerator): Deleted; their functionality is replaced
    as noted above.

    (check_file_return_if_true): Renamed check_file_return_if_valid, a
    more descriptive name.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18699 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-20 22:01:05 +00:00
Christian Stimming
00629d9834 Updated Slovak translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18698 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-20 20:01:33 +00:00
Cristian Marchi
19e20b4915 Update of Persian translation by Mehdi Alidoost
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18697 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-20 15:56:50 +00:00
Geert Janssens
86c7ae019c Bump glib2 minimum requirement to 2.12.
At the same time, remove all the conditional code and workarounds
that were in the code to cater for glib < 2.12.

Note: this commit will require a rerun of autogen.sh and configure.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18696 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-20 13:57:10 +00:00
Geert Janssens
13ce6a10ee Bug #610348 missing dependencies in windows build
Update gnome-vfs to 2.24.1
Note that this means Windows 2000 is no longer supported.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18695 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-20 13:26:19 +00:00
Geert Janssens
ce990807be Partial fix for bug #610321 Compile errors with gtk-2.10.4: GTK_BUTTONBOX_CENTER undeclared
GTK_BUTTONBOX_CENTER is replaced with GTK_BUTTONBOX_START

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18694 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-20 01:59:37 +00:00
Geert Janssens
ccf46258e5 Display the SX variables in the "Since Last Run..." dialog in ASCII order
rather than ordering by hashvalue (i.e. no order at all) as was done previously.
Patch by Jesse Weinstein.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18693 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-20 00:25:31 +00:00
Geert Janssens
0e00cfd225 Add bzr support to gnc-svnversion. Patch by Jesse Weinstein
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18692 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-20 00:17:41 +00:00
Geert Janssens
b008a11984 README referred to a non-existent file
So per a suggestion on IRC, I took the reference out. Patch by Jesse Weinstein.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18691 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-20 00:00:58 +00:00
Christian Stimming
8345fff2c6 Win32: Update libxslt version, but it needs its own copy of libxml2.dll.
Apparently the gnome-provided libxml2 has the DLL filename libxml2-2.dll,
but the binary from xmlsoft.org still has the filename libxml2.dll.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18690 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-19 22:12:28 +00:00
Christian Stimming
89e197771a Win32: And one more dependency upgrade (causes missing libxml2.dll complaints otherwise)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18689 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-19 21:06:50 +00:00
Christian Stimming
5485983166 More win32 dependency version updates.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18688 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-19 20:50:01 +00:00
Christian Stimming
e99a57f8e3 Updated Dutch translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18687 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-19 19:42:09 +00:00
Geert Janssens
3bac2105e8 Fix bug #564380 additionally for easy invoice and fancy invoice.
Patch by Mike Evans.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18686 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-19 17:03:06 +00:00
Geert Janssens
2ff0d7507d Update libpng package dependency for win32 to 1.4.0
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18685 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-18 16:22:23 +00:00
Geert Janssens
c25d050c18 Small spelling fixes in the comments
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18684 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-18 15:46:46 +00:00
Geert Janssens
043b6139c9 Bug #610047 - Dutch accounts template doesn't work
Add missing closing brackets

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18683 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-18 13:02:33 +00:00
Christian Stimming
a824e611e2 Re-indentation of source code, next batch.
This also strips trailing whitespaces from lines where they existed.
This re-indentation was done using astyle-1.24 using the following options:

astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header

Discussed at http://lists.gnucash.org/pipermail/gnucash-devel/2009-August/026121.html

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18675 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-18 05:31:54 +00:00
Christian Stimming
28632f6638 Bug #609044: Improve UI strings for tax report options
Patch by Frank H. Ellenberger:

As we currently have a nice US income and a partial german VAT tax report, I
feel uncomfortable with the change of r18413, which renamed Edit->Tax options
to Income Tax options. So here is another approach, to clarify the tax report
and business tax menu points.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18674 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-18 05:29:28 +00:00
Christian Stimming
b5dfe33219 Bug #609043: Improve (mostly german) translation of txf
Patch by Frank H. Ellenberger:

This patch is a first extract of so an approach, which I have here, which will
probably lead to a german income tax declaration ESt-A1. But this extract is
more general and based on r18413 changes.

Changes:
1. Header Comments: adding Contributors
2. Most strings in de_DE translated to german.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18673 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-18 05:28:50 +00:00
Christian Stimming
e93496f04d Bug #608032: Handle MySQL connection timeouts with reconnect
Patch by Tom van Braeckel:

For the full discussion, see the mailing list:
https://lists.gnucash.org/pipermail/gnucash-devel/2010-February/027323.html

Rationale: When we try to open a database transaction, and the database reports
that the "server has gone away", we try to reconnect before failing hard.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18672 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-18 05:28:22 +00:00
Christian Stimming
7746357490 Bug #609005: Add recipient name on invoices
Patch by Mike E:

Having set up a client/customer including the name of a recipient when I print
an invoice the recipients name ("Account Dept" say) is not printed in the
invoice.  I think this is a bug rather than a feature.  I have attached a patch
to fix.

It still prints the company name above the recipient name however.  I could
submit an additional patch to provide an invoice option to toggle printing of
the company name if users/developers feel they want this option, as I do.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18671 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-18 05:27:55 +00:00
Christian Stimming
320906c277 Bug #609603: Windows packing/win32/install.sh PATH fix
Patch by Yasuaki Taniguchi:

When I run /c/soft/gnucash/inst/bin/gnucash or gnucash.cmd after I finish
building win32 binary, DLL missing dialog boxes pop up.

Missing DLLs are
 - libgcrypto.dll,
 - libPQ.dll,
 - mysql.dll, and
 - ssleay32.dll.

This patch add search path to them to fix this problem.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18670 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-18 05:27:17 +00:00
Geert Janssens
d30a59b46e Bug #564380 Payment on bills doubles bill
Patch by Mike Evans

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18666 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-17 10:51:10 +00:00
Christian Stimming
4e99711ef8 Update gnome package versions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18664 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-16 21:45:34 +00:00