Commit Graph

14650 Commits

Author SHA1 Message Date
Mike Alexander
2e2edc1375 Make parallel build work in core-utils with python bindings enabled.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21604 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-21 05:43:38 +00:00
Mike Alexander
ce3143c4be Avoid warning returning a boolean result in python bindings.
Getting "dereferencing type-punned pointer" doing Py_INCREF on Py_True and Py_False.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21603 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-21 05:43:29 +00:00
Christian Stimming
da217aa506 Fix the broken code of the reconcile list widget to not mess up the GtkCList class structure.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21602 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 21:43:23 +00:00
John Ralls
a32c6f5d5d [Python] Suppress the spew from loading the python module
Use --extra if you want it back.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21601 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 18:27:17 +00:00
John Ralls
4ee898d90b [Python] Export core-utils SWIG wrappers to Python.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21600 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 18:27:00 +00:00
Christian Stimming
adb4a6fee6 Fix missing linker flag
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21599 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 10:20:15 +00:00
Geert Janssens
92f17e2989 Fix load errors in import-export tests
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21598 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 09:35:06 +00:00
Geert Janssens
ceffe5dadc Fix failing xml backend test.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21597 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 09:34:57 +00:00
Geert Janssens
b8c7e0af80 Spelling fixes in doxygen comments
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21596 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 09:34:45 +00:00
Geert Janssens
575c811df8 Fix failing python-bindings tests.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21595 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 09:34:23 +00:00
Geert Janssens
1ab89c8e84 Fix load warnings in gnome-utils tests
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21594 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 09:34:11 +00:00
Geert Janssens
01f7149061 Fix load warnings in report-gnome tests.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21593 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 09:34:01 +00:00
Geert Janssens
69a1320fa3 Fix load warnings in standard-reports tests
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21592 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 09:33:50 +00:00
Geert Janssens
fa28ef8cf4 Move eguile balance report to business-reports as it depends on business
utils.
This is a source code move, the report will remain in the same menu location
in the GUI
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21591 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 09:33:38 +00:00
Geert Janssens
3ff4234b2a Fix load warnings in report-system tests
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21590 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 09:33:26 +00:00
Geert Janssens
6e3ff537ab Partly revert previous commit. Although it eliminated a couple of
warnings in the tests, it also broke most reports.
This needs more study.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21589 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 09:33:13 +00:00
Geert Janssens
c8a72df337 Fix load warnings in utility-reports tests.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21588 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 09:32:54 +00:00
John Ralls
e62e56c1c3 [Cruft Reduction] Remove unused functions in src/engine -- reprise
Delete a bunch more functions left commented out from r21579

Remove references to deleted functions from gnucash_core.py

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21587 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-19 22:42:02 +00:00
John Ralls
b5dece7e2c [potfiles] Rename payment.glade, moved in r21572
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21586 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-19 22:41:41 +00:00
Christian Stimming
b379a2fd18 More checking of the read-only flag of the book.
- GncEntryLedger switches to read-only
- Toolbar actions of several plugin pages switch to insensitive
  (invoice, normal register)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21585 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-19 11:49:00 +00:00
