From 01b36dd4aeebac60076b1e8d28dd1181129939bd Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Thu, 26 Feb 2009 15:13:09 +0000 Subject: webkit-embed-single: use SoupProxyResolverGNOME to use GNOME proxy settings. svn path=/trunk/; revision=8814 --- embed/webkit/webkit-embed-single.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'embed/webkit/webkit-embed-single.c') diff --git a/embed/webkit/webkit-embed-single.c b/embed/webkit/webkit-embed-single.c index 3adf76bf0..60e4c5a4d 100644 --- a/embed/webkit/webkit-embed-single.c +++ b/embed/webkit/webkit-embed-single.c @@ -205,14 +205,19 @@ impl_init (EphyEmbedSingle *esingle) webkit_embed_prefs_init (); + session = webkit_get_default_session (); + + /* Store cookies in moz-compatible SQLite format */ filename = g_build_filename (ephy_dot_dir (), "cookies.sqlite", NULL); jar = soup_cookie_jar_sqlite_new (filename, FALSE); g_free (filename); - session = webkit_get_default_session (); soup_session_add_feature (session, SOUP_SESSION_FEATURE(jar)); g_object_unref (jar); + /* Use GNOME proxy settings through libproxy */ + soup_session_add_feature_by_type (session, SOUP_TYPE_PROXY_RESOLVER_GNOME); + return TRUE; } -- cgit v1.2.3