Commit Graph

12924 Commits

Author SHA1 Message Date
Geert Janssens
0e5e0e2227 Have the gnucash binary setup its required environment by itself
- New "environment" config file that holds the environment modifications to make
- Added a parser for this file that does the actual modification
  of the environment (in gnucash-bin.c)
- Eliminate the old gnucash-setup-env script

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18994 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-05 14:48:22 +00:00
Geert Janssens
c0819c34c4 Configure: fix password store test
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18993 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-05 09:21:15 +00:00
Phil Longstaff
0a5fc8223d Fix #588816 - Heading Banner Image does not display or print on invoice reports
Along with a new version of webkit which properly handles local image files, a change was needed so that instead of creating an html string and feeding it directly to webkit, it is exported to a temp file which is then loaded as a file:// URI.  On Linux, if this is not done, any embedded images do not appear, and there is a console message that local resources can't be loaded.  On Windows, the embedded images don't appear, possibly for the same reason, but I'm not sure where the console messages go.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18992 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-04 23:55:53 +00:00
Phil Longstaff
8e71388367 Upgrade win32 version of webkit from 1.1.5 to 1.1.90.
This version contains changes required to fix #588816 (Heading Banner Image does not display or print
on invoice reports).  Note that this bug won't be fixed until some gnucash changes are checked in as well.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18991 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-04 21:22:19 +00:00
Geert Janssens
7eb21eb712 Configure: group platform dependent tests
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18990 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-04 20:11:18 +00:00
Geert Janssens
e134a06cac Can't add or update currencies in 2.3.11
Reported by Markus Scheffler on Apr 2 via gnucash-user ML

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18989 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-03 08:13:21 +00:00
Christian Stimming
56e0a53e28 Updated Danish translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18988 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-02 18:45:08 +00:00
Christian Stimming
8410ef5a1e Fix missing printf format string
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18987 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-01 16:20:39 +00:00
Geert Janssens
1955731412 Bug #525821 - new or edited account names should be checked for reserved chars like ":"
Addendum: Fix compatibility with older Gtk versions.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18986 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-01 07:43:13 +00:00
Christian Stimming
1c8830180a Cutecash: Slightly decrease debug output verbosity.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18985 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-31 19:43:43 +00:00
Geert Janssens
f06363cf2a Bug #525821 - new or edited account names should be checked for reserved chars like ":"
This patch checks if the separator character is used in account names when loading
a data file, or when changing the separator character in the preferences.
If the separator character is incompatible with some account names, a warning
dialog box is popped up explaining the situation. This dialog also lists the
violating account names.
Additionally, the preferences dialog will show a warning sign as long as the separator
clashes with some account names. The tooltip for this sign will also display the
violating account names.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18984 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-30 22:19:39 +00:00
Christian Stimming
17e795560d MSVC: Add creation of MSVC import library of libdbi.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18983 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-30 20:00:12 +00:00
Christian Stimming
d155edeeb5 Fix CMake for building the dbi backend.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18982 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-30 19:59:50 +00:00
Geert Janssens
ad2d750a4c Bug #613963 - GnuCash opens empty window when no state file is found
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18981 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-30 15:32:25 +00:00
Geert Janssens
d301700893 Fix indentation with astyle
The indentation was mixed up due to the unusual IF_TYPE macro, now removed.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18980 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-30 14:41:54 +00:00
Geert Janssens
32baf843e2 Replace IF_TYPE macro with a validation function
The macro is quite ugly: it's not a complete if condition (missing closing bracket)
which makes the code using it difficult to read and error-prone.
Even astyle got confused by it.
The replacement code is slightly longer (two lines per replaced IF_TYPE invocation)
but clean and readable.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18979 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-30 14:29:53 +00:00
Geert Janssens
ac6e872f84 Bug #612566 - Build failure with glib 2.10 - undefined gdk_color_to_string - part 2
Create the necessary HAVE_GTK_2_12 check in configure.in

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18978 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-30 10:58:43 +00:00
Geert Janssens
5f5f5a88f9 Bug #612566 - Build failure with glib 2.10 - undefined gdk_color_to_string
From modified patch by Bob

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18977 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-30 10:56:57 +00:00
Geert Janssens
746a4ca003 Remove redundant page tab setting code.
The tab is set again some time later in the gnc_main_window_connect function.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18976 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-30 10:20:14 +00:00
Geert Janssens
814ea90389 Add svn:ignore properties
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18975 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-28 22:14:13 +00:00
Geert Janssens
5d006dad74 Bug #605802 - Can't input Japanese characters at an account register window on windows with SCIM, IIIMF and XIM
This patch by Yasuaki Taniguchi fixes the business register.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18974 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-28 21:09:57 +00:00
Christian Stimming
c6e5d407e3 Cutecash: Fix missing #ifdefs for dbi calls.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18973 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-28 10:46:10 +00:00
Christian Stimming
bc411c57db Code cleanup in binreloc: Remove unused init_lib function. Add possibility to set the looked-up exe path from somewhere else.
Remove symbol mangling because r18940 already added the gnc_* prefix,
hence the symbol names are unique to gnucash anyway.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18972 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-27 22:08:17 +00:00
Christian Stimming
50163126ea Re-indentation of source code (sql parts).
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 --suffix

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18971 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-27 21:02:18 +00:00
Christian Stimming
88d3b83579 Re-indentation of source code.
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 --suffix=none

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18970 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-27 21:01:56 +00:00
Christian Stimming
a322015eb8 Rename the type GUID into GncGUID because on Windows, the system headers have a type GUID which clashes with ours.
Note that only the type was renamed, but not any enums or function names.
Hence, the scheme wrappers should be unchanged completely (hopefully).

