From 4f05ea67e32470322a557738b548f31e1f15c4f3 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 3 Jul 2004 11:34:21 +0000 Subject: Mozilla API change. 2004-07-03 Christian Persch * embed/mozilla/mozilla-embed-single.cpp: Mozilla API change. --- embed/mozilla/mozilla-embed-single.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'embed/mozilla/mozilla-embed-single.cpp') diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp index 5882b3fae..9556d8227 100644 --- a/embed/mozilla/mozilla-embed-single.cpp +++ b/embed/mozilla/mozilla-embed-single.cpp @@ -24,6 +24,7 @@ #endif #include "mozilla-embed-single.h" +#include "mozilla-version.h" #include "ephy-cookie-manager.h" #include "ephy-password-manager.h" @@ -589,7 +590,11 @@ impl_load_proxy_autoconf (EphyEmbedSingle *shell, do_GetService ("@mozilla.org/network/protocol-proxy-service;1"); if (!pps) return; +#if MOZILLA_CHECK_VERSION4 (1, 8, MOZILLA_ALPHA, 2) + pps->ConfigureFromPAC (nsEmbedCString (url)); +#else pps->ConfigureFromPAC (url); +#endif } static GList * -- cgit