Bug 379875. Support checkable in ATK via object attribute since there is no other way in ATK. r=david.bolter

This commit is contained in:
aaronleventhal%moonset.net 2007-07-06 07:50:34 +00:00
Родитель 97f5ee2654
Коммит 78244d63d3
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -804,6 +804,12 @@ GetAttributeSet(nsIAccessible* aAccessible)
attributes->SetStringProperty(NS_LITERAL_CSTRING("haspopup"), NS_LITERAL_STRING("true"),
oldValueUnused);
}
if (state & nsIAccessibleStates::STATE_CHECKABLE) {
// There is no ATK state for haspopup, must use object attribute to expose the same info
nsAutoString oldValueUnused;
attributes->SetStringProperty(NS_LITERAL_CSTRING("checkable"), NS_LITERAL_STRING("true"),
oldValueUnused);
}
nsCOMPtr<nsISimpleEnumerator> propEnum;
nsresult rv = attributes->Enumerate(getter_AddRefs(propEnum));