Commit Graph
100 Commits
Author SHA1 Message Date
Chris Shoemaker bb65183795 Minor typo fix in debugging output.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16419 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-08-11 22:49:19 +00:00
Chris Shoemaker 0cc3c94654 Plug a leak of strings in the swip-wrapped gnc_gettext_helper().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16059 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-07 13:24:27 +00:00
Chris Shoemaker 5ea313e681 Use GtkTreeModelFlags instead of guint.
Fix a comment typo and remove an unused variable.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15383 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-15 01:08:54 +00:00
Chris Shoemaker e8e2e12e11 Return zero instead of failing an assertion when the register asks a
Split for its amount in a commodity that is not involved in the split's
transaction.  This will prevent the crash in bug #379625, but doesn't solve
the underlying problem, which is a bug in the register.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15179 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-04 02:20:01 +00:00
Chris Shoemaker 099867608e Remove unused variables.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15170 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-03 01:40:32 +00:00
Chris Shoemaker 501d0943f5 Factor out some quiting code from gnc_main_window_delete_event() and
gnc_main_window_cmd_file_quit().  The new implementation fixes two bugs -
one in each of the previous implementations.  

The bug in the gnc_main_window_cmd_file_quit() code was a race condition 
whereby one could quit the application without finishing pending changes in 
pages.  This would happen if the began a save, modified the page during the 
save, and then triggered the File->Quit command before the save completed.  
For the register page, this sequence was possible, even though most of the UI 
controls are disabled during save.

The bug in the gnc_main_window_delete_event() code was that it didn't check 
for an in-progress save before prompting the user to save a dirty book.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15169 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-03 00:56:01 +00:00
Chris Shoemaker 60e5a01dfd Fix bug #353450 - Crash on quit during save.
Add a lock to the QofSession object, and use it in qof_session_save() to 
protect against re-entrance.

The lock always starts at 1 and is 0 while inside qof_session_save().  
If another call is made to qof_session_save() while one is in progress, 
the lock will momentarily drop below 0 before returning to zero.

Note: The per-session nature of the lock would make it appear that we support
concurrent saving of different sessions.  In fact, we do not, because the 
file backend blocks the main process until the forked gzip process is 
finished, and it only knows how to keep track of one child pid at a time. 



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15168 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-02 22:13:13 +00:00
Chris Shoemaker b2c2ae2bf8 Add src/base-typemaps.i as a prerequisite for all wrapper-generator rules.
Fix some comment typos.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15114 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-14 02:14:13 +00:00
Chris Shoemaker 0866a83d33 Add a custom SWIG typemap for wrapping a return value of (char *)NULL
as an empty guile string. 


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15113 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-14 02:10:14 +00:00
Chris Shoemaker 74871917d7 Fix some #f vs. '() issues in qif import files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15112 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-14 02:07:03 +00:00
Chris Shoemaker e52027a7f5 Make the xml file read behavior less random for malformed account input.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15111 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-14 02:05:28 +00:00
Chris Shoemaker e528848f5a [Part 2] Audit all .scm files for cases where null objects were assumed
to be #f.  (It helps to save all buffers before the commit.)




git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15061 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-29 03:39:39 +00:00
Chris Shoemaker e4ebb3eb1b Audit all .scm files for cases where null objects were assumed to be #f.
In most of these cases, I know the value is always returned from C, so we
can use "null?".  In cases where I wasn't sure, I make it check for either
#f or null?.  Hopefully, I got 'em all.  But, really, what are the chances?



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15060 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-29 03:12:49 +00:00
Chris Shoemaker 9618429b17 Replace "gnc:entry-get-order" with "gncEntryGetOrder".
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15059 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-28 01:53:17 +00:00
Chris Shoemaker d858897154 Get price-quotes to work again.
Fix a type (missing '*') in the GncCommodityList typemap.
Re-add an incorrectly dropped (use-modules ...) statement for the wrapped
part of gnome-utils.
Remove some duplicated (use-modules ...).



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15057 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-22 00:58:42 +00:00
Chris Shoemaker fac054627c Re-export symbols wrapper-provided symbols in core-utils.scm.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15054 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-21 14:40:03 +00:00
Chris Shoemaker 96ce3a8d56 Fix three wrapper-related bugs found and patched by Mike Alexander
<mta@umich.edu>.

