Commit Graph

6276 Commits

Author SHA1 Message Date
Derek Atkins
366f7d26a2 * configure.in -- fix OFX search to look in /usr/local if it cannot
find it in /usr.  It skips the second check if you supply an ofx-prefix.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7509 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-19 02:54:52 +00:00
David Hampton
3f318a6325 Fix some problems with the gcc 3.x cleanup.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7508 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-19 00:52:22 +00:00
Christian Stimming
873b37153b I18n fixes. Update German Translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7507 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 21:43:11 +00:00
Christian Stimming
7f637fd287 Makefile fix.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7506 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 21:11:47 +00:00
Christian Stimming
cf21d524d3 More Makefile fixes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7505 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 21:11:21 +00:00
Chris Lyttle
49879fb417 ooops version macro didnt work
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7504 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 08:30:49 +00:00
Chris Lyttle
cd792551fe update to release 1.7.3
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7502 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 08:21:27 +00:00
David Hampton
08e08f1148 Add support for gtkhtml 1.1.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7501 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 07:19:56 +00:00
Joshua Sled
d9cca5f10f 2002-11-17 Joshua Sled <jsled@asynchronous.org>
* src/engine/date.[ch] (printGDate): Convenience wrapper around
	printDate.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7500 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 05:55:47 +00:00
Benoit Grégoire
7b07c0e188 2002-11-18 Benoit Gr�goire <bock@step.polymtl.ca>
* src/import-export/Transaction-matcher.c: Remove constant length
	strings and replace with moving pointers.  I wish _("string")
	could be used as a could initializer like "string" can...


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7499 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 05:52:05 +00:00
David Hampton
ed7e5bfc88 Fix a bunch of compilation warning messages.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7498 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 05:05:48 +00:00
Joshua Sled
12ccab1dce 2002-11-17 Joshua Sled <jsled@asynchronous.org>
* src/gnome/dialog-sxsincelast.c:
	* src/gnome/dialog-scheduledxaction.c:
	Use printGDate() when we need to print dates; fixes Bug#96477.

	* src/engine/date.[ch] (printGDate): Convenience wrapper around
	printDate.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7497 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 03:46:27 +00:00
Joshua Sled
ddca426702 2002-11-17 Joshua Sled <jsled@asynchronous.org>
* src/gnome/druid-loan.c (ld_calc_current_instance_num): Do some
	work to figure out the correct current-instance-number for
	non-monthly Loan-Repayment SXes.
	(ld_create_sxes): Make the created SXes time out after the length
	of the loan, rather than trying to get the number-of-periods
	totally correct.  This obsoletes Bug#97808.

	* src/gnome/dialog-sxsincelast.c (sxsincelast_tc_row_sel): Don't
	assertion-failure if the user select a non-leaf row.

	* src/gnome/dialog-scheduledxaction.c (sxed_confirmed_cancel):
	Added; used by cancel button handler and [newly added] GnomeDialog
	"close" handler; fixes Bug#84683.

	* src/gnome/druid-loan.c: I18n of some strings previously
	unaccounted for.
	(ld_opt_consistency): Don't enable the "Through Escrow" checkbox
	if there is no escrow account defined.
	(ld_calc_upd_rem_payments): Added; calculate the number of
	remaining payments based on the start date, loan length and
	current date; fixes Bug#91815.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7496 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 02:21:26 +00:00
David Hampton
4f03fb7d82 Convert a couple of functions over to use the new gnc_split_reg_xxx
functions instead of the old gnc_register_xxx functions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7495 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 01:45:55 +00:00
David Hampton
68e7974f40 Fix some compiler warnings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7494 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 01:40:49 +00:00
David Hampton
28aed22fcb Clean up the gcc 3.x warnings about including system directories.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7493 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 00:59:52 +00:00
David Hampton
5e36640c84 Use g_new0 instead of g_new to prevent a crash.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7492 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 00:56:22 +00:00
Christian Stimming
e3c406c89c Some i18n fixes. Updated German Translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7491 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-17 21:31:55 +00:00
Christian Stimming
4af385183c 2002-11-17 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/gnc-hbci-utils.c: Fix caching of HBCI_API
	when using multiple files one after another.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7490 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-17 21:30:18 +00:00
