Added new static memer mModalCount to be used when a modal dialog

is created. Now calling PtModalStart/End, this fixed the problem with
widgets not highlighting properly when the mouse moved over them on a
modal dialog.
r=kedl


git-svn-id: svn://10.0.0.236/trunk@53876 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
Jerry.Kirk%Nexwarecorp.com
1999-11-18 12:43:43 +00:00
parent 8a6fcaa4c8
commit 2dd5f95279
2 changed files with 16 additions and 3 deletions

View File

@@ -36,6 +36,8 @@
#include <errno.h>
PRBool nsAppShell::mPtInited = PR_FALSE;
int nsAppShell::mModalCount = -1;
nsIEventQueue *kedlEQueue = nsnull;
/* Global Definitions */
@@ -267,7 +269,15 @@ NS_IMETHODIMP nsAppShell::Create(int *bac, char **bav)
//-------------------------------------------------------------------------
NS_METHOD nsAppShell::Spinup()
{
PR_LOG(PhWidLog, PR_LOG_DEBUG, ("nsAppShell::Spinup - Not Implemented.\n"));
PR_LOG(PhWidLog, PR_LOG_DEBUG, ("nsAppShell::Spinup this=<%p> mModalCount=<%d>\n", this, mModalCount));
if (mModalCount != -1)
{
/* This should be -1 here... what is wrong? */
NS_ASSERTION(0,"nsAppShell::Spinup mModalCount is not -1!\n");
abort();
}
mModalCount = PtModalStart();
return NS_OK;
}
@@ -278,7 +288,9 @@ NS_METHOD nsAppShell::Spinup()
//-------------------------------------------------------------------------
NS_METHOD nsAppShell::Spindown()
{
PR_LOG(PhWidLog, PR_LOG_DEBUG, ("nsAppShell::Spindown - Not Implemented.\n"));
PR_LOG(PhWidLog, PR_LOG_DEBUG, ("nsAppShell::Spindown this=<%p> mModalCount=<%d>\n", this, mModalCount));
PtModalEnd( mModalCount );
mModalCount = -1;
return NS_OK;
}