mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
app-utils - move component manager to gnome-utils
It's primary purpose is to track gui objects' lifetimes. There's no need for libgnucash (a non-gui library) to deal with that. This required two book options related gui-only call backs to be moved to gnome-utils as well.
This commit is contained in:
@@ -56,8 +56,6 @@
|
||||
#include "gnc-session.h"
|
||||
#include "engine-helpers.h"
|
||||
#include "gnc-locale-utils.h"
|
||||
#include "gnc-component-manager.h"
|
||||
#include "gnc-features.h"
|
||||
#include "gnc-guile-utils.h"
|
||||
|
||||
#define GNC_PREF_CURRENCY_CHOICE_LOCALE "currency-choice-locale"
|
||||
@@ -414,44 +412,6 @@ gnc_get_current_book_tax_type (void)
|
||||
}
|
||||
}
|
||||
|
||||
/** Calls gnc_book_option_num_field_source_change to initiate registered
|
||||
* callbacks when num_field_source book option changes so that
|
||||
* registers/reports can update themselves; sets feature flag */
|
||||
void
|
||||
gnc_book_option_num_field_source_change_cb (gboolean num_action)
|
||||
{
|
||||
gnc_suspend_gui_refresh ();
|
||||
if (num_action)
|
||||
{
|
||||
/* Set a feature flag in the book for use of the split action field as number.
|
||||
* This will prevent older GnuCash versions that don't support this feature
|
||||
* from opening this file. */
|
||||
gnc_features_set_used (gnc_get_current_book(),
|
||||
GNC_FEATURE_NUM_FIELD_SOURCE);
|
||||
}
|
||||
gnc_book_option_num_field_source_change (num_action);
|
||||
gnc_resume_gui_refresh ();
|
||||
}
|
||||
|
||||
/** Calls gnc_book_option_book_currency_selected to initiate registered
|
||||
* callbacks when currency accounting book option changes to book-currency so
|
||||
* that registers/reports can update themselves; sets feature flag */
|
||||
void
|
||||
gnc_book_option_book_currency_selected_cb (gboolean use_book_currency)
|
||||
{
|
||||
gnc_suspend_gui_refresh ();
|
||||
if (use_book_currency)
|
||||
{
|
||||
/* Set a feature flag in the book for use of book currency. This will
|
||||
* prevent older GnuCash versions that don't support this feature from
|
||||
* opening this file. */
|
||||
gnc_features_set_used (gnc_get_current_book(),
|
||||
GNC_FEATURE_BOOK_CURRENCY);
|
||||
}
|
||||
gnc_book_option_book_currency_selected (use_book_currency);
|
||||
gnc_resume_gui_refresh ();
|
||||
}
|
||||
|
||||
/** Returns TRUE if both book-currency and default gain/loss policy KVPs exist
|
||||
* and are valid and trading accounts are not used. */
|
||||
gboolean
|
||||
|
||||
Reference in New Issue
Block a user