1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
4
Copyright (C) 2000, 2001 Eazel, Inc.
6
The Gnome Library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Library General Public License as
8
published by the Free Software Foundation; either version 2 of the
9
License, or (at your option) any later version.
11
The Gnome Library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Library General Public License for more details.
16
You should have received a copy of the GNU Library General Public
17
License along with the Gnome Library; see the file COPYING.LIB. If not,
18
write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
Boston, MA 02110-1301 USA.
21
Authors: Ramiro Estrugo <ramiro@eazel.com>
24
#ifndef EEL_GCONF_EXTENSIONS_H
25
#define EEL_GCONF_EXTENSIONS_H
28
#include <gconf/gconf.h>
29
#include <gconf/gconf-client.h>
35
#define EEL_GCONF_UNDEFINED_CONNECTION 0
37
GConfClient *eel_gconf_client_get_global (void);
38
gboolean eel_gconf_handle_error (GError **error);
39
void eel_gconf_set_boolean (const char *key,
40
gboolean boolean_value);
41
gboolean eel_gconf_get_boolean (const char *key);
42
int eel_gconf_get_integer (const char *key);
43
void eel_gconf_set_integer (const char *key,
45
gfloat eel_gconf_get_float (const char *key);
46
void eel_gconf_set_float (const char *key,
48
char * eel_gconf_get_string (const char *key);
49
void eel_gconf_set_string (const char *key,
50
const char *string_value);
51
GSList * eel_gconf_get_string_list (const char *key);
52
void eel_gconf_set_string_list (const char *key,
53
const GSList *string_list_value);
54
gboolean eel_gconf_is_default (const char *key);
55
gboolean eel_gconf_monitor_add (const char *directory);
56
gboolean eel_gconf_monitor_remove (const char *directory);
57
void eel_gconf_suggest_sync (void);
58
GConfValue* eel_gconf_get_value (const char *key);
59
gboolean eel_gconf_value_is_equal (const GConfValue *a,
61
void eel_gconf_set_value (const char *key, GConfValue *value);
62
void eel_gconf_value_free (GConfValue *value);
64
GSList *eel_gconf_get_integer_list (const char *key);
65
void eel_gconf_set_integer_list (const char *key,
68
guint eel_gconf_notification_add (const char *key,
69
GConfClientNotifyFunc notification_callback,
70
gpointer callback_data);
71
void eel_gconf_notification_remove (guint notification_id);
73
void eel_gconf_unset (const char *key);
79
#endif /* EEL_GCONF_EXTENSIONS_H */