Discussed at http://lists.gnucash.org/pipermail/gnucash-devel/2010-March/027679.html

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18969 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-27 21:01:21 +00:00
Christian Stimming
932eeb766d Cutecash: Compile & link SQL backend as well (but there is no GUI for this yet)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18968 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-27 20:27:10 +00:00
Christian Stimming
d5742f24fc Cutecash: Fix memory leak of missing cleanup of RecentFileMenu object.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18967 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-27 10:24:07 +00:00
Phil Longstaff
a383ad4875 Add business backend sql test infrastructure.
At this point, the test creates a customer, saves it to an sqlite3 db, loads it and compares the original and the loaded customer.  Will be expanded to test other business objects.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18966 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-26 19:15:56 +00:00
Phil Longstaff
1905fb8670 Add deep comparison routines for test purposes
1) Add routine gncCustomerEqual() which will do a deep comparison between two customers
2) Add routine gncAddressEqual() which will do a deep comparison between two addresses
3) Add more GncAddress gobject parameters for the remaining data items


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18965 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-26 19:13:34 +00:00
Geert Janssens
978002f0e3 Bug #613655 - Cannot load MYsql data, fix invalid state file name
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18964 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-25 22:08:34 +00:00
Phil Longstaff
eeb86ec6c3 Changes in dbi test infrastructure
1) Now that the various objects .c files can compare objects in different books, remove the duplicate copies.
2) Create a .la so that the business sql test code can use some common test infrastructure.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18963 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-25 20:45:07 +00:00
Phil Longstaff
962512ab7d Extend xaccXXXXXEqual() routines so that they can compare objects in different books to see if they have the same contents.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18962 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-25 18:32:40 +00:00
Christian Stimming
b53205e903 Set some more line-ending style properties.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18961 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-24 19:28:20 +00:00
Christian Stimming
fd0a7c2469 Set some more line-ending style properties.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18960 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-24 19:23:58 +00:00
Christian Stimming
c172bc7ee4 Set the desired line-ending style to the correct value on the server side.
Without the svn:eol-style property, SVN checkouts on windows tend to appear
with varying line endings. The only possible way around this in svn is to
set the expected line endings as svn properties.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18959 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-24 19:18:08 +00:00
Phil Longstaff
3fdbb0a412 Update dbi tests - more object types are now saved and loaded
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18958 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-23 21:43:05 +00:00
Phil Longstaff
cc843b4506 Add new CPP macros which make it cleaner to have conditional compilation based on compiler/system and options selected during config
Examples:

#if COMPILER(MSVC)
#if COMPILER(GCC)

#if ENABLE(NLS)
#if HAVE(PUTENV)

This platform.h file includes config.h, so that doesn't need to be included any more.

PLATFORM(X) is based on the definition of GNC_PLATFORM_X
COMPILER(X) is based on the definition of GNC_COMPILER_X.  At this point, only COMPILER(GCC), COMPILER(MSVC), COMPILER(MSVC7) and COMPILER(MINGW) are determined.
HAVE(X) is based on HAVE_X from config.h
ENABLE(X) is based on ENABLE_X from config.h
USE(X) is based on GNC_USE_X from config.h

Having these determinations at a central point makes it easier to add new platforms and easier to conditionally compile based on them.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18957 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-23 18:34:17 +00:00
Phil Longstaff
7b69a7f00f Create splits->accounts sql index and tx->post_date index when creating new databases
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18956 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-23 14:31:43 +00:00
Christian Stimming
2a3d00c24f MSVC compatibility: MSVC must not use g_fopen because it uses a different C runtime than the rest of (MSVC) file-handling functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18955 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-22 21:15:15 +00:00
Christian Stimming
dfc294652d MSVC compatibility: Always initialize all members of the QofObject struct.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18954 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-22 21:14:38 +00:00
John Ralls
ead0ae8571 Cleanup cruft and an error from r18945
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18953 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-22 20:43:38 +00:00
Geert Janssens
c928dc6a26 Open/Save As...: configure enter/double click to run the default action.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18952 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-22 20:31:10 +00:00
Geert Janssens
4f01227882 Whitespace cleanup
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18951 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-22 14:44:56 +00:00
Phil Longstaff
f35eea0358 Fix #613574 - Cannot create/save new employees using MySQL backend
Wrong gobject property name used when creating "username" property - sql backend couldn't read it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18950 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-22 11:31:03 +00:00
Christian Stimming
ccaad41e0f Cutecash: Add more event handler to the account windows so that they will be deleted upon book closing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18947 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-21 21:38:33 +00:00
Christian Stimming
b0116c16a8 Cutecash: Code cleanup. Avoid crashes when undoing adding of new transactions by not deleting the tmp transaction object.
Also, correctly set the document state to "clean" after saving.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18946 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-21 21:37:50 +00:00
John Ralls
8fe9fee93f Fix bug #613375
Odd that this affected only OSX, as the fix is clearly consistent with the GtkLabel "ellipsize" property documentation. (I.e., the packing "expand" property must be TRUE on notebook labels.)




git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18945 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-21 20:38:12 +00:00
Christian Stimming
bf7cc0097e I18n: Mark forgotten string for translation. Pointed out by Yasuaki Taniguch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18944 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-21 19:47:39 +00:00
Christian Stimming
19c86d924a Updated Japanese translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18943 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-21 19:43:56 +00:00