gnucash master: Book-Currency Feature step 4
J. Alex Aycinena
alex.aycinena at code.gnucash.org
Thu Aug 13 19:40:20 EDT 2015
Updated via https://github.com/Gnucash/gnucash/commit/558cae3d (commit)
from https://github.com/Gnucash/gnucash/commit/fa6fbc55 (commit)
commit 558cae3d9ceb8a2e117790e78c849a83db4711e3
Author: Alex Aycinena <alex.aycinena at gmail.com>
Date: Thu Aug 13 17:16:02 2015 -0700
Book-Currency Feature step 4
Set feature flag if book-currency option selected and initiate registered
callbacks when currency accounting book option changes to book-currency so that registers/reports can update themselves.
The changes made are:
app-utils/gnc-ui-util.c & h - define gnc_book_option_book_currency_selected_cb
core-utils/gnc-features.c & h - define GNC_FEATURE_BOOK_CURRENCY
engine/engine-helpers.c & h - define gnc_book_option_book_currency_selected
to call registered callbacks and set feature
gnome-utils/gnc-main-window.c & h - add checking of book-currency option to
gnc_book_options_dialog_apply_cb function; refactor common code with
assistant-hiearchy.c by creating gnc_book_options_dialog_apply_helper
gnome/assistant-hierarchy.c - use gnc_book_options_dialog_apply_helper
Summary of changes:
src/app-utils/gnc-ui-util.c | 20 ++++++++++++++++++++
src/app-utils/gnc-ui-util.h | 5 +++++
src/core-utils/gnc-features.c | 1 +
src/core-utils/gnc-features.h | 1 +
src/engine/engine-helpers.c | 16 ++++++++++++++++
src/engine/engine-helpers.h | 5 +++++
src/gnome-utils/gnc-main-window.c | 30 ++++++++++++++++++++++--------
src/gnome-utils/gnc-main-window.h | 12 ++++++++++++
src/gnome/assistant-hierarchy.c | 22 +---------------------
9 files changed, 83 insertions(+), 29 deletions(-)
More information about the gnucash-patches
mailing list