fix types and remember to initialize the grippy last highlight to none at creation. Fixes a problem where the first grippy in the toolbar was being drawn highlighted at create time.

This commit is contained in:
pinkerton%netscape.com 1999-02-18 19:28:00 +00:00
Родитель bf42d23076
Коммит eea4d6c4b8
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -83,7 +83,7 @@ NS_NewToolboxFrame ( nsIFrame*& aNewFrame )
// Init, if necessary
//
nsToolboxFrame :: nsToolboxFrame ( )
: mSumOfToolbarHeights(0), mNumToolbars(0)
: mSumOfToolbarHeights(0), mNumToolbars(0), mGrippyHilighted(kNoGrippyHilighted)
{
//*** anything?
}

Просмотреть файл

@ -111,10 +111,10 @@ protected:
nsCOMPtr<nsIStyleContext> mGrippyNormalStyle;
nsCOMPtr<nsIStyleContext> mGrippyRolloverStyle;
PRUint32 mSumOfToolbarHeights;
unsigned long mSumOfToolbarHeights;
TabInfo mGrippies[10]; //*** make this a list or something!!!!!!
PRUint32 mNumToolbars;
PRUint32 mGrippyHilighted; // used to indicate which grippy the mouse is inside
unsigned short mNumToolbars;
short mGrippyHilighted; // used to indicate which grippy the mouse is inside
// pass-by-value not allowed for a toolbox because it corresponds 1-to-1
// with an element in the UI.