зеркало из https://github.com/mozilla/pjs.git
Bug 408578 - "gtk: combobox pushed state" [p=ispence@gmail.com (Ian Spence) r+sr+a1.9=roc]
This commit is contained in:
Родитель
a8cadb32d4
Коммит
7a4f61564c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче