Commit Graph

12775 Commits

Author SHA1 Message Date
Geert Janssens
1c3889b359 Cosmetic: Remove duplicate include of gnc-engine.h
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18735 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 15:26:23 +00:00
Geert Janssens
a3145975e5 Remove trailing whitespace
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18734 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 15:25:43 +00:00
Geert Janssens
ea6cc51d8a Minor doxygen change and lots or trailing whitespace removed
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18733 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 14:09:26 +00:00
Phil Longstaff
3879cda645 Revert r18713 (reopen 605802 "Input of Japanese characters".
This commit had 2 problems:
1) when entering an account name, the account separator would no longer accept at the current level of the account tree and move to the next level
2) <SHIFT>+ and <SHIFT>- in a date field would not change the field by 1 week.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18732 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 13:39:49 +00:00
Geert Janssens
bae8f044e0 Remove GNOME_PRINT_{CFLAGS,LIBS} from the Makefile templates
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18731 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 13:07:08 +00:00
Geert Janssens
33623feab3 Spelling errors and trailing whitespace removal
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18730 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 12:14:39 +00:00
Geert Janssens
0d3bcf3eaf Remove reference to gnome print in the comments
GnuCash no longer uses gnome print. It has been replaced with gtk print.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18729 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 12:05:42 +00:00
Geert Janssens
9fa51e0c8d Remove two more popt references in support files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18728 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 11:45:25 +00:00
Geert Janssens
7bd5535140 Remove popt requirement from configure
GnuCash doesn't use it.
At the same time, I removed a check that has been commented out
since the beginning of the revision history (somewhere in 2007).
This check tested for the presence of popt.h to then run some
libtool changes. As I said this whole block has been commented
out since the beginning of time, so I considered it to be obsolete,
more even so now that the popt requirement has been removed.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18727 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 11:36:37 +00:00
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