aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/EphyBrowser.cpp5
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1a5794c2e..b70b13b1a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2004-05-06 Christian Persch <chpe@cvs.gnome.org>
+ * embed/mozilla/EphyBrowser.cpp:
+
+ Adapt to mozilla API change.
+
+2004-05-06 Christian Persch <chpe@cvs.gnome.org>
+
* configure.in:
Recognise 1.7rc* too.
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp
index 157dceba6..1ed969adf 100644
--- a/embed/mozilla/EphyBrowser.cpp
+++ b/embed/mozilla/EphyBrowser.cpp
@@ -220,8 +220,13 @@ EphyBrowser::GetListener (void)
nsCOMPtr<nsPIDOMWindow> piWin(do_QueryInterface(domWindow));
NS_ENSURE_TRUE (piWin, NS_ERROR_FAILURE);
+#if MOZILLA_SNAPSHOT > 15
+ nsIChromeEventHandler* chromeHandler;
+ chromeHandler = piWin->GetChromeEventHandler();
+#else
nsCOMPtr<nsIChromeEventHandler> chromeHandler;
piWin->GetChromeEventHandler(getter_AddRefs(chromeHandler));
+#endif
mEventReceiver = do_QueryInterface(chromeHandler);
NS_ENSURE_TRUE (mEventReceiver, NS_ERROR_FAILURE);