Derek Atkins
2b63cf523a 2002-11-17 Matthew Vanecek <mevanecek@yahoo.com>
* src/backend/postgres/putil.c: Added needed header files to the c
	file.

	* src/backend/postgres/PostgresBackend.c (pgend_session_begin): Added
	xaccBackendSetMessage for an unknown mode or for a bad connection.

	* src/engine/Backend.c (xaccBackendGetMessage): Allow function to
	return null if Backend->error_msg is NULL.

	* src/engine/Account.c (xaccAccountCommitEdit): Handle a NULL return
	from xaccBackendGetMessage().

	* src/engine/gnc-session.c (gnc_session_begin): Push the Backend
	error message onto the session error message (instead of NULL), if
	it exists.  If it's just a warning message (denoted by having a
	message, but ERR_BACKEND_NO_ERR is set), pop up a dialog.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7489 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-17 16:59:14 +00:00
Joshua Sled
916eb2ddcf 2002-11-16 Joshua Sled <jsled@asynchronous.org>
* src/gnome-utils/gnc-dense-cal.c (gnc_dense_cal_draw_to_buffer):
	Added double-buffering support to GncDenseCal.  Fixes Bug#96475.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7488 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-17 03:03:24 +00:00
Joshua Sled
355fae9545 2002-11-16 Joshua Sled <jsled@asynchronous.org>
* src/gnome/gnc-split-reg.c (gsr_setup_status_widgets): Only setup
	the status check if we've created it to prevent some
	warning/critical noise.
	(gnc_split_reg_class_init): Setup default signal handlers to
	GTK_RUN_LAST so that they can be stopped by callers.
	(gnc_split_reg_use_extended_popup): Added; replaces
	dialog-schedxaction.c version of same in a cleaner way.
	(gsr_default_schedule_handler): If the transaction which is
	requested to be "Schedule..."d was created from an SX, then the
	editor for the SX which created the txn is opened rather than from
	SX-From-Trans dialog.
	(gnc_split_reg_jump_to_blank, gnc_split_reg_jump_to_split_amount)
	(gnc_split_reg_jump_to_split): Add ledger refreshes to get correct
	behavior.

	* src/gnome/dialog-sxsincelast.c (sxsld_jump_to_real_txn): Added;
	jump to the correct [read: real] txn on a jump signal from the
	ledger.

	* src/gnome/gnc-split-reg.c (gsr_default_jump_handler): Use new
	regWindowSimple signature for creating new windows on a jump.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7487 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-17 01:35:30 +00:00
David Hampton
795c801602 Validate the transfer cells when leaving a transaction. This should
force gnucash to create a new account when finishing a transaction
with the 'Enter' key.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7486 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-17 00:14:55 +00:00
Derek Atkins
c2bfd78517 * Matthew Vanecek's patch:
The attached patch contains some immediate bug fixes for the SQL
	back end, and it adds and error message string + accessor/mutator
	to Backend.  Also, in xaccAccountCommitEdit(), added the use of
	PWARN_GUI to display the error message.

	The bug fixes in the SQL backend involved converting the *_QUERY
	macros to functions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7485 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-16 23:17:09 +00:00
Joshua Sled
d4f97ce2d9 2002-11-15 Joshua Sled <jsled@asynchronous.org>
* src/gnome/window-register.c (gnc_register_delete_cb): Change the
	order of window deletion to not cause a crash.

	* src/gnome/window-register.c (regWindowSimple),
	(regWindowAccGroup): Only return the GNCSplitReg, not the whole
	regData.  Fixes a bunch of existing and potential crashes.

	* src/gnome/window-main.c (gnc_main_window_gl_cb):
	* src/gnome/window-acct-tree.c
	(gnc_acct_tree_window_toolbar_open_cb)
	(gnc_acct_tree_window_menu_open_subs_cb)
	(gnc_acct_tree_window_menu_open_cb)
	(gnc_acct_tree_window_activate_cb):
	* src/gnome/top-level.c (gnc_html_register_url_cb):
	Modify to not necessarily expect a RegWindow for creation of a
	ledger view.  Fixes a bunch of existing and potential crashes.

	* src/gnome/gnc-split-reg.c (gnc_split_reg_delete_cb): Removed;
	dead.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7484 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-15 08:26:43 +00:00