1) Since the output of (xaccTransGetSplit ...) may now be '(), check for it
with (null? ...).

2) Fix the result of a sed mis-ordering:
s/gnc:query-get-splits/qof-query-run/g
s/gnc:query-get-splits-unique-trans/xaccQueryGetSplitsUniqueTrans/g

3) Fix the result of a sed typo:
s/gnc:split-corr-account-fullname/SPLIT-CORR-ACCT-FULLNAME/g
which should've been
s/gnc:split-corr-account-fullname/SPLIT-CORR-ACCT-NAME/g



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15046 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-19 23:58:03 +00:00
Chris Shoemaker eee554ff49 Remove another unused function.
I think I added this function on the swig-redo branch, but it turned out
to be obsoleted by the merge because we no longer read 1.8.x state files.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15044 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-19 02:50:37 +00:00
Chris Shoemaker cddf707a84 Remove unused function.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15043 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-19 02:05:03 +00:00
Chris Shoemaker 2cd782b451 Replace xaccTransGetSplits with xaccTransGetSplitList.
'xaccTransGetSplits' doesn't exist.  It was a result of an incorrect 
ordering of sed substitutions:

s/gnc:transaction-get-split/xaccTransGetSplit/g
s/gnc:transaction-get-splits/xaccTransGetSplitList/g



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15042 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-19 01:00:17 +00:00
Chris Shoemaker 838ff86fbd Factor out some common typemaps into src/base-typemaps.i
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15026 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-16 03:35:56 +00:00
Chris Shoemaker 31e926c486 Merge swig-redo branch back into trunk.
g-wrap is gone.  I, for one, welcome our new swig overlords.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15024 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-15 19:02:05 +00:00
Chris Shoemaker 923cd256b4 Allow budget values to default to unset, rather than zero.
Main patch by Gregory Alexander <gregalexa@gmail.com>.
On editing, interpret a blank as an unset budget value.
On reporting, show "." for unset budget values.
Add bugdet functions for testing whether a budget value is set or not, 
and for unsetting it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15009 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-11 20:55:20 +00:00
Chris Shoemaker da4829b5c4 This fixes a bug in r14495. The bug is that auto-completed transactions
aren't correctly marked as pending.  This bug is probably responsible for
the crashes like those in bug #348469.

In general, the register makes it very difficult to consistently 
distiguish between beginning to edit a transaction that's being edited 
in another register and beginning to edit the blank transaction, 
which is already open for editing, but isn't marked pending so that
we can pretend it hasn't been opened if it never gets modified.

Fortunately, the auto-completion code only runs on the blank transaction, 
so we can assume it's not being edited in another register.  This patch
goes ahead and marks the blank transaction as pending.
BP



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15004 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-11 00:57:52 +00:00
Chris Shoemaker 62e8c9b6df Ensure that the blank transaction is marked as the pending transaction
when it is modified.  This fixes a bug where editing the blank transaction,
moving off of the transaction line to a split line, leaving the split line
unedited and then closing the register will incorrectly leave the 
transaction open without asking.
The bug fixed by this commit is possibly responsible for some of the 
crashes like bug #348469.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15002 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-11 00:39:44 +00:00
Chris Shoemaker 795041e074 Fix for bug #359471. Remove the glade hookup of gnc_xfer_dialog_close_cb() to
the close signal.  This callback doesn't handle aborting correctly when called
directly, but it will behave correctly when called indirectly from 
close_handler().  The "response" callback will now be called for all actions
that close the dialog.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14927 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-10-04 02:30:32 +00:00
Chris Shoemaker 07d8db0f55 Drop gtktreedatalist (and gnctreemodelsort) from the build because it can
conflict with the real gtk+ version of the same file, depending on the
   linking order of libgncmod-gnome-utils.so and the gtk+ libraries.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14709 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-22 15:33:50 +00:00
