1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
6
* Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
23
/* eel-gconf-extensions.h - Stuff to make GConf easier to use.
25
Copyright (C) 2000, 2001 Eazel, Inc.
27
The Gnome Library is free software; you can redistribute it and/or
28
modify it under the terms of the GNU Library General Public License as
29
published by the Free Software Foundation; either version 2 of the
30
License, or (at your option) any later version.
32
The Gnome Library is distributed in the hope that it will be useful,
33
but WITHOUT ANY WARRANTY; without even the implied warranty of
34
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
35
Library General Public License for more details.
37
You should have received a copy of the GNU Library General Public
38
License along with the Gnome Library; see the file COPYING.LIB. If not,
39
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
40
Boston, MA 02111-1307, USA.
42
Authors: Ramiro Estrugo <ramiro@eazel.com>
45
/* Modified by Paolo Bacchilega <paolo.bacch@tin.it> for File Roller. */
51
#include <gconf/gconf.h>
52
#include <gconf/gconf-client.h>
56
#define EEL_GCONF_UNDEFINED_CONNECTION 0
58
GConfClient *eel_gconf_client_get_global (void);
60
void eel_global_client_free (void);
62
gboolean eel_gconf_handle_error (GError **error);
64
gboolean eel_gconf_get_boolean (const char *key,
67
void eel_gconf_set_boolean (const char *key,
70
int eel_gconf_get_integer (const char *key,
73
void eel_gconf_set_integer (const char *key,
76
float eel_gconf_get_float (const char *key,
79
void eel_gconf_set_float (const char *key,
82
char * eel_gconf_get_string (const char *key,
85
void eel_gconf_set_string (const char *key,
88
char * eel_gconf_get_locale_string (const char *key,
91
void eel_gconf_set_locale_string (const char *key,
94
GSList * eel_gconf_get_string_list (const char *key);
96
void eel_gconf_set_string_list (const char *key,
97
const GSList *string_list_value);
99
GSList * eel_gconf_get_locale_string_list(const char *key);
101
void eel_gconf_set_locale_string_list(const char *key,
102
const GSList *string_list_value);
104
gboolean eel_gconf_is_default (const char *key);
106
gboolean eel_gconf_monitor_add (const char *directory);
108
gboolean eel_gconf_monitor_remove (const char *directory);
110
void eel_gconf_preload_cache (const char *directory,
111
GConfClientPreloadType preload_type);
113
void eel_gconf_suggest_sync (void);
115
GConfValue* eel_gconf_get_value (const char *key);
117
GConfValue* eel_gconf_get_default_value (const char *key);
119
gboolean eel_gconf_value_is_equal (const GConfValue *a,
120
const GConfValue *b);
122
void eel_gconf_value_free (GConfValue *value);
124
guint eel_gconf_notification_add (const char *key,
125
GConfClientNotifyFunc notification_callback,
126
gpointer callback_data);
128
void eel_gconf_notification_remove (guint notification_id);
130
GSList * eel_gconf_value_get_string_list (const GConfValue *value);
132
void eel_gconf_value_set_string_list (GConfValue *value,
133
const GSList *string_list);
137
#endif /* GCONF_UTILS_H */