2
* Copyright 2001 Red Hat, Inc.
4
* Permission to use, copy, modify, distribute, and sell this software and its
5
* documentation for any purpose is hereby granted without fee, provided that
6
* the above copyright notice appear in all copies and that both that
7
* copyright notice and this permission notice appear in supporting
8
* documentation, and that the name of Red Hat not be used in advertising or
9
* publicity pertaining to distribution of the software without specific,
10
* written prior permission. Red Hat makes no representations about the
11
* suitability of this software for any purpose. It is provided "as is"
12
* without express or implied warranty.
14
* RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
15
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL RED HAT
16
* BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
17
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
18
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
19
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21
* Authors: Jonathan Blandford
24
#ifndef __GNOME_SETTINGS_DAEMON_H
25
#define __GNOME_SETTINGS_DAEMON_H
27
#include <gconf/gconf.h>
28
#include <gconf/gconf-client.h>
31
#include <bonobo/bonobo-object.h>
33
#include "GNOME_SettingsDaemon.h"
35
typedef void (* KeyCallbackFunc) (GConfEntry *entry);
37
void gnome_settings_daemon_register_callback (const char *dir,
38
KeyCallbackFunc func);
39
GtkWidget *gnome_settings_daemon_get_invisible (void);
44
#define GNOME_SETTINGS_DAEMON_TYPE (gnome_settings_daemon_get_type ())
45
#define GNOME_SETTINGS_DAEMON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNOME_SETTINGS_DAEMON_TYPE, GnomeSettingsDaemon))
46
#define GNOME_SETTINGS_DAEMON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNOME_SETTINGS_DAEMON_TYPE, GnomeSettingsDaemonClass))
47
#define IS_GNOME_SETTINGS_DAEMON(obj) (GTK_TYPE_CHECK_INSTANCE_TYPE ((obj), GNOME_SETTINGS_DAEMON_TYPE))
48
#define IS_GNOME_SETTINGS_DAEMON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_SETTINGS_DAEMON_TYPE))
49
#define GNOME_SETTINGS_DAEMON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNOME_SETTINGS_DAEMON_TYPE, GnomeSettingsDaemonClass))
51
typedef struct _GnomeSettingsDaemon GnomeSettingsDaemon;
52
typedef struct _GnomeSettingsDaemonClass GnomeSettingsDaemonClass;
53
typedef struct _GnomeSettingsDaemonPrivate GnomeSettingsDaemonPrivate;
55
struct _GnomeSettingsDaemon
57
BonoboObject parent_instance;
58
GnomeSettingsDaemonPrivate *private;
61
struct _GnomeSettingsDaemonClass
63
BonoboObjectClass parent_class;
64
POA_GNOME_SettingsDaemon__epv epv;
67
GType gnome_settings_daemon_get_type (void);
68
GObject *gnome_settings_daemon_new (void);
69
void gnome_settings_daemon_spawn_with_input (char **argv,
74
#endif /* __GNOME_SETTINGS_DAEMON_H */