Bug 408578 - "gtk: combobox pushed state" [p=ispence@gmail.com (Ian Spence) r+sr+a1.9=roc]

This commit is contained in:
reed@reedloden.com 2008-01-12 18:56:01 -08:00
Родитель a8cadb32d4
Коммит 7a4f61564c
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -325,7 +325,8 @@ nsNativeThemeGTK::GetGtkWidgetAndState(PRUint8 aWidgetType, nsIFrame* aFrame,
// should always appear depressed.
if (aWidgetType == NS_THEME_BUTTON ||
aWidgetType == NS_THEME_TOOLBAR_BUTTON ||
aWidgetType == NS_THEME_TOOLBAR_DUAL_BUTTON) {
aWidgetType == NS_THEME_TOOLBAR_DUAL_BUTTON ||
aWidgetType == NS_THEME_DROPDOWN) {
PRBool menuOpen = CheckBooleanAttr(aFrame, nsWidgetAtoms::open);
aState->depressed = IsCheckedButton(aFrame) || menuOpen;
// we must not highlight buttons with open drop down menus on hover.
@ -1125,7 +1126,8 @@ nsNativeThemeGTK::WidgetStateChanged(nsIFrame* aFrame, PRUint8 aWidgetType,
aAttribute == nsWidgetAtoms::focused ||
aAttribute == nsWidgetAtoms::readonly ||
aAttribute == nsWidgetAtoms::_default ||
aAttribute == nsWidgetAtoms::mozmenuactive)
aAttribute == nsWidgetAtoms::mozmenuactive ||
aAttribute == nsWidgetAtoms::open)
*aShouldRepaint = PR_TRUE;
}