Bug 236484: check for the attributes "focused" and "_moz-menuactive" in WidgetStateChanged. r+sr=bz

This commit is contained in:
chanial%noos.fr 2004-03-05 06:32:18 +00:00
Родитель 84a99eaf6c
Коммит 2cf88c0cec
2 изменённых файлов: 7 добавлений и 5 удалений

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

@ -622,7 +622,8 @@ nsNativeThemeGTK::WidgetStateChanged(nsIFrame* aFrame, PRUint8 aWidgetType,
// disabled, checked, dlgtype, default, etc.
*aShouldRepaint = PR_FALSE;
if (aAttribute == mDisabledAtom || aAttribute == mCheckedAtom ||
aAttribute == mSelectedAtom)
aAttribute == mSelectedAtom || aAttribute == mFocusedAtom ||
aAttribute == mMenuActiveAtom)
*aShouldRepaint = PR_TRUE;
}

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

@ -44,7 +44,8 @@ menuitem[default="true"] {
font-weight: bold;
}
menu[disabled="true"], menuitem[disabled="true"] {
menu[disabled="true"],
menuitem[disabled="true"] {
color: GrayText;
}
@ -52,12 +53,12 @@ menubar > menu {
padding: 0px 6px 0px 4px;
}
/*
menu[_moz-menuactive="true"],
menuitem[_moz-menuactive="true"] {
/* dummy rule to force repainting when _moz-menuactive changes */
border-color: transparent;
/* color: HighlightText; should be fg[PRELIGHT] */
color: HighlightText; should be fg[PRELIGHT]
}
*/
/* ::::: menu/menuitems in menulist popups ::::: */