mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 408578 - "gtk: combobox pushed state" [p=ispence@gmail.com (Ian Spence) r+sr+a1.9=roc]
This commit is contained in:
parent
e64f6aa63c
commit
a06873a75e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user