aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-notifiers.h
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-11-16 05:29:00 +0800
committerChristian Persch <chpe@src.gnome.org>2004-11-16 05:29:00 +0800
commit6ca0ed69fcf77dc21c5501bd6685d0872f282330 (patch)
treecb2ea8d274e99058bb138e4e9890b2946d0ea828 /embed/mozilla/mozilla-notifiers.h
parenta4592d5f7811b38e5ae3111d683c5f96f5c7bf45 (diff)
downloadgsoc2013-epiphany-6ca0ed69fcf77dc21c5501bd6685d0872f282330.tar
gsoc2013-epiphany-6ca0ed69fcf77dc21c5501bd6685d0872f282330.tar.gz
gsoc2013-epiphany-6ca0ed69fcf77dc21c5501bd6685d0872f282330.tar.bz2
gsoc2013-epiphany-6ca0ed69fcf77dc21c5501bd6685d0872f282330.tar.lz
gsoc2013-epiphany-6ca0ed69fcf77dc21c5501bd6685d0872f282330.tar.xz
gsoc2013-epiphany-6ca0ed69fcf77dc21c5501bd6685d0872f282330.tar.zst
gsoc2013-epiphany-6ca0ed69fcf77dc21c5501bd6685d0872f282330.zip
Simplify the gconf -> mozilla prefs bridge.
2004-11-15 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/mozilla-embed-single.cpp: * embed/mozilla/mozilla-notifiers.cpp: * embed/mozilla/mozilla-notifiers.h: Simplify the gconf -> mozilla prefs bridge.
Diffstat (limited to 'embed/mozilla/mozilla-notifiers.h')
-rw-r--r--embed/mozilla/mozilla-notifiers.h33
1 files changed, 29 insertions, 4 deletions
diff --git a/embed/mozilla/mozilla-notifiers.h b/embed/mozilla/mozilla-notifiers.h
index b6559a5d2..711031000 100644
--- a/embed/mozilla/mozilla-notifiers.h
+++ b/embed/mozilla/mozilla-notifiers.h
@@ -1,5 +1,7 @@
/*
- * Copyright (C) 2000 Nate Case
+ * Copyright (C) 2000 Nate Case
+ * Copyright (C) 2000-2004 Marco Pesenti Gritti
+ * Copyright (C) 2003, 2004 Christian Persch
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -21,10 +23,33 @@
#ifndef MOZILLA_NOTIFIERS_H
#define MOZILLA_NOTIFIERS_H
-#include "ephy-embed-single.h"
+#include <glib-object.h>
+#include <gconf/gconf.h>
-void mozilla_notifiers_init (EphyEmbedSingle *single);
+G_BEGIN_DECLS
-void mozilla_notifiers_free (void);
+typedef gboolean (* PrefValueTransformFunc) (GConfValue *, GValue *);
+
+gboolean mozilla_notifier_transform_bool (GConfValue *, GValue *);
+
+gboolean mozilla_notifier_transform_bool_invert (GConfValue *, GValue *);
+
+gboolean mozilla_notifier_transform_int (GConfValue *, GValue *);
+
+gboolean mozilla_notifier_transform_string (GConfValue *, GValue *);
+
+void mozilla_notifier_add (const char *gconf_key,
+ const char *mozilla_pref,
+ PrefValueTransformFunc func);
+
+void mozilla_notifier_remove (const char *gconf_key,
+ const char *mozilla_pref,
+ PrefValueTransformFunc func);
+
+void mozilla_notifiers_init (void);
+
+void mozilla_notifiers_shutdown (void);
+
+G_END_DECLS
#endif