Chris Shoemaker 8c1c40d082 Add indirect dependency libcore-utils.la to qif-import/test to appease
Debian's broken libtool.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14673 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-15 03:03:00 +00:00
Chris Shoemaker c0759a3adb Reverting r14626. It botched the 'svn move' (svk bug) and broke the build.
"gnc-gobject-utils.c:52: error: 'GtkFunction' undeclared."


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14658 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-13 03:12:15 +00:00
Chris Shoemaker 3a4c7e1c2f Typo fix found by Tim (eagle eyes) Wunder.
Plus more clean-up to justify another commit.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14621 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-09 03:31:00 +00:00
Chris Shoemaker a2104b0c77 Line-wraps, and typo-fixes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14620 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-09 01:16:33 +00:00
Chris Shoemaker 2e28a8b586 Guile doesn't need access to GUI suspend/refresh controls any more.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14619 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-09 01:12:03 +00:00
Chris Shoemaker 5e48be650d De-guilify test-xml-commodity.c
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14618 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-09 01:09:47 +00:00
Chris Shoemaker 2d27a86149 Cause commodity equality test to actually return FALSE for unequal case.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14617 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-09 01:08:56 +00:00
Chris Shoemaker cc71e25eea Plug a LotList leak; remove ominous comment about memory corruption.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14616 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-09 00:59:48 +00:00
Chris Shoemaker dde4a52308 More comments, spelling fixes, line-wraps, whitespace cleanups.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14615 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-08 23:16:54 +00:00
Chris Shoemaker 69ea9d29eb Remove some unnecessary calls to xaccAccountInsertSplit() since the only way
the Split could have the Account pointer is if it had already been added to
   the Account.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14614 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-08 22:55:02 +00:00
Chris Shoemaker 6628b183d7 Minor renaming and reordering for clarity in gnc_split_register_load().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14613 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-08 22:52:37 +00:00
Chris Shoemaker 6ff63efa19 Internalize some xaccAccountGroupBegin/CommitEdits into xaccGroupCopyGroup().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14612 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-08 22:12:07 +00:00
Chris Shoemaker 63f60a302c Various whitespace, line-wrap, and comment changes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14611 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-08 21:57:28 +00:00
Chris Shoemaker f64d70b454 More reasonable limits for the SpinButton that selects significant figures.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14513 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-07-15 19:48:14 +00:00
Chris Shoemaker f0d64c1185 Avoid SIGFPE due to modulo-by-zero is the requested number of significant
figures is greater than log10(2^63).
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14512 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-07-15 19:47:02 +00:00
Chris Shoemaker 1e1784eada Minor cleanup of configure.in.
The important change is missing "test" in chunk 730,7.
   The others fix the (theoretical) problem of a null variable disappearing,
   leading to
     bash: test: =: unary operator expected
   And also, added
     AC_MSG_NOTICE([Ignore error message "./po/POTFILES.in: No such file or
     directory." if it occurrs.])

   Patch by "Archimedes Submerged" <archimerged@gmail.com>


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14497 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-07-14 02:01:50 +00:00
Chris Shoemaker b0076c962d Restore a comment that explains the algorithm restored in r14488.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14496 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-07-14 01:36:01 +00:00
Chris Shoemaker 2c6f584b5e Avoid crash from opening transaction in more than one register. Bug #347089.
In any case where we might be opening the transaction and marking it as the 
   pending transaction, check first if it's already open.  If it is, we assume
   that it's being edited by another register.  We report the error and abort
   the action that would have opened the transaction.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14495 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-07-14 00:57:17 +00:00
Chris Shoemaker 7e2f2b1468 Fix off-by-one bug that strips all spaces from imported strings.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14494 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-07-13 23:15:33 +00:00
Chris Shoemaker 2b41895fff Update 'About' dialog copyright notice.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14471 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-07-09 12:05:25 +00:00
Chris Shoemaker 3558403a23 Sync ChangeLog with svn log -v through r14377.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14379 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-06-17 20:28:49 +00:00
Chris Shoemaker 1e57748bee Update mnemonic for Mexican Peso. Fixes Bug #345048.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14377 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-06-17 01:00:18 +00:00
Chris Shoemaker f6f9b53e9a Make the keypad 'minus' key enter a dash in the date entry for ISO dates.
Fixes Bug #345096.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14375 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-06-17 00:38:08 +00:00
Chris Shoemaker d5b0ddaa4b Restore non-editing state when cancelled editing is complete.
Fixes Bug #344870, which was a regression caused by r11892.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14373 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-06-16 23:14:13 +00:00
Chris Shoemaker 9b7245002d Don't crash when parsing empty string as date. Fixes #344466.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14354 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-06-13 00:35:47 +00:00
Chris Shoemaker 3c5a81accb Um, uhh, important code change. Might fix #343798.*
(*) Might also do strange things to the register, esp. cursor motion.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14345 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-06-07 01:34:54 +00:00
Chris Shoemaker 7b07c2e238 When loading the gmodule backends from the test suite, look in ../.libs
for the real module.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14302 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-06-03 14:51:10 +00:00
Chris Shoemaker 89f37371d9 Disable support for the old binary file format.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14301 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-06-03 13:42:53 +00:00
Chris Shoemaker 9f74b5a44c Restore two behaviors removed by r14283, and add a third.
1) Invalidate outstanding iterators when a row is inserted or deleted.
   2) Emit row_changed for ancestors of inserted or deleted row.
   New) Emit row_changed for ancestors of a changed account, too.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14285 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-06-01 01:44:53 +00:00
