Cast nsNativeWindow to Widget to fix IRIX build. NS_NATIVE_WINDOW returns the XtWindow like it used to.

git-svn-id: svn://10.0.0.236/trunk@3415 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kmcclusk 1998-06-06 01:37:59 +00:00
parent 77dd3699cf
commit 936c8fc7eb

View File

@ -210,7 +210,7 @@ void nsWindow::CreateWindow(nsNativeWindow aNativeParent, nsIWidget *aWidgetPare
frameParent = mainWindow;
}
else
frameParent = aNativeParent;
frameParent = (Widget)aNativeParent;
frame = ::XtVaCreateManagedWidget("frame",
xmDrawingAreaWidgetClass,
@ -234,7 +234,8 @@ void nsWindow::CreateWindow(nsNativeWindow aNativeParent, nsIWidget *aWidgetPare
mCursor = eCursor_select;
SetCursor(eCursor_standard);
/* XtAddEventHandler(mWidget,
/*
XtAddEventHandler(mWidget,
ExposureMask,
PR_FALSE,
nsXtWidget_ExposureMask_EventHandler,
@ -465,6 +466,7 @@ void nsWindow::GetBounds(nsRect &aRect)
aRect.height = attrs.height;
} else {
printf("Bad bounds computed for nsIWidget\n");
// XXX If this code gets hit, one should question why and how
// and fix it there.
@ -584,8 +586,7 @@ void* nsWindow::GetNativeData(PRUint32 aDataType)
case NS_NATIVE_WINDOW:
{
// return (void*)XtWindow(mWidget);
return (void*)(mWidget);
return (void*)XtWindow(mWidget);
}
break;
case NS_NATIVE_DISPLAY: