mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Create a function to remove the registered preference
call backs setup in gnc-prefs-utils.c
This commit is contained in:
parent
02f7a807de
commit
1344ea67e7
@ -124,3 +124,19 @@ void gnc_prefs_init (void)
|
|||||||
file_compression_changed_cb, NULL);
|
file_compression_changed_cb, NULL);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
gnc_prefs_remove_registered (void)
|
||||||
|
{
|
||||||
|
// remove the registered pref call backs above
|
||||||
|
gnc_prefs_remove_cb_by_func (GNC_PREFS_GROUP_GENERAL, GNC_PREF_RETAIN_DAYS,
|
||||||
|
file_retain_changed_cb, NULL);
|
||||||
|
gnc_prefs_remove_cb_by_func (GNC_PREFS_GROUP_GENERAL, GNC_PREF_RETAIN_TYPE_NEVER,
|
||||||
|
file_retain_type_changed_cb, NULL);
|
||||||
|
gnc_prefs_remove_cb_by_func (GNC_PREFS_GROUP_GENERAL, GNC_PREF_RETAIN_TYPE_DAYS,
|
||||||
|
file_retain_type_changed_cb, NULL);
|
||||||
|
gnc_prefs_remove_cb_by_func (GNC_PREFS_GROUP_GENERAL, GNC_PREF_RETAIN_TYPE_FOREVER,
|
||||||
|
file_retain_type_changed_cb, NULL);
|
||||||
|
gnc_prefs_remove_cb_by_func (GNC_PREFS_GROUP_GENERAL, GNC_PREF_FILE_COMPRESSION,
|
||||||
|
file_compression_changed_cb, NULL);
|
||||||
|
}
|
||||||
|
@ -47,6 +47,11 @@
|
|||||||
*/
|
*/
|
||||||
void gnc_prefs_init (void);
|
void gnc_prefs_init (void);
|
||||||
|
|
||||||
|
/** This function is called to remove the registered preference
|
||||||
|
* call backs setup in this file
|
||||||
|
*/
|
||||||
|
void gnc_prefs_remove_registered (void);
|
||||||
|
|
||||||
#endif /* GNC_PREFS_UTILS_H_ */
|
#endif /* GNC_PREFS_UTILS_H_ */
|
||||||
/** @} */
|
/** @} */
|
||||||
/** @} */
|
/** @} */
|
||||||
|
Loading…
Reference in New Issue
Block a user