зеркало из https://github.com/mozilla/pjs.git
Bug 257097 - Offline/online switcher is not available in GOK's UI Grab.
Patch contributed by Louie Zhao (louie.zhao@sun.com) r=aaronleventhal@moonset.net, sr=Henry.Jia@sun.com
This commit is contained in:
Родитель
695db48627
Коммит
4968ccd943
|
@ -706,18 +706,18 @@ getNameCB(AtkObject *aAtkObj)
|
|||
{
|
||||
NS_ENSURE_SUCCESS(CheckMaiAtkObject(aAtkObj), nsnull);
|
||||
|
||||
if (!aAtkObj->name) {
|
||||
gint len;
|
||||
nsAutoString uniName;
|
||||
nsAutoString uniName;
|
||||
|
||||
nsAccessibleWrap *accWrap =
|
||||
NS_REINTERPRET_CAST(MaiAtkObject*, aAtkObj)->accWrap;
|
||||
nsAccessibleWrap *accWrap =
|
||||
NS_REINTERPRET_CAST(MaiAtkObject*, aAtkObj)->accWrap;
|
||||
|
||||
/* nsIAccessible is responsible for the non-NULL name */
|
||||
nsresult rv = accWrap->GetName(uniName);
|
||||
NS_ENSURE_SUCCESS(rv, nsnull);
|
||||
len = uniName.Length();
|
||||
if (len > 0) {
|
||||
/* nsIAccessible is responsible for the non-NULL name */
|
||||
nsresult rv = accWrap->GetName(uniName);
|
||||
NS_ENSURE_SUCCESS(rv, nsnull);
|
||||
|
||||
if (uniName.Length() > 0) {
|
||||
NS_ConvertUTF8toUCS2 objName(aAtkObj->name);
|
||||
if (!uniName.Equals(objName)) {
|
||||
atk_object_set_name(aAtkObj,
|
||||
NS_ConvertUCS2toUTF8(uniName).get());
|
||||
}
|
||||
|
|
|
@ -263,6 +263,18 @@
|
|||
<content>
|
||||
<xul:image class="statusbarpanel-icon" xbl:inherits="src"/>
|
||||
</content>
|
||||
|
||||
<implementation implements="nsIAccessibleProvider">
|
||||
<property name="accessible">
|
||||
<getter>
|
||||
<![CDATA[
|
||||
var accService = Components.classes["@mozilla.org/accessibilityService;1"].getService(Components.interfaces.nsIAccessibilityService);
|
||||
return accService.createXULButtonAccessible(this);
|
||||
]]>
|
||||
</getter>
|
||||
</property>
|
||||
</implementation>
|
||||
|
||||
</binding>
|
||||
|
||||
<binding id="statusbarpanel-menu-iconic" display="xul:menu"
|
||||
|
|
Загрузка…
Ссылка в новой задаче