gnucash maint: Multiple changes pushed

Christopher Lam clam at code.gnucash.org
Wed Feb 24 07:34:24 EST 2021


Updated	 via  https://github.com/Gnucash/gnucash/commit/686f842c (commit)
	 via  https://github.com/Gnucash/gnucash/commit/422c151a (commit)
	 via  https://github.com/Gnucash/gnucash/commit/f743f24e (commit)
	 via  https://github.com/Gnucash/gnucash/commit/b767d160 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/e79db92d (commit)
	 via  https://github.com/Gnucash/gnucash/commit/0a22f688 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/b2b87921 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/b73cacd5 (commit)
	from  https://github.com/Gnucash/gnucash/commit/910da534 (commit)



commit 686f842c3d6d14a9e7c17222c16a22e00ce435c6
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Wed Feb 24 20:25:30 2021 +0800

    Bug 798135 - GtkEntry text with search list: shows selected entry again for no reason
    
    Because setting the GtkEntry to inline completion gtk_entry_completion_set_inline_completion (completion, TRUE)

commit 422c151a0378537bae8603fc846b9c33bb0c8576
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Mon Feb 22 20:50:48 2021 +0800

    [window-main-summarybar.c] use g_list_free_full

commit f743f24e7ed4b5bbc7916d9c301e06ca4177a7dd
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Mon Feb 22 19:00:11 2021 +0800

    [gnc-tree-model-split-reg.c] don't call g_list_length
    
    use model->number_of_trans_in_full_tlist instead which has already
    stored the length.

commit b767d16059d8f40f9cec6ab92bad8f961278bacc
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Mon Feb 22 18:59:02 2021 +0800

    [gnc-tree-model-split-reg.c] use xaccSplitListGetUniqueTransactionsReversed
    
    which is then reversed if required. this removes the need for double
    reversal.

commit e79db92d8d1ec067e629247b32a8d674ffceb4e7
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Mon Feb 22 18:17:02 2021 +0800

    [Split.c] xaccSplitListGetUniqueTransactionsReversed
    
    Same as xaccSplitListGetUniqueTransactions but doesn't reverse the
    list prior to returning. To be used by gnc-tree-model-split-reg.c
    
    Several optimizations
    
    * doesn't call g_list_find and g_list_append for every iteration
    * uses g_hash_table to cache list of txns already added instead of g_list_find
    * does not reverse the result, thereby returning a reversed list.

commit 0a22f688a64271ec12c2937558d83a0f4b5c62fd
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Mon Feb 22 18:16:16 2021 +0800

    plug memory leaks

commit b2b87921107132c98ee2d69221d944195aa29008
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Mon Feb 22 18:13:21 2021 +0800

    prepend-and-reverse instead of O(N^2) append

commit b73cacd58c1a79987f39b567e2a77a2c57499b19
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Mon Feb 22 18:11:53 2021 +0800

    [gnc-recurrence.c] avoid O(N^2) children traversal
    
    * each loop iteration called g_list_length and g_list_nth_data
    
    better to forloop scan children instead



Summary of changes:
 gnucash/gnome-search/gnc-general-search.c          |  1 -
 gnucash/gnome-utils/gnc-gtk-utils.c                |  1 -
 gnucash/gnome-utils/gnc-recurrence.c               | 13 ++++------
 .../gnc-sx-instance-dense-cal-adapter.c            |  7 +++---
 gnucash/gnome-utils/gnc-tree-model-split-reg.c     | 28 ++++++++--------------
 gnucash/gnome-utils/gnc-tree-view-account.c        |  3 ++-
 gnucash/gnome-utils/window-main-summarybar.c       |  9 +------
 gnucash/gnome/assistant-loan.cpp                   |  4 +++-
 gnucash/gnome/dialog-imap-editor.c                 |  5 +---
 gnucash/gnome/dialog-lot-viewer.c                  |  5 ++--
 gnucash/gnome/gnc-budget-view.c                    |  4 ++--
 gnucash/gnome/gnc-plugin-page-register.c           | 11 +++++----
 gnucash/gnome/gnc-plugin-page-register2.c          | 11 +++++----
 libgnucash/app-utils/gnc-sx-instance-model.c       |  3 ++-
 libgnucash/core-utils/gnc-glib-utils.c             |  4 ++--
 libgnucash/engine/SX-book.c                        |  4 ++--
 libgnucash/engine/ScrubBusiness.c                  |  3 ++-
 libgnucash/engine/Split.c                          | 23 +++++++++++++-----
 libgnucash/engine/Split.h                          |  1 +
 libgnucash/engine/Transaction.c                    |  6 ++---
 libgnucash/engine/gncCustomer.c                    |  4 ++--
 21 files changed, 74 insertions(+), 76 deletions(-)



More information about the gnucash-patches mailing list