David Hampton
3f77e88597 Fix a bug where the register doesn't add a new blank split when you
tab off the end of the current one.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7483 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-14 22:21:50 +00:00
Joshua Sled
4068061d5c 2002-11-14 Joshua Sled <jsled@asynchronous.org>
* src/register/ledger-core/gnc-ledger-display.c
	(gnc_ledger_display_template_gl): Extended to allow a template GL
	without a specific transaction being displayed at the time of
	creation.

	* src/engine/SchedXaction.h: Removed some deprecated function defs.

	* src/gnome/gnc-split-reg.c (gsr_default_jump_handler): Don't make
	assumptions about the window-register.c code that we can't
	support, and don't let it be responsible for too much.  Fixes
	recent serious register crashes.

	* src/gnome/dialog-scheduledxaction.c
	(scheduledxaction_editor_dialog_destroy):
	* src/gnome/dialog-sxsincelast.c (sxsincelast_destroy):
	Close the ledger_display on window teardown.  Fixes sx-related
	register crashes.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7482 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-14 08:35:15 +00:00
Christian Stimming
f1fdf2a2a3 2002-11-14 Christian Stimming <stimming@tuhh.de>
* po/*.po: Updated translations (merged from 1.6 branch plus
	updates from the Translation Project).

	* po/nb.po: New filename for norwegian (bokmal) translation -- it
	used to be stored under no.po but that is no longer.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7481 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-13 23:35:17 +00:00
Benoit Grégoire
870ae91cc1 2002-11-13 Benoit Gr�goire <bock@step.polymtl.ca>
* src/import-export/Transaction-matcher.c:
	-Don't show match with probability less than 1, so we don't
	end up showing the whole account.
	-Fix crash when importing a transaction twice
	-Copy the online id to the reconciled transaction, so the
	match will be remembered.
	-Do not consider transaction with an online_id kvp frame as
	potential match, as they have previously been downloaded
	online.
	-Steal a better pixmap from gnome drop down menu.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7480 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-13 19:18:34 +00:00
Benoit Grégoire
0b666339bb 2002-11-13 Benoit Gr�goire <bock@step.polymtl.ca>
* src/import-export/ofx/gnc-ofx-import.c: MAJOR improvement to
	investment support.  All transactions created from an investment
	account are now already balanced.  Explicitely support Dividend
	Reinvestment transactions which will now directly create a
	income account -> stock account transaction, and Income
	transactions which will directly create a
	income account -> cash account transaction.
	Support memorising the income account association.  Several
	stock account can use the same income account if desired.

	* src/import-export/Transaction-matcher.c: Various bug fixes.

	* src/import-export/Account-matcher.c and
	src/import-export/gnc-generic-import.h: Support a new mode
	of operation for the account matcher to allow selection of
	an account without touching the online_id kvp frame.
	Currently used for income account selection or creation.

	* src/import-export/generic-import.glade: Set default size
	to a more reasonable 800x600, since the Auto Shrink trick
	doesn't work for everyone.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7479 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-13 06:47:18 +00:00
Derek Atkins
fd3a09b6f3 * business/business-gnome/dialog-invoice.c
Add an unpost button.  It does nothing at this point.
	* business/business-gnome/glade/invoice.glade
	  Add an unpost button.
	* business/business-core/gncInvoice.c
	  change the readonly message to point to unposting invoices
	  NOTE: This just adds the icon and some new strings..  Functionality
	  to be added soon.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7478 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-13 02:59:19 +00:00
David Hampton
51cd4acd9a Enforce the rule that "Buys" must be a positive number of shares and
"Sells" must be a negative number of shares. #92270


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7477 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-13 02:52:56 +00:00
David Hampton
d1ff3b469e Sort the splits in a transaction when the transaction is committed,
not each time the view of the transaction is refreshed in the
register. #92156


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7476 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-13 01:44:19 +00:00
Derek Atkins
a0ec45ad40 * src/import-export/gnc-import-match-map.[ch]
Implement a generic Account Mapper for the import routines.
	  Still needs a GUI.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7475 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-12 22:07:40 +00:00
David Hampton
da778e274e Apply the fixes for #92157 to the business entry ledger.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7474 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-12 18:58:45 +00:00
David Hampton
348e88d83d Fix register problem where the transfer field (on the last line if in
a multi-line split) ignores whatever the user entered if you leave the
cell with the <enter> key instead of the <tab> key.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7473 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-12 18:21:45 +00:00
Benoit Grégoire
2e26735df4 2002-11-12 Benoit Gr�goire <bock@step.polymtl.ca>
* src/import-export/Transaction-matcher.c: Fix previous patch.
	gcc 3.2 is too forgiving...


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7472 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-12 18:02:13 +00:00
Benoit Grégoire
15b462bc6e 2002-11-12 Benoit Gr�goire <bock@step.polymtl.ca>
* src/import-export/ofx/gnc-ofx-import.c: Dynamically generate
	a pixmap to display match confidence graphically.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7471 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-12 17:45:50 +00:00
Benoit Grégoire
ac12d3226e 2002-11-12 Benoit Gr�goire <bock@step.polymtl.ca>
* src/import-export/ofx/gnc-ofx-import.c: Fix call to
	g_strdup_printf in Christian's 2002-11-03 translation patch.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7470 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-12 13:36:49 +00:00
Benoit Grégoire
8b06515b73 2002-11-12 Benoit Gr�goire <bock@step.polymtl.ca>
* src/import-export/Transaction-matcher.c
	* src/import-export/generic-import.glade: First round of
	transaction matcher UI changes.  Create a pseudo-widget in first
	column to select the action to be taken with the transaction.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7469 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-12 08:46:11 +00:00
Joshua Sled
c6445948fc 2002-11-12 Joshua Sled <jsled@asynchronous.org>
* src/gnome/dialog-sxsincelast.c
	(sxsincelast_tc_row_unsel, sxsincelast_tc_row_sel): Now [again]
	uses the read-only register to show the relevant template
	transaction, so the user has context about any variables they're
	being asked to fill in values for.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7468 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-12 08:24:57 +00:00
David Hampton
2de338481e Convert all the account window callbacks to take a pointer to the main
GNC MDI data structure, not a child structure that can be created and
deleted willy-nilly by the Gnome MDI code. The current child
(i.e. window) can easily be found from the main data structure.
#94972


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7467 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-12 07:01:31 +00:00
David Hampton
e9d3e5014f Remove obsolete comment.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7466 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-12 06:42:03 +00:00
Joshua Sled
bd059c94e0 2002-11-11 Joshua Sled <jsled@phoenix.asynchronous.org>
* src/gnome/window-register.c (regWindowLedger): If we
	gtk_widget_show_all the correct widget [the window], then it's
	available for setting its size and changing the style and whatnot.

	* src/gnome/orig-window-register.c (regWindowLedger): Hack for
	Bug#97640; re-init the style after we've shown the widgets to
	affect a "style change", which lets the GUI nature of the cells
	[combos, autocomplete] init and function.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7465 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-12 05:51:57 +00:00
Christian Stimming
0edc5411ef 2002-11-10 Christian Stimming <stimming@tuhh.de>
* src/import-export/Transaction-matcher.c: Make newly imported
	transaction "cleared" instead of "reconciled".


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7464 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-11 07:55:20 +00:00
David Hampton
a783247da7 Fix the "reinitialize transaction" code to work correctly on the blank
split.  #98134


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7463 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-11 07:46:14 +00:00
Derek Atkins
585fc0ef87 Er, only has share price _ONCE_
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7462 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-11 02:34:18 +00:00
Derek Atkins
719cfd9bae Fix a merge failure
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7461 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-11 02:32:10 +00:00
Derek Atkins
60ee3df8b7 * Fix the Find-Transactions dialog so it only has "Share Price" twice
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7460 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-11 01:08:42 +00:00
David Hampton
f6858e7a5b The reinitialize transaction code should mark the transaction as
pending so that the right checks are done when leaving the
transaction.  Fix spelling errors in function names.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7459 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-11 00:51:06 +00:00