Chris Shoemaker 2a3d5020c9 GNOME integration, part 2. Bug #342936.
Use the same icon for the window manager as for the desktop.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14276 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-31 00:56:10 +00:00
Chris Shoemaker d564f8b254 Improve GNOME desktop integration. Bug #342936
Patch supplied by Stanislav Brabec <sbrabec@suse.cz>.
 


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14251 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-29 22:07:10 +00:00
Chris Shoemaker c23bf4c67a Fix a crash in the aging report. Breaks a string, but seeing English is
better than seeing a guile stack trace.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14237 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-29 19:24:38 +00:00
Chris Shoemaker de37603ecc revert r14177 because it fails make dist.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14233 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-29 04:53:40 +00:00
Chris Shoemaker 2982e18f73 Move the error-handling of failure to initialize the engine from
gnc-engine.c to gnucash-bin.c.  This allows tests that call 
   gnc_engine_init() but fail to find a backend to still pass.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14232 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-29 04:52:23 +00:00
Chris Shoemaker 4cd8389f06 The description for the "sort_column" gconf key of the tree_views says,
"Possible values for this setting are the name of any column in this 
   dialog (see the column_order key) or the keyword 'none'."

   The third click on a column header removes the sorting by that column.  
   This patch will now store 'none' for the sort_column in that case.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14213 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-28 02:23:37 +00:00
Chris Shoemaker f4c3a2499c Use GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID instead of '0' as the
fallback sort column, since column 0 may not be sortable with the 
   default sort function.

   Set the MODEL_COLUMN column property, even when it is -1, since 
   gnc_tree_view_set_sort_column() looks for this condition.

   Make the gnc_tree_view_count_visible_columns() function only count regular
   columns, so that the special columns don't count, but count any 
   DEFAULT_VISIBLE columns, even if they've been hidden by gconf.  That way, 
   the special columns will still show and allow the user to unhide columns.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14212 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-27 19:05:41 +00:00
Chris Shoemaker 564958f000 Add -avoid-version to LDFLAGS of gmodule backends.
Hopefully this will solve the problem Macs are having dlopen'ing them.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14210 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-27 14:19:48 +00:00
Chris Shoemaker 275f768325 REactivate --enable-sql by reverting part of r14175; see bug#332251
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14200 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-26 00:23:34 +00:00
Chris Shoemaker 514086e496 Load the file backend _after_ the qsf backend, so that it gets tried
_before_ the qsf backend, because the qsf backend prints some noisy error
   messages while figuring out that the gnucash file isn't a qsf file.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14199 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-26 00:14:28 +00:00
