Commit Graph

14871 Commits

Author SHA1 Message Date
John Ralls
ac09df5fc0 [Bug 680402] Tests fail due to unused translations
Add all scheme files to POTFILES.skip so that intltool-update > 0.50
will ignore them. Scheme file translation strings are handled by intl-scm/.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22298 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-09 22:45:04 +00:00
John Ralls
e925c5c310 Configure won't accept python on Debian Wheezy
Debian Wheezy uses python2.pc instead of python.pc. Check both.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22297 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-09 22:44:53 +00:00
Geert Janssens
f37c6fab09 Bug #677859 - Allow space to (un)reconcile in the reconcile window
This got lost in the conversion from clists to gtktreeview
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22296 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-08 16:25:21 +00:00
John Ralls
bf2b8b2ccc Fix a compile error in test-gnc-date.c on 32-bit builds
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22294 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-08 05:38:44 +00:00
John Ralls
66cc460d46 [Bug 680613] Date format setting seems to be ignored since version 2.4.9
Work around strange side-effect of r21665 which caused LC_TIME to be
changed after it had been set by setlocale(LC_ALL) in set_mac_locale().

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22293 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-08 05:38:34 +00:00
Geert Janssens
5143c3c005 Bug #677859 - Remove depreciated CList functions
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22292 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-07 18:24:13 +00:00
Geert Janssens
7358bcc62d Bug #672161 - New CSV account and transaction importer
Final patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22291 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-07 17:25:12 +00:00
Geert Janssens
c5e2adcb7a Refactor safe_strcmp into the glib standard g_strcmp0
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22290 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-07 17:24:55 +00:00
Geert Janssens
a54e7149bf Initial code for a new register.
This is very incomplete, but at the same time well isolated from the
rest of the code, so it is easy to disable should it not get functional
and stable before the next major release.
I decided to include it in trunk to give it more visibility and prevent
bitrot in the patch.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22289 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-07 17:24:33 +00:00
Geert Janssens
1ef66b2ce0 Bug #680887 - RELAX NG schema for 2.4.11 XML file format
Contributed by Baptiste Carvello
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22287 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-05 13:28:29 +00:00
Geert Janssens
0182bc6fd4 Adapt payment dialog for credit notes.
To deal with all possible combinations, a user must set a debit or
credit amount for the payment. In most cases the right amount is
prefilled by selecting documents from the list.
In the process, this changes gets rid of some confusing sign reversal
logic in the payment code (gncOwner.c).

WARNING FOR SCRIPTERS: if you have written python or scheme code that
relies on gncOwnerApplyPayment, be careful: you now need to pass a
signed amount to the function instead of an absolute value, because a
payment could be for both an invoice/bill or a credit note. No more sign
reversals happen internally based on the owner being a vendor or a
customer.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22286 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-04 16:09:04 +00:00
Geert Janssens
185881ad0b Payment dialog - amend r22263
Properly fix selection of documents when first loading the dialog

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22285 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-04 16:08:55 +00:00
Geert Janssens
34b23e3282 Avoid windows with saved positions to reopen off-screen if possible
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22284 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-04 16:08:43 +00:00
Geert Janssens
dfd355d194 Cleanups in save/restore window position and sizes
- remove depreciated check on GtkObject flags (no longer required imo)
- save position and size on window destruction consistently
- add save and restore to some additional assistants (not all so far)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22283 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-04 16:08:31 +00:00
Mike Evans
ae735f39e7 Bug #680576 - Transaction report: date takes up two lines when using Canadian locale format.
Change date cells type from text-cell to date-cell to apply white-space: nowrap
style.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22281 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-04 12:01:37 +00:00
Frank H. Ellenberger
9bc245da9d Bug 680671: configure should check for the python-devel package if called with --enable-python
https://bugzilla.gnome.org/show_bug.cgi?id=680671
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22279 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-04 02:01:40 +00:00
Geert Janssens
95e7587ec9 Double click on parent account expands/collapses child account list
instead of opening the account's register. The account's register can
still be opened normally using the menu option or right-click popup
menu.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22278 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-02 13:31:57 +00:00
Geert Janssens
3f5105198d Remove unused, depreciated functions
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22277 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-01 13:54:32 +00:00
Geert Janssens
cb992f0423 Remove depreciated Option functions - part 3
There were some more option menu functions in dialog-utils that I could
not find being used any where and this patch removes them.

Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22276 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-01 13:54:19 +00:00
Geert Janssens
c2365214d4 Remove depreciated Option functions - part 2
This patch removes the option menu functions from gnc-date-edit which
come under the setting of time option. I do not think this bit is used
but can be seen if you find a GNCDateEdit and set the second option to
TRUE.

Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22275 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-01 13:54:10 +00:00
Geert Janssens
1286a896a6 Remove depreciated Option functions - part 1
The option menu's that appear in dialog options rely on per item tool
tips that GtkComboBox did not have. From a comment in the code, this was
highlighted on bug http://bugzilla.gnome.org/show_bug.cgi?id=303717
which implies this is now fixed but I could not see a way of adding them
so I created my own basic combo with per item tooltips.

This basic combo uses an external list store to reduce the functions
needed and can be seen when changing report settings. It look like it
does the job OK but may be I have missed something. 

I have added comments in the code in areas that would need to be changed
if GtkComboBox ever has per item tool tips.

Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22274 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-01 13:53:58 +00:00
Derek Atkins
41f54fbe5e Remove (unused) LIBXML_VERSION from configure.ac (#680708)
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22272 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-07-27 15:45:41 +00:00
J. Alex Aycinena
a401751448 Add ability to import a csv column to 'notes' field; fix 'OK' and 'New Account' button widths
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22271 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-07-25 22:28:53 +00:00
Geert Janssens
439fd6ec25 Properly calculate amount to pay when post-to account is not the first
in the list when opening the payment dialog.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22263 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-07-09 17:54:23 +00:00
Geert Janssens
5210dea832 Modify one tip of the day to illustrate the use of \n in tips
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22261 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-07-07 16:06:36 +00:00
Geert Janssens
c79f5161e4 Rewrite the tip-of-the-day parsing logic
Since commit 22246, an empty tip of the day appears in the list of tips.
This is due to the way the file is parsed.
This commit rewrites the parsing logic to avoid such problems. As an
added bonus, you can now add newlines in tips by using '\n' in the
string.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22260 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-07-07 16:04:19 +00:00
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