diff --git a/lib/src/sugar-browser.cpp b/lib/src/sugar-browser.cpp index b4ac8586..8d49c001 100644 --- a/lib/src/sugar-browser.cpp +++ b/lib/src/sugar-browser.cpp @@ -372,6 +372,7 @@ sugar_browser_scroll_pixels(SugarBrowser *browser, int dx, int dy) { +#ifndef HAVE_GECKO_1_9 nsCOMPtr webBrowser; gtk_moz_embed_get_nsIWebBrowser (GTK_MOZ_EMBED(browser), getter_AddRefs(webBrowser)); @@ -389,6 +390,7 @@ sugar_browser_scroll_pixels(SugarBrowser *browser, NS_ENSURE_TRUE (DOMWindow, ); DOMWindow->ScrollBy (dx, dy); +#endif } void