This change is not related to SeaMonkey, so it can't break the build.

r=marklin
a=edburns
bug=20659

added #ifdef XP_UNIX for GTK_MOZAREA stuff.


git-svn-id: svn://10.0.0.236/trunk@55506 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
edburns%acm.org
1999-12-07 01:51:54 +00:00
parent 2c74c6fb06
commit 2050d69f72

View File

@@ -312,8 +312,6 @@ EmbeddedEventHandler (void * arg) {
// Create the event queue.
rv = aEventQService->CreateThreadEventQueue();
NS_VERIFY(NS_SUCCEEDED(nsIThread::SetMainThread()), "couldn't set main thread");
#ifndef NECKO
NS_InitINetService();
#endif
@@ -363,10 +361,16 @@ EmbeddedEventHandler (void * arg) {
#if DEBUG_RAPTOR_CANVAS
printf("EmbeddedEventHandler(%lx): Init the WebShell...\n", initContext);
#endif
//rv = initContext->webShell->Init((nsNativeWidget *)initContext->parentHWnd,
#ifdef XP_UNIX
rv = initContext->webShell->Init((nsNativeWidget *) GTK_MOZAREA(initContext->parentHWnd)->superwin,
initContext->x, initContext->y, initContext->w, initContext->h);
initContext->x, initContext->y,
initContext->w, initContext->h);
#else
rv = initContext->webShell->Init((nsNativeWidget *)initContext->parentHWnd,
initContext->x, initContext->y,
initContext->w, initContext->h);
#endif
if (NS_FAILED(rv)) {
initContext->initFailCode = kInitWebShellError;
return;