Commit Graph

14995 Commits

Author SHA1 Message Date
John Ralls
36b58bc44c Fix make-testfile to count references in UI files
Some functions may be called only by callback reference in a GtkBuilder
XML file (*.glade, *.xml, or *.ui). Indicate that usage in the test-file
function summary.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22259 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-07-02 21:24:07 +00:00
Cristian Marchi
aaa5ea7a5b G_CONST_RETURN is deprecated in 2.3. Patch provided by Aurimas Fišeras.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22257 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-07-02 18:07:01 +00:00
Cristian Marchi
ffd839ed66 Make strings translatable in auto clear dialog. Patch provided by Aurimas Fišeras.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22256 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-07-02 18:03:27 +00:00
Phil Longstaff
edf2284a46 Re-add function gppat_filter_select_default_cb() mistakenly removed in commit r21578. It's not used by C code, but is by the .glade file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22255 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-07-01 21:48:19 +00:00
John Ralls
c976bfe1e8 Fix "discarded return value warning" from r22203
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22254 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-07-01 20:20:28 +00:00
Phil Longstaff
b6a07f0bfb Add basic budget unit tests
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22253 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-07-01 18:45:51 +00:00
Geert Janssens
91a6fb5be5 Wrong parameter is used to load from and save to kvp
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22252 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-29 14:45:12 +00:00
Geert Janssens
1c39c2cffb Bug #494861 - Business reports lose a/p & a/r account options
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22250 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-29 14:28:48 +00:00
Geert Janssens
b21a649717 Bug #678848 - Customer/Vendor reports off-by-one on start date
Additionally removes a superfluous module load
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22248 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-28 16:13:11 +00:00
Geert Janssens
e0e41d221f [PATCH] Fix tip-of-the-day with gcc-4.7
When making the text file tips-of-the-day, GnuCash expects 'gcc -E' to
preserve at least one of the whitespace lines between entries. However, this
relies on behavior of 'gcc -E' that isn't actually part of the spec, and is
a historical accident. And it changed in gcc-4.7, such that all the
whitespace is removed.

Work around this by explicitly adding a newline in the sed expression.

Pre gcc-4.7 there will be two newlines between tips, but this has no impact
on the tip displaying code.

Patch by Bill Nottingham
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22246 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-27 20:33:03 +00:00
Geert Janssens
0efa576a18 Bug #677572 - 3-part check format
Created by Andrew Hunt

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22245 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-27 17:43:26 +00:00
Geert Janssens
fe043bf731 Bug #631611 - Check printing fails because fonts are too tiny on Windows
Lesson learned: don't use cairo_identity_matrix on a cairo_t managed by
GtkPrintContext. It kills a number of transformations that were already
configured by GtkPrintContext. On Windows this breaks proper scaling.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22243 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-27 15:52:03 +00:00
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