[Gnucash-changes] r13779 - gnucash/trunk - Add a new event for when
a split associated with account is changed.
David Hampton
hampton at cvs.gnucash.org
Fri Apr 14 01:37:35 EDT 2006
Author: hampton
Date: 2006-04-14 01:37:34 -0400 (Fri, 14 Apr 2006)
New Revision: 13779
Trac: http://svn.gnucash.org/trac/changeset/13779
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/business/business-ledger/gncEntryLedgerDisplay.c
gnucash/trunk/src/engine/Transaction.c
gnucash/trunk/src/engine/gnc-event.h
gnucash/trunk/src/gnome-utils/window-main-summarybar.c
gnucash/trunk/src/gnome/window-reconcile.c
gnucash/trunk/src/register/ledger-core/gnc-ledger-display.c
Log:
Add a new event for when a split associated with account is changed.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2006-04-14 05:36:42 UTC (rev 13778)
+++ gnucash/trunk/ChangeLog 2006-04-14 05:37:34 UTC (rev 13779)
@@ -1,5 +1,13 @@
2006-04-13 David Hampton <hampton at employees.org>
+ * src/register/ledger-core/gnc-ledger-display.c:
+ * src/business/business-ledger/gncEntryLedgerDisplay.c:
+ * src/gnome-utils/window-main-summarybar.c:
+ * src/engine/Transaction.c:
+ * src/engine/gnc-event.h:
+ * src/gnome/window-reconcile.c: Add a new event for when a split
+ associated with account is changed.
+
* src/gnome-utils/account-quickfill.c: Improve the performance of
the listen_for_accounts function. Never rebuild the list_store
from scratch as the time required to sort each account insertion
Modified: gnucash/trunk/src/business/business-ledger/gncEntryLedgerDisplay.c
===================================================================
--- gnucash/trunk/src/business/business-ledger/gncEntryLedgerDisplay.c 2006-04-14 05:36:42 UTC (rev 13778)
+++ gnucash/trunk/src/business/business-ledger/gncEntryLedgerDisplay.c 2006-04-14 05:37:34 UTC (rev 13779)
@@ -29,6 +29,7 @@
#include "gnc-ui-util.h"
#include "gnc-component-manager.h"
+#include "gnc-event.h"
#include "gncEntry.h"
#include "gncEntryLedger.h"
@@ -111,7 +112,8 @@
/* To make sure the xfer cell is up to date */
gnc_gui_component_watch_entity_type (ledger->component_id,
GNC_ID_ACCOUNT,
- QOF_EVENT_MODIFY | QOF_EVENT_DESTROY);
+ QOF_EVENT_MODIFY | QOF_EVENT_DESTROY
+ | GNC_EVENT_ITEM_CHANGED);
/* To make sure the taxtable cell is up to date */
gnc_gui_component_watch_entity_type (ledger->component_id,
Modified: gnucash/trunk/src/engine/Transaction.c
===================================================================
--- gnucash/trunk/src/engine/Transaction.c 2006-04-14 05:36:42 UTC (rev 13778)
+++ gnucash/trunk/src/engine/Transaction.c 2006-04-14 05:37:34 UTC (rev 13779)
@@ -220,7 +220,7 @@
if (account)
{
xaccGroupMarkNotSaved (account->parent);
- qof_event_gen (&account->inst.entity, QOF_EVENT_MODIFY, NULL);
+ qof_event_gen (&account->inst.entity, GNC_EVENT_ITEM_CHANGED, s);
}
if (lot)
{
Modified: gnucash/trunk/src/engine/gnc-event.h
===================================================================
--- gnucash/trunk/src/engine/gnc-event.h 2006-04-14 05:36:42 UTC (rev 13778)
+++ gnucash/trunk/src/engine/gnc-event.h 2006-04-14 05:37:34 UTC (rev 13779)
@@ -36,5 +36,6 @@
*/
#define GNC_EVENT_ITEM_ADDED QOF_MAKE_EVENT(QOF_EVENT_BASE+0)
#define GNC_EVENT_ITEM_REMOVED QOF_MAKE_EVENT(QOF_EVENT_BASE+1)
+#define GNC_EVENT_ITEM_CHANGED QOF_MAKE_EVENT(QOF_EVENT_BASE+2)
#endif
Modified: gnucash/trunk/src/gnome/window-reconcile.c
===================================================================
--- gnucash/trunk/src/gnome/window-reconcile.c 2006-04-14 05:36:42 UTC (rev 13778)
+++ gnucash/trunk/src/gnome/window-reconcile.c 2006-04-14 05:37:34 UTC (rev 13779)
@@ -43,6 +43,7 @@
#include "gnc-amount-edit.h"
#include "gnc-component-manager.h"
#include "gnc-date-edit.h"
+#include "gnc-event.h"
#include "gnc-gconf-utils.h"
#include "gnc-gnome-utils.h"
#include "gnc-main-window.h"
@@ -1360,7 +1361,9 @@
gnc_gui_component_watch_entity (recnData->component_id,
xaccTransGetGUID (trans),
- QOF_EVENT_MODIFY | QOF_EVENT_DESTROY);
+ QOF_EVENT_MODIFY
+ | QOF_EVENT_DESTROY
+ | GNC_EVENT_ITEM_CHANGED);
break;
default:
Modified: gnucash/trunk/src/gnome-utils/window-main-summarybar.c
===================================================================
--- gnucash/trunk/src/gnome-utils/window-main-summarybar.c 2006-04-14 05:36:42 UTC (rev 13778)
+++ gnucash/trunk/src/gnome-utils/window-main-summarybar.c 2006-04-14 05:37:34 UTC (rev 13779)
@@ -33,6 +33,7 @@
#include "gnc-accounting-period.h"
#include "gnc-component-manager.h"
#include "gnc-euro.h"
+#include "gnc-event.h"
#include "gnc-gconf-utils.h"
#include "gnc-ui-util.h"
#include "window-main-summarybar.h"
@@ -491,7 +492,8 @@
NULL, retval);
gnc_gui_component_watch_entity_type (retval->component_id,
GNC_ID_ACCOUNT,
- QOF_EVENT_MODIFY | QOF_EVENT_DESTROY);
+ QOF_EVENT_DESTROY
+ | GNC_EVENT_ITEM_CHANGED);
for ( i = 0; i < N_COLUMNS; i++ )
{
Modified: gnucash/trunk/src/register/ledger-core/gnc-ledger-display.c
===================================================================
--- gnucash/trunk/src/register/ledger-core/gnc-ledger-display.c 2006-04-14 05:36:42 UTC (rev 13778)
+++ gnucash/trunk/src/register/ledger-core/gnc-ledger-display.c 2006-04-14 05:37:34 UTC (rev 13779)
@@ -36,6 +36,7 @@
#include "gnc-book.h"
#include "gnc-date.h"
#include "gnc-engine.h"
+#include "gnc-event.h"
#include "gnc-gconf-utils.h"
#include "gnc-ledger-display.h"
#include "gnc-ui-util.h"
@@ -508,7 +509,8 @@
gnc_gui_component_watch_entity_type (ld->component_id,
GNC_ID_ACCOUNT,
- QOF_EVENT_MODIFY | QOF_EVENT_DESTROY);
+ QOF_EVENT_MODIFY | QOF_EVENT_DESTROY
+ | GNC_EVENT_ITEM_CHANGED);
for (node = splits; node; node = node->next)
{
More information about the gnucash-changes
mailing list