~ubuntu-branches/debian/squeeze/galeon/squeeze

« back to all changes in this revision

Viewing changes to utils/eel-gconf-extensions.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Howard
  • Date: 2004-06-06 09:02:01 UTC
  • Revision ID: james.westby@ubuntu.com-20040606090201-yhx6ruhq8um7ggs2
Tags: upstream-1.3.15
ImportĀ upstreamĀ versionĀ 1.3.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
 
2
 
 
3
/* eel-gconf-extensions.h - Stuff to make GConf easier to use.
 
4
 
 
5
   Copyright (C) 2000, 2001 Eazel, Inc.
 
6
 
 
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.
 
11
 
 
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.
 
16
 
 
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., 59 Temple Place - Suite 330,
 
20
   Boston, MA 02111-1307, USA.
 
21
 
 
22
   Authors: Ramiro Estrugo <ramiro@eazel.com>
 
23
*/
 
24
 
 
25
#ifndef EEL_GCONF_EXTENSIONS_H
 
26
#define EEL_GCONF_EXTENSIONS_H
 
27
 
 
28
#include <glib/gerror.h>
 
29
#include <gconf/gconf.h>
 
30
#include <gconf/gconf-client.h>
 
31
 
 
32
#ifdef __cplusplus
 
33
extern "C" {
 
34
#endif
 
35
 
 
36
#define EEL_GCONF_UNDEFINED_CONNECTION 0
 
37
 
 
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,
 
45
                                            int                     int_value);
 
46
gfloat       eel_gconf_get_float           (const char             *key);
 
47
void         eel_gconf_set_float           (const char             *key,
 
48
                                            gfloat                 float_value);
 
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,
 
61
                                            const GConfValue       *b);
 
62
void         eel_gconf_set_value           (const char *key, 
 
63
                                            const GConfValue *value);
 
64
gboolean     eel_gconf_key_exists          (const char *key);
 
65
 
 
66
void         eel_gconf_value_free          (GConfValue             *value);
 
67
void         eel_gconf_unset               (const char *key);
 
68
 
 
69
/* Functions which weren't part of the eel-gconf-extensions.h file from eel */
 
70
GSList *eel_gconf_get_integer_list (const char *key);
 
71
void eel_gconf_set_integer_list (const char *key,
 
72
                                 const GSList *slist);
 
73
void galeon_notification_add (const char *key,
 
74
                              GConfClientNotifyFunc notification_callback,
 
75
                              gpointer callback_data, 
 
76
                              GList **notifiers);
 
77
void galeon_notification_remove(GList **notifiers);
 
78
guint eel_gconf_notification_add (const char *key,
 
79
                                  GConfClientNotifyFunc notification_callback,
 
80
                                  gpointer callback_data);
 
81
void eel_gconf_notification_remove (guint notification_id);
 
82
 
 
83
#ifdef __cplusplus
 
84
}
 
85
#endif
 
86
 
 
87
#endif /* EEL_GCONF_EXTENSIONS_H */