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