Commit Graph

14733 Commits

Author SHA1 Message Date
Geert Janssens
58277b4cdd Some small code cleanups in check printing code
- Remove useless typdef, use GtkPrintOperation directly instead
- Position_combobox is read twice, remove second call

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22242 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-27 15:51:51 +00:00
Mike Evans
bf7e106aa2 Revert GUID change as per Derek's suggestion.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22241 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-26 13:03:18 +00:00
Mike Alexander
42da1e3378 Fix uninitialized variable warning in r22234.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22238 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-24 04:05:23 +00:00
Mike Alexander
805a94f3a5 Make python bindings build when using a separate build directory.
Don't symlink a (possibly non-existant) file from the source
tree on top of gnucash_core_c.py which was just generated by
swig in the build tree.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22237 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-24 03:09:33 +00:00
Mike Alexander
b58ff2ffc1 Don't lose optimization flags passed in CFLAGS.
Change r17720 has a typo that causes it to lose all -Ox flags passed in
CFLAGS when it was actually trying to preserve them.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22236 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-24 02:58:01 +00:00
Geert Janssens
b71d01975d Invoice report - display Job info in new line
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22235 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-23 14:42:35 +00:00
Mike Evans
9c4f76d5ff Bug #666576 - Balance Column Set Too Narrow
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22234 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-23 12:25:22 +00:00
Mike Evans
65c5311a1c Bug 341048 - RFE: Printable Invoice should allow display of Job Name
Add job name and number to printable invoice.  This only applies to
invoice.scm.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22233 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-23 11:57:34 +00:00
Geert Janssens
4b0b7c51f4 Bug #675201 - slight bugfix to prior enchancement post for example
scripts
Patch by Jamie Campbell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22231 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-22 15:12:25 +00:00
Geert Janssens
867db62422 Bug #678214 - GnuCash fails to open some post-processed XML files
Patch by Daniel Harding
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22229 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-22 14:36:50 +00:00
Geert Janssens
1fb8800b44 Bug #671323 - Scheduled monthly transactions lose "except on weekends"
setting when using MySQL

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22224 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-21 15:13:09 +00:00
Mike Evans
331bcf384b Add formatting to table.
Add cell padding to columns in table.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22222 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-16 11:52:51 +00:00
Geert Janssens
f841832eaf Revert some unintended testfile changes that accidentally slipped in in
r22216

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22219 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-13 15:43:57 +00:00
Geert Janssens
7af123cd60 Fix Account Report menu option when used on A/R or A/P registers.
This has been broken since r20766

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22218 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-13 15:24:21 +00:00
Geert Janssens
d7729b3140 Bug #677859 - Depreciated functions in Gtk+2.24
Replaces functions related to widget visibility.
Additionally there are some more replacements in the area's handled in
the previous two commits.
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22217 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-13 15:24:06 +00:00
Geert Janssens
0bc041acf8 Bug #677859 - Depreciated functions in Gtk+2.24
Replaces a number of widget references that are now part of gobject.
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22216 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-13 15:23:45 +00:00
Geert Janssens
79e6da77da Bug #677859 - Depreciated functions in Gtk+2.24
GtkComboBox related fixes
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22215 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-13 15:23:25 +00:00
John Ralls
784d846884 Disable test-gnc-date until it can be thoroughly tested on a wider variety of compilers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22214 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-10 22:14:35 +00:00
Christian Stimming
36654ff81a Fix windows/mingw build failure due to different struct tm length.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22213 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-10 19:59:19 +00:00
Christian Stimming
bf6e5ba95f Fix compiler error about overflow of integer calculations.
To reproduce: gcc-4.6.1 and -O2 switched on.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22212 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-10 19:32:13 +00:00
Geert Janssens
4d81214bf2 Fix credit note duplication. It was not possible to duplicate a credit
note as an invoice (aka voiding a credit note).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22211 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-06 13:52:45 +00:00
Geert Janssens
ed6cdb175c Cosmetic: move include to source file. It's not used in the header file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22210 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-06 13:52:34 +00:00
John Ralls
9ba8d832ff Adjust test_gnc_sql_convert_timespec_to_string() for 64-bit time_t
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22209 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-06 13:23:31 +00:00
John Ralls
c58e86eff7 64-bit adjustments to test-gnc-date
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22208 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-06 13:23:13 +00:00
John Ralls
0cd7032a59 Consolidate some little-used convenience functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22207 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-06 13:22:51 +00:00
John Ralls
c3d85783f0 Test gnc_sql_convert_timespec_to_string()
Note overridden failures on the second 3 values.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22206 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-06 13:22:33 +00:00
John Ralls
3c58ada1f1 Test of all major gnc-date functions, highlighting 2038 bug failures from using time_t on a 32-bit system.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22205 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-06 13:22:15 +00:00
J. Alex Aycinena
9fa5035107 Remove g_free of msg two lines before it is returned from function.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22204 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-01 22:59:48 +00:00
John Ralls
b391754ff6 Correct -Wunused warnings
The actual change to configure.ac (at line 1106) to enable -Wunused -- or rather to un-disable it -- is not included in order to not break the build for folks with buggy versions of swig.
(For example, https://sourceforge.net/tracker/?func=detail&aid=3530021&group_id=1645&atid=101645)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22203 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-26 23:47:34 +00:00
John Ralls
894f0ed126 Set PYTHON_LINK_FILES to useful values.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22202 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-26 23:46:58 +00:00
John Ralls
fff094f98a Delete remaining swig-foo.c files with maintainer-clean
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22201 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-22 17:57:37 +00:00
John Ralls
8ff333ccaa Fix compilation on OSX
One can't link a library created with -module on OSX, but one can dload
a library compiled with -shared on both OSX and Linux.

Also cleaned out the old "make check" files from test/Makefile.am

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22200 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-22 17:57:22 +00:00
Phil Longstaff
f284ba731b Fix memory leaks found by unit tests/valgrind
Return value of g_build_filename() needs to be freed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22199 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 22:36:15 +00:00
John Ralls
7423741ea3 Add EXTRA_CFLAGS for compiling on Win7
Configure gets confused by some gcc builtins on Win7: Disable them so that configure finds the right settings.

[BP]

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22197 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 22:10:00 +00:00
Phil Longstaff
0809170098 Fix some small problems (including a memory leak) found by running qof unit test with valgrind.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22193 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 18:35:59 +00:00
Phil Longstaff
140799c028 Add test-qof to svn:ignore
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22192 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 18:35:04 +00:00
Phil Longstaff
d58490b8e4 Update some svn:ignore properties
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22191 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 17:38:49 +00:00
Phil Longstaff
9267e80726 Since 2.32, GCache is deprecated and should be replaced by GHashTable.
In the new string cache (split out from qofutil.c/.h), the GHashTable has the
string as key and a small heap-allocated guint refcount as data.  The value is
allocated rather than being used by value because there is no way to just
modify the data field of an existing key.  The key would need to be changed at
the same time, which would free the old key value and invalidate all gchar
pointers of objects which have refs to the key.

Unit tests added as well.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22190 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 17:28:30 +00:00
John Ralls
43e1a7df34 [Bug #674862] Gnucash crashes after creating a new SX using the Mortgage Wizard and SQL Backend
Special-cases dbi_result_get_datetime returning -1 to work around a bug in MinGW's implementation of gmtime().

[BP]


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22188 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 15:48:41 +00:00
John Ralls
aa905346cb Revert gnc-backend-dbi.c from 22186, should be a separate commit.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22187 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 15:43:52 +00:00
John Ralls
5b602c3a93 Fix double definition of DEBUG_MEMORY
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22186 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 15:32:52 +00:00
Phil Longstaff
aeef9d36d0 Replace deprecated g_basename() by recommend g_path_get_basename()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22185 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-20 21:24:14 +00:00
Phil Longstaff
18d6031f2a Remove invalid routine arg check
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22184 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-20 21:23:07 +00:00
Phil Longstaff
0a3c14ed4b Use new GncTaxTable g-object parameters
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22183 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-20 21:22:30 +00:00
Phil Longstaff
7ea5a2bf98 Convert DBI test to utest
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22182 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-20 21:21:09 +00:00
Phil Longstaff
d1fcb82ad0 Fix some g-object parameter types
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22181 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-20 21:18:45 +00:00
Phil Longstaff
083861e225 Add some more g-object parameters for GncTaxTable
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22180 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-20 21:18:08 +00:00
Phil Longstaff
5fba6638e3 Replace deprecated g_mapped_file_free() with recommended g_mapped_file_unref()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22179 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-20 21:12:50 +00:00
Geert Janssens
e1956c80c7 Allow to change document type when duplicating an invoice.
This allows to quickly create a canceling credit note for an invoice.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22176 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-08 21:37:27 +00:00
Geert Janssens
f098ae2e39 Bug #674273 - fixes and enhancements to example simple_business_create.py
Patch by Jamie Campbell, with minimal correction to match the new ApplyPayment functions.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22175 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-08 11:39:25 +00:00