Commit Graph

2498 Commits

Author SHA1 Message Date
Andreas Köhler
c856521bd3 Let glib subtract days from a GDate, because G_DATE_BAD_DAY (0) is a bad day.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13667 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-18 16:11:40 +00:00
Andreas Köhler
ae0f6cf1e7 Correct SX editor and Since Last Run dialog to close their register plugin pages instead of only the ledgers. Fix 334627.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13666 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-18 15:05:33 +00:00
Christian Stimming
a999514bb0 Remove translation macros so that this unused file isn't included in
the translation template any more. Avoids useless translation work.

	* src/scm/doc.scm, src/scm/main.scm: Comment out
	gnc:load-help-topics function because it isn't used anymore, and
	with the last change it also won't be translated anymore.
	



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13665 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-18 11:17:13 +00:00
David Hampton
4905d06edc Pass a dialog pointer through the scm code and back to the C error
display functions.  This will parent the error dialog properly.  Fixes
334929.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13662 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-18 00:39:17 +00:00
David Hampton
79e7cdff57 Enhance the quickfill event handler to detect changes in whether an
account should appear in the quickfill.  Fixes 334787.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13661 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-17 23:26:13 +00:00
David Hampton
2cd27a1b6e Add a "book saved" hook. Use this to update the window titles after a
file is saved.  Fixes 334789.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13660 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-17 22:59:28 +00:00
Andreas Köhler
d421a2d947 Fix return value of get_corr_account_split and reverse the tests of its callers. Fix 334801.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13654 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-17 14:37:19 +00:00
David Hampton
88d9995f64 Use the stable sort function from Account.c to back up the user
selected primary sort column. Fixes 334595.  Also collapse common
code, pull strings via the model, and use the utf8 collate function
instead of strcmp.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13653 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-17 05:37:33 +00:00
Andreas Köhler
d31b9d27c1 Add row_activated callback to commodity and price editor tree views. Fix 334661.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13651 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-16 22:47:30 +00:00
Andreas Köhler
34def736d9 Make register ui update unconditionally if in a GncEmbeddedWindow.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13650 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-16 22:03:58 +00:00
David Hampton
59bafed825 Add a wrapper function for g_utf8_collate that handles checking for
null pointers or null strings.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13649 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-16 20:26:53 +00:00
David Hampton
e544b849d1 Move the computation of accounting period balances into the model and
colorize it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13648 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-16 20:10:16 +00:00
Christian Stimming
5e9b699a7a Add more linker flags for referenced libraries. Necessary when
the required libraries are not inferred from the dependencies 
by that particular libtool, e. g. on windows/mingw32.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13646 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-16 15:25:12 +00:00
David Hampton
b5506a00c8 Treat the file name as utf8 when finding the file name for the window
title.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13645 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-16 03:43:06 +00:00
David Hampton
7e1d372f74 Don't create a new window for a page if there's already an open blank
window.  Fixes 334672.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13644 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-16 02:42:51 +00:00
Derek Atkins
f8b67bd3f2 move file-backend dependency from core to core/file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13642 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-15 20:33:49 +00:00
Andreas Köhler
3e41f8d965 Add a call to gnc_tm_set_day_end to correct initial ending balance in reconcile windows. Tiny comment typo in qof/gnc-date.h.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13641 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-15 20:16:13 +00:00
Derek Atkins
2edfa44813 Move sources to remove the libgw-engine dependency.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13640 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-15 17:29:09 +00:00
Derek Atkins
dde1437f81 * lib/libqof/backend/file/qsf-backend.c: add <locale.h>
Note:  it think it's probably wrong to set the locale here.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13639 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-15 17:08:08 +00:00
Christian Stimming
cc8a795330 Add more linker flags for referenced libraries. Necessary when the
required libraries are not inferred from the dependencies by 
that particular libtool, e. g. on windows/mingw32.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13637 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-15 12:51:43 +00:00
Christian Stimming
eb06c72026 Remove include <ltdl.h> that is unnecessary for code using this header.
Gets rid of some <ltdl.h> weirdness that plagues other object code 
files on windows.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13635 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-15 11:14:20 +00:00
Christian Stimming
f31ba70fe3 Disable extra NFS lockfile checking on windows due to
missing link(2). This is not a problem because on windows 
there also is no NFS, and the open(O_CREAT|O_EXCL) is 
sufficiently atomic for our purposes.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13634 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-14 16:59:32 +00:00
Christian Stimming
c4d5cfc28f Disable file compression on windows due to missing pipe(2),
conditioned on #ifdef _WIN32. Insert code suggestion for windows, 
but is disabled for now.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13630 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-14 11:00:05 +00:00
Christian Stimming
0744c4e591 Improve include order so that building without <glob.h> is possible.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13629 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-14 10:23:44 +00:00
David Hampton
094de8287b Leave the accounts unordered in the engine. Switch the g-wrap
functions that return account lists to use new functions that return
sorted lists so that they see no change.  Fixes 331855.  Also change
the default account sorting to sort on utf8 strings.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13624 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-14 06:32:54 +00:00
Neil Williams
41671fe8a9 Synchronise with QOF 0.6.3. Correct map handling to allow reverse operations and iteration over hierarchical objects. Improving debug messages and preventing a crash when loading a map directly. Standardise QSF backend on gint and gchar. Add new map file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13621 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-13 22:52:02 +00:00
Andreas Köhler
8d45bae07c Save a QofBook instead of its GUID in the list of books in plugin pages. This should renable the deletion of some plugin pages.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13618 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-13 17:07:12 +00:00
Christian Stimming
7da11565e0 Reduce debug stack size from 2,000,000 to 200,000 because guile on windows will only accept the smaller value.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13617 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-13 16:54:14 +00:00
David Hampton
b486969db6 Add a new per-page callback to tell the page to finish any pending
activities.  The page may return FALSE to abort whatever the caller's
normal function.  Add helper routines to iterate over all pages in a
window, or all pages in all windows.  Call these new functions before
Quit, Save, Close, and closing a window.  The register page now
implements this hook and uses it to save/discard any pending
transaction.  Closes 334090.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13615 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-13 04:37:58 +00:00
David Hampton
18b1188dbb Tweak a couple of tooltips. Try and make it clear that the commodity
mnemonic field must exactly match that used by the quote source.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13614 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-12 22:49:53 +00:00
David Hampton
2307a95bde Andrew Sackville-West's patch to tidy up the multi-currency handling
quite a bit. It also adds some functionality such as showing the
basis, realized and unrealized gains, and takes advantage of the new
gnc_pricedb_lookup-latest-before function.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13613 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-12 22:46:00 +00:00
David Hampton
808a35ae99 Andrew Sackville-West's patch to show zero balance entries in the
payables and receivables aging reports.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13612 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-12 22:23:40 +00:00
David Hampton
c9bd69b302 Andrew Sackville-West's changes to add the ability to lookup the
latest price before a specific date.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13611 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-12 22:18:28 +00:00
David Hampton
872a2cafa8 Replace the changes in r13361 with a better method for determining
when a change in the register needs to be reflected in the available
user actions.  Now updates the Void and Unvoid actions which
implements the enhancement request in 330763.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13610 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-12 21:54:04 +00:00
David Hampton
5af42fc6b1 Finish removing the redundant list of valid strings maintained by the
combocell and use the list in the item_edit widget.  Fixes the problem
where account cell contents disappear when focusing in/out of an
account cell.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13609 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-12 03:52:45 +00:00
Andreas Köhler
5d58c5ce49 Fix order of parameters to gnc_ui_common_commodity_modal, and 334181.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13606 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-11 23:41:51 +00:00
Derek Atkins
fe14d8341c fix the build-order (and install order) of the engine libs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13605 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-11 21:52:31 +00:00
Derek Atkins
3c37fe7edd translate "Thank you.." string.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13602 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-11 19:43:21 +00:00
Derek Atkins
470625b385 Make sure we translate the button label string.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13600 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-11 18:10:19 +00:00
David Hampton
4d2d52413a The account tree model event handler needs to be more robust in the
case of multiple account sets existing at the same time. Pass the
account group instead of the parent account so that its possible to
determine which model a "top level" account belongs to.  Fixes 333866.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13599 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-11 17:30:54 +00:00
Andreas Köhler
2a3b4aa51f Unref the summary bar list store so that it gets deleted together with the combobox.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13597 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-11 15:52:45 +00:00
Andreas Köhler
b39a0305fc Avoid calculation of account period total for the top level account.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13595 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-11 15:23:19 +00:00
Derek Atkins
f3cbe0ce05 put ".links" into lib so rm -rf works properly from the top-level
of the source tree.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13593 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-10 23:32:53 +00:00
David Hampton
fc8d20214b Walk through the list of plugins installed in a window and uninstall
them before the window is destroyed. Fixes 333973.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13592 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-10 23:11:54 +00:00
Derek Atkins
ec2d9622e7 gnc:get-account-from-full-name requires two args, not three (#334170)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13590 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-10 22:16:15 +00:00
David Hampton
e5c36757bb Show newly created windows when restoring the second and subsequent
windows.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13587 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-10 20:07:32 +00:00
Christian Stimming
d53ba8d54b Recode all po files into UTF-8 character encoding,
except for the most recent ones, and uk.po which seems to 
contain encoding errors.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13586 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-10 14:58:45 +00:00
Christian Stimming
8c8cae582b Gnucash replaced dlopen/dlsym by the g_module functions,
so don't error out if they are unavailable; dlsym is needed 
only optionally for BSD linkers. Also removes quotation 
error in AC_MSG_ERROR macro.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13583 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-10 11:04:02 +00:00
Christian Stimming
967cbf8c7a If <glob.h> unavailable, provide own typedef and disable globbing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13581 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-10 10:30:35 +00:00
Andreas Köhler
c8544e6a57 Move retrieval of private data of main window after the creation of the window.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13574 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 22:58:36 +00:00