aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-notifiers.cpp
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-05-06 19:08:45 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-05-06 19:08:45 +0800
commit0844abeea1ba193d4c9aa9afdbd9aaddba459d17 (patch)
tree66bac3ea6730f272ee3429b3fd75e5e15d994829 /embed/mozilla/mozilla-notifiers.cpp
parent9902a5b9f55a904589bc7651722445d1bde3a2ef (diff)
downloadgsoc2013-epiphany-0844abeea1ba193d4c9aa9afdbd9aaddba459d17.tar
gsoc2013-epiphany-0844abeea1ba193d4c9aa9afdbd9aaddba459d17.tar.gz
gsoc2013-epiphany-0844abeea1ba193d4c9aa9afdbd9aaddba459d17.tar.bz2
gsoc2013-epiphany-0844abeea1ba193d4c9aa9afdbd9aaddba459d17.tar.lz
gsoc2013-epiphany-0844abeea1ba193d4c9aa9afdbd9aaddba459d17.tar.xz
gsoc2013-epiphany-0844abeea1ba193d4c9aa9afdbd9aaddba459d17.tar.zst
gsoc2013-epiphany-0844abeea1ba193d4c9aa9afdbd9aaddba459d17.zip
Remove proxy prefs initialization. Now we call the gconf notifier on
2003-05-06 Marco Pesenti Gritti <marco@it.gnome.org> * embed/mozilla/mozilla-embed-single.cpp: Remove proxy prefs initialization. Now we call the gconf notifier on startup for all mozilla prefs, so it should be no more necessary. * embed/mozilla/mozilla-notifiers.cpp: Fix a nice infinite loop with EmbedSingle being shell_get from his _init. General cleanup of that code. Galeon1 code is so messy :/
Diffstat (limited to 'embed/mozilla/mozilla-notifiers.cpp')
-rw-r--r--embed/mozilla/mozilla-notifiers.cpp42
1 files changed, 20 insertions, 22 deletions
diff --git a/embed/mozilla/mozilla-notifiers.cpp b/embed/mozilla/mozilla-notifiers.cpp
index 674e541df..8c7364516 100644
--- a/embed/mozilla/mozilla-notifiers.cpp
+++ b/embed/mozilla/mozilla-notifiers.cpp
@@ -40,18 +40,18 @@ static void
mozilla_own_colors_notifier(GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- gpointer user_data);
+ EphyEmbedSingle *single);
static void
mozilla_own_fonts_notifier(GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- gpointer user_data);
+ EphyEmbedSingle *single);
static void
mozilla_animate_notifier(GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- gpointer user_data);
+ EphyEmbedSingle *single);
static void
generic_mozilla_string_notifier(GConfClient *client,
guint cnxn_id,
@@ -71,13 +71,13 @@ static void
mozilla_allow_popups_notifier(GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- gpointer user_data);
+ EphyEmbedSingle *single);
static void
mozilla_language_notifier(GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- gpointer user_data);
+ EphyEmbedSingle *single);
static void
mozilla_autodetect_charset_notifier(GConfClient *client,
@@ -89,24 +89,24 @@ static void
mozilla_default_font_notifier(GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- gpointer user_data);
+ EphyEmbedSingle *single);
static void
mozilla_proxy_mode_notifier (GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- char *pref);
+ EphyEmbedSingle *single);
static void
mozilla_proxy_autoconfig_notifier (GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- char *pref);
+ EphyEmbedSingle *single);
static void
mozilla_user_agent_notifier(GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- gpointer user_data);
+ EphyEmbedSingle *single);
static void
mozilla_default_charset_notifier (GConfClient *client,
@@ -117,7 +117,7 @@ static void
mozilla_socks_version_notifier (GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- gpointer user_data);
+ EphyEmbedSingle *single);
/* Keeps the list of the notifiers we installed for mozilla prefs */
/* to be able to remove them when exiting */
@@ -219,7 +219,7 @@ static void
mozilla_proxy_mode_notifier (GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- char *pref)
+ EphyEmbedSingle *single)
{
const char *mode;
int mozilla_mode = 0;
@@ -255,10 +255,8 @@ static void
mozilla_proxy_autoconfig_notifier (GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- char *pref)
+ EphyEmbedSingle *single)
{
- EphyEmbedSingle *single;
- single = ephy_embed_shell_get_embed_single (embed_shell);
ephy_embed_single_load_proxy_autoconf
(single, gconf_value_get_string(entry->value));
}
@@ -495,7 +493,7 @@ static void
mozilla_own_colors_notifier(GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- gpointer user_data)
+ EphyEmbedSingle *single)
{
mozilla_prefs_set_boolean("browser.display.use_document_colors",
!gconf_value_get_bool(entry->value));
@@ -505,7 +503,7 @@ static void
mozilla_own_fonts_notifier(GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- gpointer user_data)
+ EphyEmbedSingle *single)
{
mozilla_prefs_set_int("browser.display.use_document_fonts",
!gconf_value_get_bool(entry->value));
@@ -515,7 +513,7 @@ static void
mozilla_animate_notifier(GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- gpointer user_data)
+ EphyEmbedSingle *single)
{
static const gchar *type[] =
{
@@ -532,7 +530,7 @@ static void
mozilla_allow_popups_notifier(GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- gpointer user_data)
+ EphyEmbedSingle *single)
{
gboolean new_val = eel_gconf_get_boolean(CONF_FILTERING_ALLOW_POPUPS);
mozilla_prefs_set_boolean ("dom.disable_open_during_load",
@@ -543,7 +541,7 @@ static void
mozilla_language_notifier(GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- gpointer user_data)
+ EphyEmbedSingle *single)
{
gchar *languages;
GSList *language_list ,*cur_lang_list;
@@ -616,7 +614,7 @@ static void
mozilla_default_font_notifier(GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- gpointer user_data)
+ EphyEmbedSingle *single)
{
const gchar *font_types [] = {"serif","sans-serif"};
int default_font;
@@ -686,7 +684,7 @@ static void
mozilla_user_agent_notifier (GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- gpointer user_data)
+ EphyEmbedSingle *single)
{
switch (entry->value->type)
{
@@ -704,7 +702,7 @@ static void
mozilla_socks_version_notifier (GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
- gpointer user_data)
+ EphyEmbedSingle *single)
{
int version;
version = gconf_value_get_int(entry->value) + 4;