Commit Graph

11411 Commits

Author SHA1 Message Date
Andreas Köhler
4201814cea Correct quickfill direction in transfer dialogs.
gnc_xfer_dialog_quickfill() messed up debit and credit.  When the "from
account" (left in normal mode, right/credit when using formal accounting
terms) was chosen as basis for the quickfill and a match was found, the
remote account should be selected on the "to account" side.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17149 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-05-11 00:02:14 +00:00
Derek Atkins
fda5f25019 Honor the "used columns" in the balance row (#530924)
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17148 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-05-01 22:21:53 +00:00
Andreas Köhler
eb55bb7dcc Update latest stable version.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17147 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-05-01 21:20:56 +00:00
Derek Atkins
8430b27f03 Handle AB_Job_GetResultText() returning NULL (#506499)
Don't output/printf a NULL string.  Windows doesn't like it.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17146 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-05-01 21:00:13 +00:00
Christian Stimming
adcbc5d215 Add Hebrew translation by Ori Hoch.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17144 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-05-01 09:10:30 +00:00
Andreas Köhler
db91a80c93 Bug #467529: Fix Align_n by specifying pango widths and ellipse modes for check print texts.
This patch from David Reiser reverts r16475, but by using
pango_layout_set_ellipsize() center or right aligned texts are printed
correctly and the first line is stilled showed instead of the last one.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17127 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-26 15:59:40 +00:00
Andreas Köhler
b4d3f97c53 Bug #523922: Use correct scalable icon and add/fix 22x22/24x24 icons.
For the scalable icon, use art/tango/scalable/gnucash.svg instead of
art/icon.svgz.

art/tango/22x22/gnucash.png is actually of size 24², so rename it to
gnucash-24x24.png and create gnucash-22x22.png by removing the
transparent 1px border.  Install those icons into
${datadir}/icons/hicolor/${size}/apps so that apps like gnome-panel do
not scale down the .svg instead.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17126 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-25 23:19:33 +00:00
Andreas Köhler
218cc08ad0 Bug #529232: Do not reverse the starting balance in average balance reports.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17124 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-24 22:51:57 +00:00
Andreas Köhler
371fbe6daf Update AUTHORS.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17122 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-23 19:52:52 +00:00
Andreas Köhler
cf5dcab629 Win32: Move definition of AQBANKING_PATH into make_install() as it is needed there.
Patch from Daniel Harding.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17121 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-21 20:59:59 +00:00
Andreas Köhler
7a3dc4ac7c SVK detection on Windows is not trivial :-)
Patch from Daniel Harding.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17120 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-21 20:59:50 +00:00
Andreas Köhler
862a0b12d3 Win32: Add flag UPDATE_DOCS to avoid running svn up for the docs each time.
Patch from Daniel Harding.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17119 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-21 20:59:42 +00:00
Andreas Köhler
15a8696f38 Win32: Add XSLTPROCFLAGS to be able to pass --nonet to xsltproc in make_chm.
Patch from Daniel Harding.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17118 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-21 20:59:31 +00:00
Andreas Köhler
f52e803765 Free two GErrors after they have been logged.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17093 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-20 18:07:10 +00:00
Charles Day
d9ad51488a Bug #511231: QIF importer now takes into account any provided QIF security type
when determining a default namespace for new commodities. Previously saved
security mappings for the same symbol are also considered, if available.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17090 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-18 01:55:02 +00:00
Derek Atkins
0cd5892271 Look for Align_n keys in check printing formats (#467529)
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17089 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-17 14:16:08 +00:00
Charles Day
53b254e316 Bug #512208: Upon cancellation or failure, the QIF importer now removes any new
commodities that have been created as part of the import process. In addition,
any new accounts, splits, and transactions are explicitly destroyed to avoid
leaking memory and potentially leaving splits in an Imbalance account. Also
includes some improvements to the QIF file format documentation.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17088 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-16 21:26:57 +00:00
Charles Day
f053c59549 Add a risk-reduction measure to xaccAccountStagedTransactionTraversal() in case
of a naughty thunk. Add warnings to doxygen documentation for all Account.h
functions with TransactionCallback parameters.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17087 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-16 18:00:53 +00:00
Charles Day
e2c8a2037b Bug #527886: Add support for QIF numeric formats of 12'345.67 as produced by
Quicken 4. Also support 12'345,67 for completeness. Added documentation for
this format, along with investment 'N' lines. Added two new string manipulation
utility procedures for simplification. Mild whitespace and readability cleanup.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17086 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-14 17:09:04 +00:00
Charles Day
051fb2181d Bug #523194: Fixed QIF importer so that if the user enters a combination of
namespace & mnemonic that matches an existing commodity, the existing commodity
will be used. Added some support for destroying the commodity pages. Some
readability, comment and whitespace improvements thrown in too.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17085 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-13 22:25:35 +00:00
Andreas Köhler
5904706297 Bug #347474: When tabbing off the last showed split, correctly focus new empty split.
If info->traverse_to_new is true, use CURSOR_CLASS_SPLIT as find_class
to avoid focussing the transaction.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17078 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-12 19:17:58 +00:00
Andreas Köhler
bc3bd4a097 Bug #166101: Do not overwrite first split (blank_split) of a transaction.
When entering a split transaction, the account of the top-most split is
set to the register's anchor account, even if the user chose something
different.  Avoid this by checking a flag first which signals whether
the split has been modified.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17077 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-12 19:17:50 +00:00
Charles Day
473310ef52 Bug #527459: Add QIF importer support for voided transactions.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17075 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-10 23:34:42 +00:00
Charles Day
54d94702d5 Bug #511182: Commodity mapping preferences are now preserved correctly. In
addition, use of the misleading term "stock" has been replaced by "security"
throughout the C code. Also includes a small fix to prevent passing a null
pointer to xaccAccountGetType(), which caused some critical warnings to be
logged. Some comment and whitespace cleanup as well.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17074 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-10 20:37:41 +00:00
Derek Atkins
f034c41dfb Add a new Liberty(tm) check format (GtkPrint only)
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17073 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-08 17:01:10 +00:00
Charles Day
9982dc104a Small adjustments to a few comment lines used for doxygen documentation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17072 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-07 22:28:02 +00:00
Andreas Köhler
f71b1e9e42 Free a few lists returned by gtk_container_get_children().
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17065 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-05 09:46:00 +00:00
Charles Day
66445dd9ea Improve documentation of GLib helper functions for doxygen. In particular, move
these functions out of the GConf section and fix the broken documentation of
gnc_utf8_validate(), which doesn't appear to have been written for doxygen.
Requesting backport because a significant percentage of lines have changed.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17064 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-04 15:43:17 +00:00
Charles Day
6a7585f729 Bug #396665: When any QIF file content is found that is not encoded in UTF-8,
the importer now first attempts to convert it to UTF-8 according to the locale.
If this fails, the offending bytes will be removed from the string as usual.
In addition, the user will now be informed of either of these actions via a
pop-up warning in the GUI. Each occurrence will also be logged.

This changeset also exposes the previously static GnuCash-specific UTF-8
validation C function, gnc_utf8_validate(), and creates a corresponding
Scheme predicate named "gnc-utf8?" for validating strings in this manner.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17063 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-02 18:10:35 +00:00
Charles Day
03fe82538c Bug #450354: QIF importer now tries using locale-encoded path if UTF-8 encoded
path fails. Adds supports for use of non-ASCII filenames under Win32.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17062 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-04-01 22:07:28 +00:00
Andreas Köhler
38b6a09fbc Improve cancel behavior in reconciliation window.
Allow cancelling the window by pressing ESC.  Always let the user
confirm the cancel on changes, even when closing the window with the
window manager.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17061 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-29 13:38:19 +00:00
Andreas Köhler
3480393932 Avoid a critical warning in the transfer dialog.
When entering interest charges, the left account tree is grayed out and
a selection-changed signal with empty selection fired.  Do not process
that NULL account.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17060 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-29 13:38:11 +00:00
Andreas Köhler
1abe022d06 Bug #475960: Reverse postponed reconciliation balances in suitable accounts.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17059 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-29 13:38:01 +00:00
Andreas Köhler
733d0dfe70 Fix two memory leaks in QOF. Add qof_backend_destroy().
Backends should call this function to make sure they free the kvp frame
for the backend configuration.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17058 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-29 01:20:01 +00:00
Charles Day
15d086d178 Bug #522795: Add QIF importer support for short sales and covers.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17057 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-27 23:39:57 +00:00
Christian Stimming
bbe32f6527 I18n: Fix translator comment about recurrence frequency.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17048 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-26 20:44:33 +00:00
Charles Day
ff83dc72a7 QIF importer: Upon successful completion, open an account tab in the main
window (if there isn't one already). Also includes some comment improvements.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17047 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-25 04:12:59 +00:00
Andreas Köhler
4f39c3173b Fix force_account_dirty() for hbci kvp updates.
xaccAccountSetName(acc, xaccAccountGetName(acc)) does not do anything,
so g_strdup() the name temporarily.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17044 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-24 18:18:35 +00:00
Andreas Köhler
2b0953a4fb Avoid critical warnings in the import account matcher dialog.
If no account is selected, simply do not call engine functions on it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17043 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-24 17:02:38 +00:00
Andreas Köhler
dbef5e44cc Correctly destroy the XML Import Druid.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17042 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-23 22:09:22 +00:00
Andreas Köhler
7d5e0985f4 A few doxygen fixes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17041 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-23 00:01:05 +00:00
Andreas Köhler
ecff4858c2 Fix/extend r17039 and make gnc_commodity_find_currency() free its temporary data.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17040 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-20 23:29:26 +00:00
Andreas Köhler
28d380651a Fix memory leaks in gnc_tree_view_account_restore() and gnc_commodity_find_currency().
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17039 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-20 23:15:04 +00:00
Andreas Köhler
8dd7d2d035 Remove some unnessary aqbanking version checks as we depend on >= 1.6.1.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17038 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-20 23:14:55 +00:00
Andreas Köhler
f6c7e00ece Fix a potential memory leak in gnc_dialog_get_string().
Make the function return a non-const value and make it the
responsibility of the caller to free that.  This is necessary because
not all possible types of input support a getter of an internal and
managed string.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17037 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-20 23:14:45 +00:00
Andreas Köhler
1dd7ec7480 Fix memory leaks after usage of gtk_tree_model_get().
String results are always newly allocated and should be freed.
Similarly, GObjects should be unreffed, but I have not found such a
case.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17036 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-20 23:14:34 +00:00
Charles Day
440587a30c Bug #514027: Fix QIF importer druid so that commodities pages are not skipped
if the user goes back to the currency page. Create additional commodity pages
if the user goes back and loads additional QIF files with new securities.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17035 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-17 16:04:49 +00:00
Andreas Köhler
6c8fdb0561 Bug#521957: Do not start autosave timer when shutting down book.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17034 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-15 16:40:36 +00:00
Charles Day
b4afeb06aa Bug #519988: Update QIF importer bug detection and error messaging to use the
proper Gnome functions. These are g_warning and g_critical for C, and gnc:warn
for Scheme.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17032 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-15 04:26:35 +00:00
Charles Day
081b8b6b7f Bug #509089: Improve the way the QIF importer handles Scheme exceptions that may
occur during conversion of QIF data into GnuCash data. If an exception occurs,
the druid now displays a cancellation page instead of a pop up message. In
addition to avoiding taking the user to an empty duplicate checking window,
the new page could, in the future, be extended to show multiple, specific
warning and error messages instead of the current, generic one.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17031 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-03-14 03:24:11 +00:00