diff --git a/widget/src/beos/nsWindow.cpp b/widget/src/beos/nsWindow.cpp index 8a3bb5206db8..c2cbd952732c 100644 --- a/widget/src/beos/nsWindow.cpp +++ b/widget/src/beos/nsWindow.cpp @@ -1146,12 +1146,12 @@ NS_METHOD nsWindow::Resize(PRInt32 aX, // Enable/disable this component // //------------------------------------------------------------------------- -NS_METHOD nsWindow::Enable(PRBool bState) +NS_METHOD nsWindow::Enable(PRBool aState) { if(mView && mView->LockLooper()) { if (mView->Window()) { uint flags = mView->Window()->Flags(); - if (bState == PR_TRUE) { + if (aState == PR_TRUE) { flags &= ~(B_AVOID_FRONT|B_AVOID_FOCUS); } else { flags |= B_AVOID_FRONT|B_AVOID_FOCUS; @@ -1164,6 +1164,13 @@ NS_METHOD nsWindow::Enable(PRBool bState) } +NS_METHOD nsWindow::IsEnabled(PRBool *aState) +{ + // looks easy enough, but... + return NS_ERROR_NOT_IMPLEMENTED; +} + + //------------------------------------------------------------------------- // // Give the focus to this component diff --git a/widget/src/beos/nsWindow.h b/widget/src/beos/nsWindow.h index 45d50833c21d..c9063e3dcc83 100644 --- a/widget/src/beos/nsWindow.h +++ b/widget/src/beos/nsWindow.h @@ -124,7 +124,8 @@ public: PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint); - NS_IMETHOD Enable(PRBool bState); + NS_IMETHOD Enable(PRBool aState); + NS_IMETHOD IsEnabled(PRBool *aState); NS_IMETHOD SetFocus(PRBool aRaise); NS_IMETHOD GetBounds(nsRect &aRect); NS_IMETHOD GetClientBounds(nsRect &aRect);