aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-embed-single.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-embed-single.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-embed-single.cpp')
-rw-r--r--embed/mozilla/mozilla-embed-single.cpp68
1 files changed, 0 insertions, 68 deletions
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp
index e752af11e..d65a4fffa 100644
--- a/embed/mozilla/mozilla-embed-single.cpp
+++ b/embed/mozilla/mozilla-embed-single.cpp
@@ -181,72 +181,6 @@ mozilla_embed_single_class_init (MozillaEmbedSingleClass *klass)
}
static void
-mozilla_load_proxy_prefs (MozillaEmbedSingle *shell)
-{
- char *tmp;
- int i, mozilla_mode = 0;
-
- /* Proxy mode */
- tmp = eel_gconf_get_string (CONF_NETWORK_PROXY_MODE);
- g_return_if_fail (tmp != NULL);
-
- if (strcmp (tmp, "manual") == 0)
- {
- mozilla_mode = 1;
- }
- else if (strcmp (tmp, "auto") == 0)
- {
- mozilla_mode = 2;
- }
-
- mozilla_prefs_set_int ("network.proxy.type", mozilla_mode);
- g_free (tmp);
-
- /* Http proxy */
- tmp = eel_gconf_get_string (CONF_NETWORK_HTTP_PROXY);
- g_return_if_fail (tmp != NULL);
- mozilla_prefs_set_string ("network.proxy.http", tmp);
- g_free (tmp);
-
- i = eel_gconf_get_integer (CONF_NETWORK_HTTP_PROXY_PORT);
- mozilla_prefs_set_int ("network.proxy.http_port", i);
-
- /* Ftp proxy */
- tmp = eel_gconf_get_string (CONF_NETWORK_FTP_PROXY);
- g_return_if_fail (tmp != NULL);
- mozilla_prefs_set_string ("network.proxy.ftp", tmp);
- g_free (tmp);
-
- i = eel_gconf_get_integer (CONF_NETWORK_FTP_PROXY_PORT);
- mozilla_prefs_set_int ("network.proxy.ftp_port", i);
-
- /* Secure proxy */
- tmp = eel_gconf_get_string (CONF_NETWORK_SSL_PROXY);
- g_return_if_fail (tmp != NULL);
- mozilla_prefs_set_string ("network.proxy.ssl", tmp);
- g_free (tmp);
-
- i = eel_gconf_get_integer (CONF_NETWORK_SSL_PROXY_PORT);
- mozilla_prefs_set_int ("network.proxy.ssl_port", i);
-
- /* Socks proxy */
- tmp = eel_gconf_get_string (CONF_NETWORK_SOCKS_PROXY);
- g_return_if_fail (tmp != NULL);
- mozilla_prefs_set_string ("network.proxy.socks", tmp);
- g_free (tmp);
-
- i = eel_gconf_get_integer (CONF_NETWORK_SOCKS_PROXY_PORT);
- mozilla_prefs_set_int ("network.proxy.socks_port", i);
-
- /* Autoconfiguration */
- tmp = eel_gconf_get_string (CONF_NETWORK_PROXY_AUTO_URL);
- g_return_if_fail (tmp != NULL);
- ephy_embed_single_load_proxy_autoconf
- (EPHY_EMBED_SINGLE (shell), tmp);
- g_free (tmp);
-}
-
-static void
mozilla_set_default_prefs (MozillaEmbedSingle *mes)
{
mozilla_prefs_load (ephy_file ("default-prefs.js"));
@@ -354,8 +288,6 @@ mozilla_embed_single_init (MozillaEmbedSingle *mes)
mozilla_set_default_prefs (mes);
- mozilla_load_proxy_prefs (mes);
-
START_PROFILER ("Mozilla prefs notifiers")
mozilla_notifiers_init (EPHY_EMBED_SINGLE (mes));
STOP_PROFILER ("Mozilla prefs notifiers")