Chris Shoemaker 97062a3b81 Merge 'misc-backend' -r 14160:14184 into trunk.
This includes the now semi-functional postgres backend.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14198 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-26 00:10:35 +00:00
Chris Shoemaker a98cfaf58d Sync ChangeLog with 'svn log -v'
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14183 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-24 23:49:16 +00:00
Chris Shoemaker 882d453105 Consistently pad date formats with zeros instead of spaces.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14180 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-24 22:54:03 +00:00
Chris Shoemaker 22ce233d1b Fix Bug#342736 by replacing "make-shared-substring" with "substring".
Guile 1.8 automatically shares strings as copy-on-write and no longer
   provides the "make-shared-substring" procedure.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14159 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-24 01:25:30 +00:00
Chris Shoemaker 998edefcc8 Fix Bug#342546 by using the pref date format instead of locale.
Also prefix-pad fixed-width date formats with '0'.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14158 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-24 00:49:10 +00:00
Chris Shoemaker ab152556ed sync ChangeLog with 'svn log -v'
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14070 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-15 00:13:49 +00:00
Chris Shoemaker 9b64ae68a7 Disable Lots scrubbing, which is causing test-suite failures.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14050 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-14 21:30:22 +00:00
Chris Shoemaker 9c714d3e12 Undo accidental revert of part of r13713 by r14026.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14038 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-14 11:59:39 +00:00
Chris Shoemaker 4c941fbefb Change the method for specifying and recording the default visibility of
tree-view columns.  There is now a per-column setting, "DEFAULT_VISIBLE",
   similar to "ALWAYS_VISIBLE", that controls the visibility of a column in 
   the absence of, or prior to, gconf management.

   It is no longer necessary for the tree view to store a list of column names
   for default visible columns.

   To faciliate the adaptation of pre-existing tree-views, the 
   view_column_find_by_name() has been publicized as 
   gnc_tree_view_find_column_by_name().

   All callers of gnc_tree_view_configure_columns() have been converted to use
   the DEFAULT_VISIBLE column property.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14037 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-14 02:07:52 +00:00
Chris Shoemaker 3dd0f96c60 Fixing bug #341589: Apparently, guile 1.8 will actually enforce the rule
that all datum portions of case-statement clauses be unique.  The syntax:
   'foo expands to a list of two symbols: (quote foo) 
   If both 'foo and 'bar are used, then the "quote" symbol won't be unique.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14034 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-13 04:52:09 +00:00
Chris Shoemaker 4ccc09c1c7 Fix Bug #341375.
When handling the focus-out event for a GtkCellEditable, it's important
   not to keep the editable alive for too long, because the cursor-blink
   timeout expects that the editable still has the focus.  The easiest way to 
   do this is to stop the editing immediately by calling 
   gtk_cell_editable_editing_done() and then handle all the real work from 
   the "editing-done" signal handler.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14027 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-12 01:47:12 +00:00
Chris Shoemaker e4092bb349 Minor cleanups to gnc_counter_end_handler().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14026 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-12 00:28:34 +00:00
Chris Shoemaker eff827a63b Cause gncla-dir.h to be re-made after a 'make clean'.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14025 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-12 00:25:15 +00:00
Chris Shoemaker c67a8fb82f Look for g-wrap's (g-wrap gw standard) or (g-wrap gw-standard) since
g-wrap 1.9.6 doesn't have (g-wrap runtime).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14024 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-11 22:25:55 +00:00
Chris Shoemaker d4bd374c9d When searching for the g-wrap runtime module, look in the G_WRAP_MODULE_DIR.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14023 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-11 21:21:42 +00:00
Chris Shoemaker a8f8c51858 Warn if no g-wrap runtime module is available during configure.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14022 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-11 05:04:56 +00:00
Chris Shoemaker b49877472e Factor out #define _GNU_SOURCE from various .c files into an AC_GNU_SOURCE
check in configure.in.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14002 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-11 01:14:12 +00:00
Chris Shoemaker 3ed9be95ba Fix fancy invoice report. Bug #341046.
Also, liberalize gnc:html-table-append-row! to accept a non-list argument.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13985 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-10 03:54:45 +00:00
Chris Shoemaker 227f13e913 Silence guile warnings about duplicate binding introduced in guile-1.8.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13984 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-10 01:53:24 +00:00
Chris Shoemaker b175702b45 Use g_get_current_time() instead of gettimeofday(). Fixes #341044.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13966 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-09 03:17:04 +00:00
Chris Shoemaker aeda15cb74 Limit memo length to 27 chars on Quicken wallet checks with side stub
Patch by David Reiser, bug #340977


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13965 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-09 00:42:32 +00:00
Chris Shoemaker 7bb7a5536c Remove some unnecessary calls to xaccGroupMarkNotSaved() which were
dirtying the book implicitly without setting any time of first change.
   Instead, make sure that committed Splits dirty their parent Transaction.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13958 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-08 04:56:17 +00:00
