Phil Longstaff
e822188f65
The webkit used on win32 has webkit_web_frame_print_full() defined in include files, so we don't need a potentially conflicting extern declaration.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18835 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-05 17:56:02 +00:00
Phil Longstaff
be4fce5ed5
If gmtime_r is defined as a macro, undef it
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18834 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-05 17:55:01 +00:00
Geert Janssens
8a66cc528b
Add svn:ignore to src/core-utils/test
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18833 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-05 17:01:38 +00:00
Geert Janssens
ab9a4060c2
Remove invalid target (got copied from src/engine/test)
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18832 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-05 16:56:19 +00:00
Geert Janssens
23361112f1
Build test-core before core-utils
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18831 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 22:49:43 +00:00
Geert Janssens
65e51d1592
Add the core-utils tests in the automake system
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18830 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 22:48:38 +00:00
Geert Janssens
2b2f1ac001
Move filepath related tests to core-utils/test
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18829 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 22:13:58 +00:00
Phil Longstaff
78d8fba84e
Undefine localtime_r as a macro (new mingw pthreads package defines it)
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18828 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 22:06:23 +00:00
Phil Longstaff
210472586c
Add braces to make if-if-then-else structure clear and avoid GCC 4.4.0 error message
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18827 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 22:04:23 +00:00
Geert Janssens
98bfef5845
Remove gncmod-test from test-core
...
It's not used and prevents test-core from being included in core-utils tests
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18826 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 22:03:42 +00:00
Christian Stimming
3aac125c18
Add copyright notices in cutecash source code files.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18825 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 21:44:38 +00:00
Phil Longstaff
4ebca1d785
Add missing NULL sentinel at end of g_strconcat() function call
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18824 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 21:39:47 +00:00
John Ralls
5cedef8da8
Removed erroneously re-created src/engine/gnc-filepath-utils.c
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18823 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 21:20:28 +00:00
Christian Stimming
c804244c17
Cutecash: Copy some more icons into the program. Add a clickable hyperlink.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18822 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 21:05:58 +00:00
Geert Janssens
fbf05a2522
Move binreloc library include
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18821 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 20:53:21 +00:00
Christian Stimming
f5f17c227e
Note the moved files in POTFILES.in.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18820 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 20:28:17 +00:00
Christian Stimming
0df2d5f8d5
Remove C executable from cmake as it is no longer necessary.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18819 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 20:04:35 +00:00
Christian Stimming
1bf6bd2e38
Add missing link library after r18811.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18818 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 20:04:15 +00:00
Christian Stimming
2d045b67ae
Adapt cmake to the file move in r18811.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18817 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 19:50:45 +00:00
John Ralls
870aed7740
Add src/engine/test/test-resolve-url
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18816 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 19:21:52 +00:00
Christian Stimming
dffacfefc7
Finish cmake build system for the C++ experiment.
...
To build this:
mkdir build-cpp
cd build-cpp
cmake ..
make
./src/gnc/cutecash
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18815 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 17:48:36 +00:00
Christian Stimming
6087cfd688
C++ experiment: Extend the AccountModel into a table with name and description.
...
Use QString everywhere as well.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18814 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 17:48:12 +00:00
Christian Stimming
4708f169ea
Win32: Add download of cmake, disabled by default.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18813 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 17:47:51 +00:00
Christian Stimming
d84edc52d8
MSVC compatibility: strftime() doesn't know "%T" here. Also, g_fopen doesn't work, but fopen does.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18812 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 17:47:28 +00:00
Geert Janssens
58680c35b8
Move gnc-filepath-utils and dependencies from engine to core-utils
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18811 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 16:32:54 +00:00
Geert Janssens
2e5c6f1cee
Typo fixes, as found by doxygen.log, patch by Jesse Weinstein
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18810 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 10:31:41 +00:00
Geert Janssens
ed33fc5226
Tweak to gnc-svnversion's bzr section, patch by Jesse Weinstein
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18809 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 09:53:57 +00:00
Phil Longstaff
4054482bf8
Use "template-account" property to get/set template account.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18808 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 00:58:28 +00:00
Phil Longstaff
2eaa8345a9
Add "template-account" to schedxaction as a gobject property.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18807 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 00:56:41 +00:00
Phil Longstaff
b4172691ea
Simplify handling of sx template_acct column.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18806 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 23:37:51 +00:00
Phil Longstaff
c080f3a8bd
GDate values weren't being properly fetched from objects to be saved in a database column if they were fetched as a gobject property.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18805 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 23:34:49 +00:00
Christian Stimming
dbb5d0ddda
C++ experiment: Add first simple model/view widget for the loaded account list.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18804 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 21:50:49 +00:00
Phil Longstaff
3b4183839c
Clean up account column in the lot table to specify that the guid is an account reference. Simplifies the code a bit, and makes future use of foreign keys easier.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18803 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 21:34:01 +00:00
Christian Stimming
91fd0d2f31
Bug #611140 : Fix crash on Open Subaccounts (hopefully).
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18802 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 20:59:58 +00:00
Christian Stimming
b71802aefd
Some more C++ work. Opening an existing file works, even though nothing is visible so far.
...
The implementation of a scoped_ptr wrapper around a C object
uses the boost library, though, because writing our own
implementation of a scoped_ptr with custom deletion function
is too non-trivial and I rather re-use the boost::shared_ptr
here instead of making our own mistakes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18801 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 20:47:31 +00:00
Christian Stimming
b7b34b87c9
Rename GNCBook into QofBook everywhere and remove separate header gnc-book.h.
...
The former was already #define'd on the latter, so its removal gets
rid of one level of indirection which makes function lookup easier.
Also, the macro (!) qof_book_get_slots was turned into a normal
function again because that's what functions are for (and otherwise
the additional declaration in engine.i would break).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18800 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 20:47:10 +00:00
Christian Stimming
44b63315df
Decrease compiler warnings by removing unused variables.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18799 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 20:46:41 +00:00
Christian Stimming
f6bf61feb5
Reduce compiler warnings by replacing strerror() with g_strerror() and similar glib replacements.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18798 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 20:46:20 +00:00
Christian Stimming
04ffda604b
Win32: Add more header includes where necessary to avoid using undeclared functions.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18797 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 20:45:58 +00:00
Christian Stimming
e1f8c70137
Comment out unimplemented function. Improve const-correctness.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18796 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 20:45:37 +00:00
Phil Longstaff
1077f321da
If building for WIN32, use webkit_web_frame_print_full() so that a GtkPrintOperation object with the correct units can be used to prevent font size problems (see bug 591177). On other platforms, use webkit_web_frame_print() because some distros seem not to have webkit_web_frame_print_full() (and also don't have the font size problem so on those distros, we don't need to create our own GtkPrintOperation object).
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18795 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 16:49:49 +00:00
Geert Janssens
46a3f05062
Include gtk/gtk.h instead of gtk/gtkclist.h as recommended by Gtk
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18794 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 11:14:12 +00:00
Geert Janssens
f220f915f7
Fix make dist
...
r18765 introduced test target test-resolve-url, but no source file test-resolve-url.c
Removed the target.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18793 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 10:03:52 +00:00
Geert Janssens
c554d73687
Bug #610321 - Compile errors with gtk-2.10.4: GTK_BUTTONBOX_CENTER undeclared
...
This commit applies a reworked version of the patch to remove the use of GHashTableIter
by Cristian Klein. Cristian's patch didn't apply cleanly to the current trunk.
I have made the necessary changes to make it apply (and hopefully do what
Cristian intended).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18792 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 22:38:29 +00:00
Christian Stimming
ef2f73dcb7
Re-indentation of source code, next batch: src/gnome-utils/*
...
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@18791 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 21:42:11 +00:00
Christian Stimming
136ac8f6e1
Re-indentation of source code, next batch: src/register/*
...
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@18790 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 21:41:39 +00:00
Christian Stimming
3cb8499445
Re-indentation of source code, next batch: src/business/*
...
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@18789 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 21:41:05 +00:00
Christian Stimming
763e4c3d15
Re-indentation of source code, next batch: src/engine/*
...
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@18788 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 21:40:28 +00:00
Christian Stimming
ce99c42871
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 --suffix=none
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18787 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 21:40:02 +00:00
Christian Stimming
b325f24c91
Replace and-let* in scheme script so that srfi-2 isn't needed.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18786 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 21:23:52 +00:00