Christian Stimming
21216a137a Extend File->Open dialog on locked file: Offer to open read-only as well.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21584 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-19 11:48:42 +00:00
Christian Stimming
eb7e2f4be9 Fix compiler warning about /* inside comment. (Can't be nested.)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21583 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-19 10:42:48 +00:00
Christian Stimming
5b4fa6128a Another minor revert of "[Cruft Reduction] Remove unused functions from src/engine"
The compiler complains if there is no previous declaration of the non-static
function xaccSplitSetSlots_nc.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21582 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-18 21:56:07 +00:00
Christian Stimming
c1381f5ca4 Minor reverts of "[Cruft Reduction] Remove unused functions from src/engine"
Those two functions are in use in the C++ code.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21581 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-18 21:53:28 +00:00
Christian Stimming
0214098fdc Add the possibility of multi-selection in the invoice/bill search window (but so far still disabled).
Eventually, this should enable multi-duplication of a selection.
However, my gtk-2.20 seems to be broken w.r.t. multi-selections in
GtkCList, so I better have this available only in newer gtk and so far still deactivated.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21580 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-18 21:53:13 +00:00
John Ralls
eeaa897be1 [Cruft Reduction] Remove unused functions from src/engine
Nothing in gnc-session-scm.c was being used, so deleted it and its corresponding header.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21579 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-18 21:04:01 +00:00
John Ralls
e1ce730560 [Cruft Reduction] Remove unused functions from src/gnome-utils.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21578 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-18 21:03:40 +00:00
Geert Janssens
921bba1ad2 Fix xml backend to load and save invoice kvp values.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21577 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-18 10:26:02 +00:00
Geert Janssens
f1ac0f18ac Adapt printable invoice report for credit notes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21575 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-17 22:24:31 +00:00
Geert Janssens
3338a102e3 Fix autofill on credit note ledgers.
Note: this introduces a subtle change in how autofill works for business
ledgers: quantities will from now on always be autofilled to positive
values. See the comment in the code for more details.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21574 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-17 22:24:22 +00:00
Geert Janssens
1357c9e737 Fix subtotal sign in credit note ledger
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21573 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-17 22:24:13 +00:00
Geert Janssens
0313539a88 Convert payment dialog to gtkbuilder
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21572 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-17 22:24:03 +00:00
John Ralls
f4749ef3ed [Cruft Reduction] Remove unused functions from src/app-utils
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21571 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-17 21:27:56 +00:00
John Ralls
a2cd913a5c Fix clean targets and DIST_SOURCES
Several subdirectories have a subdirectory "gnucash", which clean tried to remove by including in the CLEANFILES variable in Makefile.am. This doesn't work, because directories can't be removed with rm, they require rm -r. Add a clean-local: target which calls rm -r on the gnucash subdirectory.

Some Makefile.ams used an AC_SUBSTed variable to define an optionally-compiled subdirectory, then included the variable in SUBDIRS and the actual directory name in DIST_SUBDIRS. This breaks the distclean and maintainer-clean targets when the optional directory is built, because it is then processed twice, and there is no Makefile the second time so make halts. Replaced the AC_SUBSTed variables with ones local to the Makefile.am, switched with an AM_CONDITIONAL. That way automake can figure out the dist_subdirs on its own.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21570 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-17 21:27:40 +00:00
Christian Stimming
3365baa7ed Take into account the read-only flag of the book to update the buttons in the register accordingly.
Also, the register itself must be read-only.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21569 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-14 21:28:32 +00:00
Christian Stimming
411261ae17 Remove obsolete documentation texts.
Those are so insanely obsolete, it hurts our eyes.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21568 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-14 19:43:20 +00:00
Geert Janssens
0992192e39 Bug #663433 follow up - Migrate report options dialog from GladeXML to
Builder

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21567 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-14 12:16:34 +00:00
Christian Stimming
44e679a5a3 Minor code cleanup: Rename field "primary_book" into "book" because there are no multiple books in gnucash at all.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21566 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-13 21:33:29 +00:00
Christian Stimming
55463dd5be Check the read-only attribute in the XML backend as well and refuse to save if we are read-only.
Also, add a "(read-only)" suffix in the window title if we are read-only.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21565 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-13 21:26:21 +00:00
Christian Stimming
c4c39aa964 Bug #663934: Fix potential crash on failing aqbanking setup druid lookup.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21564 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-13 21:01:31 +00:00
Christian Stimming
d25a992701 Add unittest for gnc_dmy2gdate() function to verify the correct behaviour of the by-value returned value.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21563 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-13 20:39:53 +00:00
Christian Stimming
5e1dde2018 Fix occasional not working "up / down" arrow in invoice window.
This was because the "date" field was indeed be set with a different
time of day (noon vs. start of day), depending on the various code
places.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21562 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-11 21:58:36 +00:00
Christian Stimming
3a4cd615e8 Use the GDate-based date setter of GncEntry where suitable instead of the timespec one.
This fixes the time-of-day mismatch between entering a new entry
(that was using timespecCanonicalDayTime, "noon") vs. duplicating
an invoice (that was using gnc_timet_get_today_start, "start of day").

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21561 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-11 21:58:21 +00:00
Christian Stimming
6a0f3b5a57 Add accessor/setter for the date of a GncEntry as a GDate.
This is much more suitable to avoid any ambiguities due to differently
chosen time-of-day in various parts of the code.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21560 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-11 21:58:04 +00:00
Christian Stimming
bbb529263b Add two more helper functions dealing with GDate.
In particular, glib doesn't offer a function for easily accessing
the "today" date as a GDate. What a pity. It's added now as gnc_g_date_new_today().

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21559 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-11 21:57:52 +00:00
Geert Janssens
2f51419545 Tighten gtk+ requirement to 2.18.1
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21557 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-11 11:28:35 +00:00
Geert Janssens
65892924cf Reset required gtk version back to 2.16 for glade files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21556 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-11 10:53:16 +00:00
Geert Janssens
ba0293a0d1 Don't install a script that is only used for building and testing.
This fixes Secunia Advisory SA42048
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21553 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-10 17:14:55 +00:00
Geert Janssens
875cc3e71c Make easy-invoice report credit note aware
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21552 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-10 15:05:26 +00:00
Geert Janssens
490cacf980 Adapt entry ledger to credit notes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21551 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-10 15:05:16 +00:00