Chris Shoemaker de0c1edcb5 Add a flag, 'infant', to QofInstance to note that the instance has been
committed at least once in its lifecycle.  Then, we can mark the collection
   dirty whenever an object is committed, except for the special case of an 
   QofInstance that has never been committed before and is now being deleted.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13957 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-08 04:47:04 +00:00
Chris Shoemaker 6b925724e7 Fix off-by-one error when checking editlevel in qof_commit_edit() (and
macro version), in case we ever want qof_commit_edit() to actually do 
   something with a backend.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13956 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-08 03:04:49 +00:00
Chris Shoemaker 57636f50e4 Make qof_commit_edit() (and macro version) call qof_backend_run_commit()
instead of qof_backend_run_begin().
   Minor cleanups of qof_commit_edit() and qof_begin_edit().


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13955 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-08 03:02:15 +00:00
Chris Shoemaker 681577f889 Add begin/commit edit blocks to budget setters. Change to using the
"destroy" method for budget deletion.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13954 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-08 02:54:03 +00:00
Chris Shoemaker 3555d0f101 More consistent Lot<->Split handling. Try to use the right API for adding
a cloned Split to the Lot.  Make sure to remove the Split from the Lot when
   deleting a Split.  (This prevents use-after-free by test-lots.)  Add some 
   comments to some strange code that's possibly wrong.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13922 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-05 00:58:17 +00:00
Chris Shoemaker 40a9ed1925 Move some gains-related transaction-scrubbing operations to from
cap-gains.c to Transaction.c.
   Fix a logic error where "split->gains |= ~GAINS_STATUS_ADIRTY" was supposed
   to be "split->gains &= ~GAINS_STATUS_ADIRTY".

   Disable the loop-restart code in xaccTransScrubGainsDate() because I think
   the state changes inside the loop will never cause a previously-skipped 
   Split to be not skipped during another pass.

   Incidental:
      make both xaccTransFindSplitByAccount() arguments 'const'
      Internalize Begin/Commit edit block into xaccTransScrubSplits()


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13921 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-05 00:40:15 +00:00
Chris Shoemaker e6f9e20679 Some testing bits that got left out of r13916.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13920 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-05 00:18:59 +00:00
Chris Shoemaker 90864dcb27 Correctly ensure that the amount and value of test Splits have the same sign
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13919 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-05 00:17:04 +00:00
Chris Shoemaker 2324301a45 Fix bug #340168 by ignoring Splits that have been destroyed since the
last call to xaccTransBeginEdit().


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13917 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-04 03:59:15 +00:00
Chris Shoemaker 0589407c66 Hide the Transaction's management of the "reverse-by" KVP inside the engine.
Add new function xaccTransGetReversedBy() to find the reversing transaction
   if there is one.
   This also ensures that the KVP changes are inside a Begin/Commit block.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13916 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-04 00:06:58 +00:00
Chris Shoemaker 29ce19ddfc Take care of any pending changes to a Transaction before voiding it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13885 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-30 02:38:11 +00:00
Chris Shoemaker cc413fa58c When deleting the current Transaction in the register, let the action take
effect immediately by commiting the transaction if it's open.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13883 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-30 00:43:45 +00:00