Reverted mistake on last commit.
This commit is contained in:
parent
4016f12d86
commit
f196eb264e
@ -372,6 +372,7 @@ sugar_browser_scroll_pixels(SugarBrowser *browser,
|
|||||||
int dx,
|
int dx,
|
||||||
int dy)
|
int dy)
|
||||||
{
|
{
|
||||||
|
#ifndef HAVE_GECKO_1_9
|
||||||
nsCOMPtr<nsIWebBrowser> webBrowser;
|
nsCOMPtr<nsIWebBrowser> webBrowser;
|
||||||
gtk_moz_embed_get_nsIWebBrowser (GTK_MOZ_EMBED(browser),
|
gtk_moz_embed_get_nsIWebBrowser (GTK_MOZ_EMBED(browser),
|
||||||
getter_AddRefs(webBrowser));
|
getter_AddRefs(webBrowser));
|
||||||
@ -389,6 +390,7 @@ sugar_browser_scroll_pixels(SugarBrowser *browser,
|
|||||||
NS_ENSURE_TRUE (DOMWindow, );
|
NS_ENSURE_TRUE (DOMWindow, );
|
||||||
|
|
||||||
DOMWindow->ScrollBy (dx, dy);
|
DOMWindow->ScrollBy (dx, dy);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user