aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-11-27 01:40:05 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-11-27 06:00:55 +0800
commit42f71a3b0ea0e3ccbc52bafb84433d7271a16479 (patch)
tree9118e4bad45a1e9b52a34a33112ef4b34c3ab9aa /shell
parent784e99d28062c4a98da5b83d21928684fd48f7db (diff)
downloadgsoc2013-evolution-42f71a3b0ea0e3ccbc52bafb84433d7271a16479.tar
gsoc2013-evolution-42f71a3b0ea0e3ccbc52bafb84433d7271a16479.tar.gz
gsoc2013-evolution-42f71a3b0ea0e3ccbc52bafb84433d7271a16479.tar.bz2
gsoc2013-evolution-42f71a3b0ea0e3ccbc52bafb84433d7271a16479.tar.lz
gsoc2013-evolution-42f71a3b0ea0e3ccbc52bafb84433d7271a16479.tar.xz
gsoc2013-evolution-42f71a3b0ea0e3ccbc52bafb84433d7271a16479.tar.zst
gsoc2013-evolution-42f71a3b0ea0e3ccbc52bafb84433d7271a16479.zip
EShell: Configure WebKit's default SoupSession.
Configure WebKit's default SoupSession to honor our proxy settings.
Diffstat (limited to 'shell')
-rw-r--r--shell/e-shell.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index ee30d5c8d5..30ab0294df 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -788,6 +788,7 @@ shell_initable_init (GInitable *initable,
GApplication *application = G_APPLICATION (initable);
EShell *shell = E_SHELL (initable);
ESourceRegistry *registry;
+ ESource *proxy_source;
gulong handler_id;
shell_add_actions (application);
@@ -807,6 +808,17 @@ shell_initable_init (GInitable *initable,
G_CALLBACK (shell_backend_died_cb), shell);
shell->priv->backend_died_handler_id = handler_id;
+ /* Configure WebKit's default SoupSession. */
+
+ proxy_source = e_source_registry_ref_builtin_proxy (registry);
+
+ g_object_set (
+ webkit_get_default_session (),
+ SOUP_SESSION_PROXY_RESOLVER,
+ G_PROXY_RESOLVER (proxy_source),
+ NULL);
+
+ g_object_unref (proxy_source);
g_object_unref (registry);
return TRUE;