|
GnuCash c935c2f+
|
The only function in this file is meant to initialize the preferences system early in the load process. More...
Files | |
| file | gnc-prefs-utils.h |
| Preferences initialization function. | |
| file | gnc-prefs.h |
| Generic api to store and retrieve preferences. | |
Macros | |
| #define | GNC_PREFS_GROUP_GENERAL "general" |
| #define | GNC_PREFS_GROUP_GENERAL_REGISTER "general.register" |
| #define | GNC_PREFS_GROUP_GENERAL_REPORT "general.report" |
| #define | GNC_PREFS_GROUP_WARNINGS "general.warnings" |
| #define | GNC_PREFS_GROUP_WARNINGS_TEMP "warnings.temporary" |
| #define | GNC_PREFS_GROUP_WARNINGS_PERM "warnings.permanent" |
| #define | GNC_PREFS_GROUP_ACCT_SUMMARY "window.pages.account-tree.summary" |
| #define | GNC_PREF_VERSION "prefs-version" |
| #define | GNC_PREF_SAVE_GEOMETRY "save-window-geometry" |
| #define | GNC_PREF_LAST_PATH "last-path" |
| #define | GNC_PREF_USE_NEW "use-new-window" |
| #define | GNC_PREF_ACCOUNTING_LABELS "use-accounting-labels" |
| #define | GNC_PREF_ACCOUNT_SEPARATOR "account-separator" |
| #define | GNC_PREF_NEGATIVE_IN_RED "negative-in-red" |
| #define | GNC_PREF_NUM_SOURCE "num-source" |
| #define | GNC_PREF_DATE_FORMAT "date-format" |
| #define | GNC_PREF_DATE_COMPL_THISYEAR "date-completion-thisyear" |
| #define | GNC_PREF_DATE_COMPL_SLIDING "date-completion-sliding" |
| #define | GNC_PREF_DATE_BACKMONTHS "date-backmonths" |
| #define | GNC_PREF_SHOW_LEAF_ACCT_NAMES "show-leaf-account-names" |
| #define | GNC_PREF_ENTER_MOVES_TO_END "enter-moves-to-end" |
| #define | GNC_PREF_DRAW_HOR_LINES "draw-horizontal-lines" |
| #define | GNC_PREF_DRAW_VERT_LINES "draw-vertical-lines" |
| #define | GNC_PREF_ALT_COLOR_BY_TRANS "alternate-color-by-transaction" |
| #define | GNC_PREF_USE_THEME_COLORS "use-theme-colors" |
| #define | GNC_PREF_USE_GNUCASH_COLOR_THEME "use-gnucash-color-theme" |
| #define | GNC_PREF_TAB_TRANS_MEMORISED "tab-to-transfer-on-memorised" |
| #define | GNC_PREF_FUTURE_AFTER_BLANK "future-after-blank-transaction" |
| #define | GNC_PREF_JUMP_MULT_SPLITS "jump-multiple-splits" |
| #define | GNC_PREF_START_CHOICE_ABS "start-choice-absolute" |
| #define | GNC_PREF_START_CHOICE_REL "start-choice-relative" |
| #define | GNC_PREF_START_DATE "start-date" |
| #define | GNC_PREF_START_PERIOD "start-period" |
| #define | GNC_PREF_END_CHOICE_ABS "end-choice-absolute" |
| #define | GNC_PREF_END_CHOICE_REL "end-choice-relative" |
| #define | GNC_PREF_END_DATE "end-date" |
| #define | GNC_PREF_END_PERIOD "end-period" |
| #define | GNC_PREF_CURRENCY_OTHER "currency-other" |
| #define | GNC_PREF_CURRENCY_CHOICE_LOCALE "currency-choice-locale" |
| #define | GNC_PREF_CURRENCY_CHOICE_OTHER "currency-choice-other" |
Functions | |
| void | gnc_prefs_init (void) |
| This function is called early in the load process to preload a number of preferences from the settings backend. | |
| void | gnc_prefs_remove_registered (void) |
| This function is called to remove the registered preference call backs setup in this file. | |
| gboolean | gnc_prefs_is_set_up (void) |
| Test if preferences backend is set up. | |
| void | gnc_prefs_block_all (void) |
| Block all preference callbacks. | |
| void | gnc_prefs_unblock_all (void) |
| Unblock all preferences callbacks. | |
Early bird functions, needed before any backend has been set up | |
| const gchar * | gnc_prefs_get_namespace_regexp (void) |
| void | gnc_prefs_set_namespace_regexp (const gchar *str) |
| gboolean | gnc_prefs_is_debugging_enabled (void) |
| void | gnc_prefs_set_debugging (gboolean d) |
| gboolean | gnc_prefs_is_extra_enabled (void) |
| void | gnc_prefs_set_extra (gboolean enabled) |
| gboolean | gnc_prefs_get_file_save_compressed (void) |
| void | gnc_prefs_set_file_save_compressed (gboolean compressed) |
| gint | gnc_prefs_get_file_retention_policy (void) |
| void | gnc_prefs_set_file_retention_policy (gint policy) |
| gint | gnc_prefs_get_file_retention_days (void) |
| void | gnc_prefs_set_file_retention_days (gint days) |
| guint | gnc_prefs_get_long_version (void) |
Listening for changes | |
| gulong | gnc_prefs_register_cb (const char *group, const gchar *pref_name, gpointer func, gpointer user_data) |
| Register a callback that gets triggered when the given preference changes. | |
| void | gnc_prefs_remove_cb_by_func (const gchar *group, const gchar *pref_name, gpointer func, gpointer user_data) |
| Remove a function that was registered for a callback when the given preference changed. | |
| void | gnc_prefs_remove_cb_by_id (const gchar *group, guint id) |
| Remove a function that was registered for a callback when a specific preference in the settings group changed. | |
| guint | gnc_prefs_register_group_cb (const gchar *group, gpointer func, gpointer user_data) |
| Register a callback for when any preference in the settings group is changed. | |
| void | gnc_prefs_remove_group_cb_by_func (const gchar *group, gpointer func, gpointer user_data) |
| Remove a function that was registered for a callback when any preference in the given settings group changed. | |
| void | gnc_prefs_bind (const gchar *group, const gchar *pref_name, const gchar *pref_value, gpointer object, const gchar *property) |
| Bind a setting to a g_object property. | |
Preference Getters | |
| gboolean | gnc_prefs_get_bool (const gchar *group, const gchar *pref_name) |
| Get a boolean value from the preferences backend. | |
| gint | gnc_prefs_get_int (const gchar *group, const gchar *pref_name) |
| Get an integer value from the preferences backend. | |
| gint64 | gnc_prefs_get_int64 (const gchar *group, const gchar *pref_name) |
| Get an 64 bit integer value from the preferences backend. | |
| gdouble | gnc_prefs_get_float (const gchar *group, const gchar *pref_name) |
| Get an float value from the preferences backend. | |
| gchar * | gnc_prefs_get_string (const gchar *group, const gchar *pref_name) |
| Get a string value from the preferences backend. | |
| gint | gnc_prefs_get_enum (const gchar *group, const gchar *pref_name) |
| Get an enum value from the preferences backend. | |
| void | gnc_prefs_get_coords (const gchar *group, const gchar *pref_name, gdouble *x, gdouble *y) |
| Get a pair of coordinates from the preferences backend. | |
| GVariant * | gnc_prefs_get_value (const gchar *group, const gchar *pref_name) |
| Get an arbitrary combination of values from the preferences backend. | |
Preference Setters and Unset Functions | |
| gboolean | gnc_prefs_set_bool (const gchar *group, const gchar *pref_name, gboolean value) |
| Store a boolean value into the preferences backend. | |
| gboolean | gnc_prefs_set_int (const gchar *group, const gchar *pref_name, gint value) |
| Store an integer value into the preferences backend. | |
| gboolean | gnc_prefs_set_int64 (const gchar *group, const gchar *pref_name, gint64 value) |
| Store a 64 bit integer value into the preferences backend. | |
| gboolean | gnc_prefs_set_float (const gchar *group, const gchar *pref_name, gdouble value) |
| Store a float value into the preferences backend. | |
| gboolean | gnc_prefs_set_string (const gchar *group, const gchar *pref_name, const gchar *value) |
| Store a string into the preferences backend. | |
| gboolean | gnc_prefs_set_enum (const gchar *group, const gchar *pref_name, gint value) |
| Store an enum value into the preferences backend. | |
| gboolean | gnc_prefs_set_coords (const gchar *group, const gchar *pref_name, gdouble x, gdouble y) |
| Store coordinates into the preferences backend. | |
| gboolean | gnc_prefs_set_value (const gchar *group, const gchar *pref_name, GVariant *value) |
| Store an arbitrary combination of values into the preferences backend. | |
| void | gnc_prefs_reset (const gchar *group, const gchar *pref_name) |
| Reset a preference to its default value in the preferences backend. | |
| void | gnc_prefs_reset_group (const gchar *group) |
| Reset all preferences in a group to their default values in the preferences backend. | |
| gulong | gnc_prefs_get_reg_auto_raise_lists_id (void) |
| Get and Set registered preference id for register auto_raise_lists. | |
| void | gnc_prefs_set_reg_auto_raise_lists_id (gulong id) |
| gulong | gnc_prefs_get_reg_negative_color_pref_id (void) |
| Get and Set registered preference id for register negative_color_pref. | |
| void | gnc_prefs_set_reg_negative_color_pref_id (gulong id) |
The only function in this file is meant to initialize the preferences system early in the load process.
The API in this file is used to read and store preferences used by gnucash.
This is done in a way to hide the actual preferences backend from the rest of the engine.
This api is a generic one. To actually store and load preferences, a preferences backend should be configured. Currently only one backend is defined: the preferences backend.
Note that preferences are organized in groups. Most functions will require both a group and a preference name to find the exact preference to work with.
| #define GNC_PREF_ACCOUNT_SEPARATOR "account-separator" |
Definition at line 65 of file gnc-prefs.h.
| #define GNC_PREF_ACCOUNTING_LABELS "use-accounting-labels" |
Definition at line 64 of file gnc-prefs.h.
| #define GNC_PREF_ALT_COLOR_BY_TRANS "alternate-color-by-transaction" |
Definition at line 77 of file gnc-prefs.h.
| #define GNC_PREF_CURRENCY_CHOICE_LOCALE "currency-choice-locale" |
Definition at line 94 of file gnc-prefs.h.
| #define GNC_PREF_CURRENCY_CHOICE_OTHER "currency-choice-other" |
Definition at line 95 of file gnc-prefs.h.
| #define GNC_PREF_CURRENCY_OTHER "currency-other" |
Definition at line 93 of file gnc-prefs.h.
| #define GNC_PREF_DATE_BACKMONTHS "date-backmonths" |
Definition at line 71 of file gnc-prefs.h.
| #define GNC_PREF_DATE_COMPL_SLIDING "date-completion-sliding" |
Definition at line 70 of file gnc-prefs.h.
| #define GNC_PREF_DATE_COMPL_THISYEAR "date-completion-thisyear" |
Definition at line 69 of file gnc-prefs.h.
| #define GNC_PREF_DATE_FORMAT "date-format" |
Definition at line 68 of file gnc-prefs.h.
| #define GNC_PREF_DRAW_HOR_LINES "draw-horizontal-lines" |
Definition at line 75 of file gnc-prefs.h.
| #define GNC_PREF_DRAW_VERT_LINES "draw-vertical-lines" |
Definition at line 76 of file gnc-prefs.h.
| #define GNC_PREF_END_CHOICE_ABS "end-choice-absolute" |
Definition at line 88 of file gnc-prefs.h.
| #define GNC_PREF_END_CHOICE_REL "end-choice-relative" |
Definition at line 89 of file gnc-prefs.h.
| #define GNC_PREF_END_DATE "end-date" |
Definition at line 90 of file gnc-prefs.h.
| #define GNC_PREF_END_PERIOD "end-period" |
Definition at line 91 of file gnc-prefs.h.
| #define GNC_PREF_ENTER_MOVES_TO_END "enter-moves-to-end" |
Definition at line 73 of file gnc-prefs.h.
| #define GNC_PREF_FUTURE_AFTER_BLANK "future-after-blank-transaction" |
Definition at line 81 of file gnc-prefs.h.
| #define GNC_PREF_JUMP_MULT_SPLITS "jump-multiple-splits" |
Definition at line 82 of file gnc-prefs.h.
| #define GNC_PREF_LAST_PATH "last-path" |
Definition at line 62 of file gnc-prefs.h.
| #define GNC_PREF_NEGATIVE_IN_RED "negative-in-red" |
Definition at line 66 of file gnc-prefs.h.
| #define GNC_PREF_NUM_SOURCE "num-source" |
Definition at line 67 of file gnc-prefs.h.
| #define GNC_PREF_SAVE_GEOMETRY "save-window-geometry" |
Definition at line 61 of file gnc-prefs.h.
| #define GNC_PREF_SHOW_LEAF_ACCT_NAMES "show-leaf-account-names" |
Definition at line 72 of file gnc-prefs.h.
| #define GNC_PREF_START_CHOICE_ABS "start-choice-absolute" |
Definition at line 84 of file gnc-prefs.h.
| #define GNC_PREF_START_CHOICE_REL "start-choice-relative" |
Definition at line 85 of file gnc-prefs.h.
| #define GNC_PREF_START_DATE "start-date" |
Definition at line 86 of file gnc-prefs.h.
| #define GNC_PREF_START_PERIOD "start-period" |
Definition at line 87 of file gnc-prefs.h.
| #define GNC_PREF_TAB_TRANS_MEMORISED "tab-to-transfer-on-memorised" |
Definition at line 80 of file gnc-prefs.h.
| #define GNC_PREF_USE_GNUCASH_COLOR_THEME "use-gnucash-color-theme" |
Definition at line 79 of file gnc-prefs.h.
| #define GNC_PREF_USE_NEW "use-new-window" |
Definition at line 63 of file gnc-prefs.h.
| #define GNC_PREF_USE_THEME_COLORS "use-theme-colors" |
Definition at line 78 of file gnc-prefs.h.
| #define GNC_PREF_VERSION "prefs-version" |
Definition at line 60 of file gnc-prefs.h.
| #define GNC_PREFS_GROUP_ACCT_SUMMARY "window.pages.account-tree.summary" |
Definition at line 57 of file gnc-prefs.h.
| #define GNC_PREFS_GROUP_GENERAL "general" |
Definition at line 51 of file gnc-prefs.h.
| #define GNC_PREFS_GROUP_GENERAL_REGISTER "general.register" |
Definition at line 52 of file gnc-prefs.h.
| #define GNC_PREFS_GROUP_GENERAL_REPORT "general.report" |
Definition at line 53 of file gnc-prefs.h.
| #define GNC_PREFS_GROUP_WARNINGS "general.warnings" |
Definition at line 54 of file gnc-prefs.h.
| #define GNC_PREFS_GROUP_WARNINGS_PERM "warnings.permanent" |
Definition at line 56 of file gnc-prefs.h.
| #define GNC_PREFS_GROUP_WARNINGS_TEMP "warnings.temporary" |
Definition at line 55 of file gnc-prefs.h.
| void gnc_prefs_bind | ( | const gchar * | group, |
| const gchar * | pref_name, | ||
| const gchar * | pref_value, | ||
| gpointer | object, | ||
| const gchar * | property | ||
| ) |
Bind a setting to a g_object property.
When this succeeds a change of the setting will automatically update the bound object property and vice versa.
| group | This string contains the group name of the preference to bind to. |
| pref_name | This string is the name of the particular preference to bind to. |
| pref_value | This string is the enum value of the preference to bind to. |
| object | The object to be bound. |
| property | The property of the object to bind to. |
Definition at line 180 of file gnc-prefs.cpp.
| void gnc_prefs_block_all | ( | void | ) |
Block all preference callbacks.
Definition at line 379 of file gnc-prefs.cpp.
| gboolean gnc_prefs_get_bool | ( | const gchar * | group, |
| const gchar * | pref_name | ||
| ) |
Get a boolean value from the preferences backend.
| group | This string specifies the group to which the preference belongs |
| preference | This string is the name of the particular preference within the named group of the preferences backend. |
Definition at line 16 of file gmock-gnc-prefs.cpp.
| void gnc_prefs_get_coords | ( | const gchar * | group, |
| const gchar * | pref_name, | ||
| gdouble * | x, | ||
| gdouble * | y | ||
| ) |
Get a pair of coordinates from the preferences backend.
| group | This string specifies the group to which the preference belongs |
| preference | This string is the name of the particular preference within the named group of the preferences backend. |
| x | The x coordinate to retrieve. |
| y | The y coordinate to retrieve. |
If there is an error in processing, both coordinates will be set to zero.
Definition at line 58 of file gmock-gnc-prefs.cpp.
| gint gnc_prefs_get_enum | ( | const gchar * | group, |
| const gchar * | pref_name | ||
| ) |
Get an enum value from the preferences backend.
| group | This string specifies the group to which the preference belongs |
| preference | This string is the name of the particular preference within the named group of the preferences backend. |
Definition at line 51 of file gmock-gnc-prefs.cpp.
| gint gnc_prefs_get_file_retention_days | ( | void | ) |
Definition at line 110 of file gnc-prefs.cpp.
| gint gnc_prefs_get_file_retention_policy | ( | void | ) |
Definition at line 98 of file gnc-prefs.cpp.
| gboolean gnc_prefs_get_file_save_compressed | ( | void | ) |
Definition at line 86 of file gnc-prefs.cpp.
| gdouble gnc_prefs_get_float | ( | const gchar * | group, |
| const gchar * | pref_name | ||
| ) |
Get an float value from the preferences backend.
| group | This string specifies the group to which the preference belongs |
| preference | This string is the name of the particular preference within the named group of the preferences backend. |
Definition at line 37 of file gmock-gnc-prefs.cpp.
| gint gnc_prefs_get_int | ( | const gchar * | group, |
| const gchar * | pref_name | ||
| ) |
Get an integer value from the preferences backend.
| group | This string specifies the group to which the preference belongs |
| preference | This string is the name of the particular preference within the named group of the preferences backend. |
Definition at line 23 of file gmock-gnc-prefs.cpp.
| gint64 gnc_prefs_get_int64 | ( | const gchar * | group, |
| const gchar * | pref_name | ||
| ) |
Get an 64 bit integer value from the preferences backend.
| group | This string specifies the group to which the preference belongs |
| preference | This string is the name of the particular preference within the named group of the preferences backend. |
Definition at line 30 of file gmock-gnc-prefs.cpp.
| guint gnc_prefs_get_long_version | ( | void | ) |
Definition at line 122 of file gnc-prefs.cpp.
| const gchar * gnc_prefs_get_namespace_regexp | ( | void | ) |
Definition at line 49 of file gnc-prefs.cpp.
| gulong gnc_prefs_get_reg_auto_raise_lists_id | ( | void | ) |
Get and Set registered preference id for register auto_raise_lists.
Definition at line 391 of file gnc-prefs.cpp.
| gulong gnc_prefs_get_reg_negative_color_pref_id | ( | void | ) |
Get and Set registered preference id for register negative_color_pref.
Definition at line 401 of file gnc-prefs.cpp.
| gchar * gnc_prefs_get_string | ( | const gchar * | group, |
| const gchar * | pref_name | ||
| ) |
Get a string value from the preferences backend.
| group | This string specifies the group to which the preference belongs |
| preference | This string is the name of the particular preference within the named group of the preferences backend. |
Definition at line 44 of file gmock-gnc-prefs.cpp.
| GVariant * gnc_prefs_get_value | ( | const gchar * | group, |
| const gchar * | pref_name | ||
| ) |
Get an arbitrary combination of values from the preferences backend.
This combination of values can be anything that can be encapsulated in a GVariant structure.
| group | This string specifies the group to which the preference belongs |
| preference | This string is the name of the particular preference within the named group of the preferences backend. |
Definition at line 267 of file gnc-prefs.cpp.
| void gnc_prefs_init | ( | void | ) |
This function is called early in the load process to preload a number of preferences from the settings backend.
Definition at line 82 of file gnc-prefs-utils.c.
| gboolean gnc_prefs_is_debugging_enabled | ( | void | ) |
Definition at line 62 of file gnc-prefs.cpp.
| gboolean gnc_prefs_is_extra_enabled | ( | void | ) |
Definition at line 74 of file gnc-prefs.cpp.
| gboolean gnc_prefs_is_set_up | ( | void | ) |
Test if preferences backend is set up.
Definition at line 374 of file gnc-prefs.cpp.
| gulong gnc_prefs_register_cb | ( | const char * | group, |
| const gchar * | pref_name, | ||
| gpointer | func, | ||
| gpointer | user_data | ||
| ) |
Register a callback that gets triggered when the given preference changes.
Any time the preference's value changes, the routine will be invoked and will be passed both the changed preference and the user data passed to this function.
| group | This string contains the group name of the preference to watch. |
| preference | This string contains the name of the preference to watch. |
| func | This is a pointer to the function to call when the preference changes. |
| user_data | This pointer will be passed to the callback function. |
Definition at line 127 of file gnc-prefs.cpp.
| guint gnc_prefs_register_group_cb | ( | const gchar * | group, |
| gpointer | func, | ||
| gpointer | user_data | ||
| ) |
Register a callback for when any preference in the settings group is changed.
Any time the value of a preference in this group changes, the routine will be invoked and will be passed the specified user data.
| group | This string contains the name of the group that is being watched. |
| func | This is a pointer to the function to call when a preference changes. |
| user_data | This pointer will be passed to the callback function. |
Definition at line 160 of file gnc-prefs.cpp.
| void gnc_prefs_remove_cb_by_func | ( | const gchar * | group, |
| const gchar * | pref_name, | ||
| gpointer | func, | ||
| gpointer | user_data | ||
| ) |
Remove a function that was registered for a callback when the given preference changed.
Both the func and user_data arguments are used to match up the callback to remove. If no matching func and user_data are found to be registered for the given preference, nothing will happen.
| group | This string contains the group name of the preference that is being watched. |
| preference | This string contains the name of the preference being watched. |
| func | This is a pointer to the function that was registered earlier. |
| user_data | This pointer was passed to the callback function when it was registered. |
Definition at line 142 of file gnc-prefs.cpp.
| void gnc_prefs_remove_cb_by_id | ( | const gchar * | group, |
| guint | id | ||
| ) |
Remove a function that was registered for a callback when a specific preference in the settings group changed.
The handler id that was generated when the callback was registered is use to find the callback to remove. If no handler id is found nothing will happen.
| group | This string contains the group name of the preference that is being watched. |
| id | The handler id of the callback to be removed. |
Definition at line 152 of file gnc-prefs.cpp.
| void gnc_prefs_remove_group_cb_by_func | ( | const gchar * | group, |
| gpointer | func, | ||
| gpointer | user_data | ||
| ) |
Remove a function that was registered for a callback when any preference in the given settings group changed.
Both the func and user_data arguments are used to match up the callback to remove. If no matching func and user_data are found to be registered for the given preference, nothing will happen.
| group | This string contains the name of the group that is being watched. |
| func | This is a pointer to the function that was registered earlier. |
| user_data | This pointer was passed to the callback function when it was registered. |
Definition at line 171 of file gnc-prefs.cpp.
| void gnc_prefs_remove_registered | ( | void | ) |
This function is called to remove the registered preference call backs setup in this file.
Definition at line 129 of file gnc-prefs-utils.c.
| void gnc_prefs_reset | ( | const gchar * | group, |
| const gchar * | pref_name | ||
| ) |
Reset a preference to its default value in the preferences backend.
| group | This string specifies the group to which the preference belongs |
| preference | This string is the name of the particular preference within the named group of the preferences backend. |
Definition at line 361 of file gnc-prefs.cpp.
| void gnc_prefs_reset_group | ( | const gchar * | group | ) |
Reset all preferences in a group to their default values in the preferences backend.
| group | This string specifies the group to which the preference belongs |
Definition at line 368 of file gnc-prefs.cpp.
| gboolean gnc_prefs_set_bool | ( | const gchar * | group, |
| const gchar * | pref_name, | ||
| gboolean | value | ||
| ) |
Store a boolean value into the preferences backend.
| group | This string specifies the group to which the preference belongs |
| preference | This string is the name of the particular preference within the named group of the preferences backend. |
| value | The boolean value to be stored. |
Definition at line 277 of file gnc-prefs.cpp.
| gboolean gnc_prefs_set_coords | ( | const gchar * | group, |
| const gchar * | pref_name, | ||
| gdouble | x, | ||
| gdouble | y | ||
| ) |
Store coordinates into the preferences backend.
Coordinates consist of a pair of floating point values (x and y).
| group | This string specifies the group to which the preference belongs |
| preference | This string is the name of the particular preference within the named group of the preferences backend. |
| x | The x coordinate to be stored. |
| y | The y coordinate to be stored. |
Definition at line 341 of file gnc-prefs.cpp.
| void gnc_prefs_set_debugging | ( | gboolean | d | ) |
Definition at line 68 of file gnc-prefs.cpp.
| gboolean gnc_prefs_set_enum | ( | const gchar * | group, |
| const gchar * | pref_name, | ||
| gint | value | ||
| ) |
Store an enum value into the preferences backend.
| group | This string specifies the group to which the preference belongs |
| preference | This string is the name of the particular preference within the named group of the preferences backend. |
| value | The enum number to be stored. |
Definition at line 330 of file gnc-prefs.cpp.
| void gnc_prefs_set_extra | ( | gboolean | enabled | ) |
Definition at line 80 of file gnc-prefs.cpp.
| void gnc_prefs_set_file_retention_days | ( | gint | days | ) |
Definition at line 116 of file gnc-prefs.cpp.
| void gnc_prefs_set_file_retention_policy | ( | gint | policy | ) |
Definition at line 104 of file gnc-prefs.cpp.
| void gnc_prefs_set_file_save_compressed | ( | gboolean | compressed | ) |
Definition at line 92 of file gnc-prefs.cpp.
| gboolean gnc_prefs_set_float | ( | const gchar * | group, |
| const gchar * | pref_name, | ||
| gdouble | value | ||
| ) |
Store a float value into the preferences backend.
| group | This string specifies the group to which the preference belongs |
| preference | This string is the name of the particular preference within the named group of the preferences backend. |
| value | The floating point number to be stored. |
Definition at line 308 of file gnc-prefs.cpp.
| gboolean gnc_prefs_set_int | ( | const gchar * | group, |
| const gchar * | pref_name, | ||
| gint | value | ||
| ) |
Store an integer value into the preferences backend.
| group | This string specifies the group to which the preference belongs |
| preference | This string is the name of the particular preference within the named group of the preferences backend. |
| value | The integer number to be stored. |
Definition at line 288 of file gnc-prefs.cpp.
| gboolean gnc_prefs_set_int64 | ( | const gchar * | group, |
| const gchar * | pref_name, | ||
| gint64 | value | ||
| ) |
Store a 64 bit integer value into the preferences backend.
| group | This string specifies the group to which the preference belongs |
| preference | This string is the name of the particular preference within the named group of the preferences backend. |
| value | The 64 bit integer number to be stored. |
Definition at line 299 of file gnc-prefs.cpp.
| void gnc_prefs_set_namespace_regexp | ( | const gchar * | str | ) |
Definition at line 55 of file gnc-prefs.cpp.
| void gnc_prefs_set_reg_auto_raise_lists_id | ( | gulong | id | ) |
Definition at line 396 of file gnc-prefs.cpp.
| void gnc_prefs_set_reg_negative_color_pref_id | ( | gulong | id | ) |
Definition at line 406 of file gnc-prefs.cpp.
| gboolean gnc_prefs_set_string | ( | const gchar * | group, |
| const gchar * | pref_name, | ||
| const gchar * | value | ||
| ) |
Store a string into the preferences backend.
| group | This string specifies the group to which the preference belongs |
| preference | This string is the name of the particular preference within the named group of the preferences backend. |
| value | The string to be stored. the preferences backend will make a copy of this string, so it is the callers responsibility to free the space used by this string (if necessary). |
Definition at line 319 of file gnc-prefs.cpp.
| gboolean gnc_prefs_set_value | ( | const gchar * | group, |
| const gchar * | pref_name, | ||
| GVariant * | value | ||
| ) |
Store an arbitrary combination of values into the preferences backend.
| group | This string specifies the group to which the preference belongs |
| preference | This string is the name of the particular preference within the named group of the preferences backend. |
| value | The combination of values encapsulated in a GVariant to be stored. |
Definition at line 350 of file gnc-prefs.cpp.
| void gnc_prefs_unblock_all | ( | void | ) |
Unblock all preferences callbacks.
Definition at line 385 of file gnc-prefs.cpp.