GnuCash 2.3.0
Defines | Typedefs
gnc-gconf-utils.h File Reference

GConf helper routines. More...

#include <gconf/gconf-client.h>

Go to the source code of this file.

Defines

#define GCONF_GENERAL   "general"
#define GCONF_GENERAL_REGISTER   "general/register"
#define GCONF_GENERAL_REPORT   "general/report"
#define GCONF_WARNINGS   "general/warnings"
#define GCONF_WARNINGS_TEMP   "general/warnings/temporary"
#define GCONF_WARNINGS_PERM   "general/warnings/permanent"
#define DESKTOP_GNOME_INTERFACE   "/desktop/gnome/interface"
#define KEY_TOOLBAR_STYLE   "toolbar_style"
#define KEY_SAVE_GEOMETRY   "save_window_geometry"
#define KEY_LAST_PATH   "last_path"
#define KEY_USE_NEW   "use_new_window"
#define KEY_ACCOUNTING_LABELS   "use_accounting_labels"
#define KEY_ACCOUNT_SEPARATOR   "account_separator"
#define KEY_NEGATIVE_IN_RED   "negative_in_red"
#define KEY_ENABLE_EURO   "enable_euro"
#define KEY_DATE_FORMAT   "date_format"
#define KEY_DATE_COMPLETION   "date_completion"
#define KEY_DATE_BACKMONTHS   "date_backmonths"
#define KEY_SHOW_LEAF_ACCOUNT_NAMES   "show_leaf_account_names"

Typedefs

typedef void(* GncGconfGeneralCb )(GConfEntry *entry, gpointer user_data)
typedef void(* GncGconfGeneralAnyCb )(gpointer user_data)

Functions

GConf Miscellaneous Functions
const gchar * gnc_enum_to_nick (GType type, gint value)
gint gnc_enum_from_nick (GType type, const gchar *name, gint default_value)
char * gnc_gconf_section_name (const char *name)
char * gnc_gconf_schema_section_name (const char *name)
void gnc_gconf_suggest_sync (void)
GConf "General" Section Convenience Functions
void gnc_gconf_general_register_cb (const gchar *key, GncGconfGeneralCb func, gpointer user_data)
void gnc_gconf_general_remove_cb (const gchar *key, GncGconfGeneralCb func, gpointer user_data)
void gnc_gconf_general_register_any_cb (GncGconfGeneralAnyCb func, gpointer user_data)
void gnc_gconf_general_remove_any_cb (GncGconfGeneralAnyCb func, gpointer user_data)
GConf Get Functions
gboolean gnc_gconf_get_bool (const gchar *section, const gchar *name, GError **error)
gboolean gnc_gconf_get_bool_no_error (const gchar *section, const gchar *name)
gint gnc_gconf_get_int (const gchar *section, const gchar *name, GError **error)
gdouble gnc_gconf_get_float (const gchar *section, const gchar *name, GError **error)
char * gnc_gconf_get_string (const gchar *section, const gchar *name, GError **error)
GSList * gnc_gconf_get_list (const gchar *section, const gchar *name, GConfValueType list_type, GError **error)
GConfSchema * gnc_gconf_get_schema (const gchar *section, const gchar *name, GError **caller_error)
GConf Set/Unset Functions
void gnc_gconf_set_bool (const gchar *section, const gchar *name, const gboolean value, GError **error)
void gnc_gconf_set_int (const gchar *section, const gchar *name, const gint value, GError **error)
void gnc_gconf_set_float (const gchar *section, const gchar *name, const gdouble value, GError **error)
void gnc_gconf_set_string (const gchar *section, const gchar *name, const gchar *value, GError **error)
void gnc_gconf_set_list (const gchar *section, const gchar *name, GConfValueType list_type, GSList *value, GError **error)
void gnc_gconf_unset (const gchar *section, const gchar *name, GError **error)
void gnc_gconf_unset_dir (const gchar *section, GError **error)
GConf Notification Functions
void gnc_gconf_add_notification (GObject *object, const gchar *section, GConfClientNotifyFunc callback, const gchar *whoami)
guint gnc_gconf_add_anon_notification (const gchar *section, GConfClientNotifyFunc callback, gpointer data)
void gnc_gconf_remove_notification (GObject *object, const gchar *section, const gchar *whoami)
void gnc_gconf_remove_anon_notification (const gchar *section, guint cnxn_id)
GSList * gnc_gconf_client_all_entries (const gchar *section)
gboolean gnc_gconf_schemas_found (void)

GConf One Liners

#define DESTKOP_TEAROFF_MENUS   "/desktop/gnome/interface/menus_have_tearoff"
#define DESTKOP_MENUBAR_DETACHABLE   "/desktop/gnome/interface/menubar_detachable"
#define DESTKOP_TOOLBAR_DETACHABLE   "/desktop/gnome/interface/toolbar_detachable"

Detailed Description

GConf helper routines.

Author:
Copyright (C) 2005,2006 David Hampton <hampton@employees.org>

Definition in file gnc-gconf-utils.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines