GnuCash
5.6-150-g038405b370+
|
GSettings helper routines. More...
#include <glib.h>
Go to the source code of this file.
Functions | |
const gchar * | gnc_gsettings_get_prefix (void) |
Get the default gsettings schema prefix. More... | |
void | gnc_gsettings_block_all (void) |
Block all prefs callbacks, used while preference dialog is loaded. | |
void | gnc_gsettings_unblock_all (void) |
UnBlock all prefs callbacks, used while preference dialog is loaded. | |
void | gnc_gsettings_load_backend (void) |
Configure gsettings as the backend for the gnucash preferences api. | |
void | gnc_gsettings_shutdown (void) |
Free the GSettings resources. | |
void | gnc_gsettings_version_upgrade (void) |
Check whether we need to adjust the user settings to a newer version. More... | |
Listening for changes | |
gulong | gnc_gsettings_register_cb (const char *schema, const gchar *key, gpointer func, gpointer user_data) |
Register a callback for when a specific key in the settings schema is changed. More... | |
void | gnc_gsettings_remove_cb_by_func (const gchar *schema, const gchar *key, gpointer func, gpointer user_data) |
Remove a function that was registered for a callback when a specific key in the settings schema changed. More... | |
void | gnc_gsettings_remove_cb_by_id (const gchar *schema, guint id) |
Remove a function that was registered for a callback when a specific key in the settings schema changed. More... | |
guint | gnc_gsettings_register_any_cb (const gchar *schema, gpointer func, gpointer user_data) |
Register a callback for when any key in the settings schema is changed. More... | |
void | gnc_gsettings_remove_any_cb_by_func (const gchar *schema, gpointer func, gpointer user_data) |
Remove a function that was registered for a callback when any key in the given settings schema changed. More... | |
void | gnc_gsettings_bind (const gchar *schema, const gchar *key, gpointer object, const gchar *property) |
Bind a setting to a g_object property. More... | |
GSettings Get Functions | |
gboolean | gnc_gsettings_get_bool (const gchar *schema, const gchar *key) |
Get a boolean value from GSettings. More... | |
gint | gnc_gsettings_get_int (const gchar *schema, const gchar *key) |
Get an integer value from GSettings. More... | |
gdouble | gnc_gsettings_get_float (const gchar *schema, const gchar *key) |
Get an float value from GSettings. More... | |
gchar * | gnc_gsettings_get_string (const gchar *schema, const gchar *key) |
Get a string value from GSettings. More... | |
gint | gnc_gsettings_get_enum (const gchar *schema, const gchar *key) |
Get an enum value from GSettings. More... | |
GVariant * | gnc_gsettings_get_value (const gchar *schema, const gchar *key) |
Get an arbitrary combination of values from GSettings. More... | |
GSettings Set/Unset Functions | |
gboolean | gnc_gsettings_set_bool (const gchar *schema, const gchar *key, gboolean value) |
Store a boolean value into GSettings. More... | |
gboolean | gnc_gsettings_set_int (const gchar *schema, const gchar *key, gint value) |
Store an integer value into GSettings. More... | |
gboolean | gnc_gsettings_set_float (const gchar *schema, const gchar *key, gdouble value) |
Store a float value into GSettings. More... | |
gboolean | gnc_gsettings_set_string (const gchar *schema, const gchar *key, const gchar *value) |
Store a string into GSettings. More... | |
gboolean | gnc_gsettings_set_enum (const gchar *schema, const gchar *key, gint value) |
Store an enum value into GSettings. More... | |
gboolean | gnc_gsettings_set_value (const gchar *schema, const gchar *key, GVariant *value) |
Store an arbitrary combination of values into GSettings. More... | |
void | gnc_gsettings_reset (const gchar *schema, const gchar *key) |
Reset a key to its default value in GSettings. More... | |
void | gnc_gsettings_reset_schema (const gchar *schema) |
Reset all keys in a schema to their default values in GSettings. More... | |
GSettings helper routines.
Definition in file gnc-gsettings.h.