From 7cb015d4ab2e9eea7c08f2a028df0dfcb9765a2d Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 6 May 2004 13:06:09 +0000 Subject: Adapt to mozilla API change. 2004-05-06 Christian Persch * embed/mozilla/EphyBrowser.cpp: Adapt to mozilla API change. --- ChangeLog | 6 ++++++ embed/mozilla/EphyBrowser.cpp | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1a5794c2e..b70b13b1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-05-06 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + + Adapt to mozilla API change. + 2004-05-06 Christian Persch * configure.in: 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 piWin(do_QueryInterface(domWindow)); NS_ENSURE_TRUE (piWin, NS_ERROR_FAILURE); +#if MOZILLA_SNAPSHOT > 15 + nsIChromeEventHandler* chromeHandler; + chromeHandler = piWin->GetChromeEventHandler(); +#else nsCOMPtr chromeHandler; piWin->GetChromeEventHandler(getter_AddRefs(chromeHandler)); +#endif mEventReceiver = do_QueryInterface(chromeHandler); NS_ENSURE_TRUE (mEventReceiver, NS_ERROR_FAILURE); -- cgit v1.2.3