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-02 22:27:57 -08:00
parent e64f6aa63c
commit a06873a75e

View File

@ -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.
@ -1120,7 +1121,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;
}