gnucash maint: Multiple changes pushed

Robert Fewell bobit at
Wed Oct 30 10:13:58 EDT 2019

Updated	 via (commit)
	 via (commit)
	from (commit)

commit f35a39c7446f503fcd3d8212c5721a76f0a7544f
Author: Robert Fewell <14uBobIT at>
Date:   Wed Oct 30 13:40:21 2019 +0000

    Change some spacing in the source files gnc-tree-model-account.*

commit 2ff91cf4e10b509a7237dfd0894d31ec52bfbf0f
Author: Robert Fewell <14uBobIT at>
Date:   Wed Oct 30 13:39:06 2019 +0000

    Bug 797453 - Chart of Accounts is slow to update / redraw
    The chart of Accounts tree view gets redrawn often and gets the data
    from the model via gnc_tree_model_account_get_value(). As such the
    numeric values are constantly being recalculated on every draw which is
    not ideal. This change caches all the string values to a GHashTable for
    retrieval which should be quicker than before.
    Changes to an account will clear the cache for that account and its
    parents so values can be updated. Changes to the preference negative
    colour clears the whole cache.

Summary of changes:
 gnucash/gnome-utils/gnc-tree-model-account.c | 541 +++++++++++++++++----------
 gnucash/gnome-utils/gnc-tree-model-account.h |   7 +-
 gnucash/gnome-utils/gnc-tree-view-account.c  |  11 +
 gnucash/gnome-utils/gnc-tree-view-account.h  |   7 +
 gnucash/gnome/dialog-price-edit-db.c         |   2 +
 gnucash/gnome/gnc-plugin-page-account-tree.c |   4 +
 6 files changed, 379 insertions(+), 193 deletions(-)

More information about the gnucash-patches mailing list