зеркало из https://github.com/mozilla/pjs.git
Bug 368351 - Some mail status (xul tree) cells do not provide accessible name
p=david.bolter@utoronto.ca (David Bolter) r=bienvenu@nventure.com (David Bienvenu) sr=mscott@mozilla.org (Scott MacGregor)
This commit is contained in:
Родитель
cd1e3a0885
Коммит
78009c767c
|
@ -127,7 +127,10 @@ messageHasFlag=Starred
|
||||||
messageHasNoFlag=Not Starred
|
messageHasNoFlag=Not Starred
|
||||||
messageHasAttachment=Has Attachment
|
messageHasAttachment=Has Attachment
|
||||||
messageHasNoAttachment=No Attachment
|
messageHasNoAttachment=No Attachment
|
||||||
|
messageJunk=Junk
|
||||||
|
messageNotJunk=Not Junk
|
||||||
|
messageExpanded=Expanded
|
||||||
|
messageCollapsed=Collapsed
|
||||||
|
|
||||||
# Used in the SMTP Account Settings panel when a server value has no properties
|
# Used in the SMTP Account Settings panel when a server value has no properties
|
||||||
smtpServerList-NotSpecified=<not specified>
|
smtpServerList-NotSpecified=<not specified>
|
||||||
|
|
|
@ -1554,6 +1554,33 @@ NS_IMETHODIMP nsMsgDBView::GetCellValue(PRInt32 aRow, nsITreeColumn* aCol, nsASt
|
||||||
NS_LITERAL_STRING("messageHasFlag").get()
|
NS_LITERAL_STRING("messageHasFlag").get()
|
||||||
: NS_LITERAL_STRING("messageHasNoFlag").get()));
|
: NS_LITERAL_STRING("messageHasNoFlag").get()));
|
||||||
break;
|
break;
|
||||||
|
case 'j': // junk column
|
||||||
|
if (!mIsNews)
|
||||||
|
{
|
||||||
|
nsXPIDLCString junkScoreStr;
|
||||||
|
msgHdr->GetStringProperty("junkscore", getter_Copies(junkScoreStr));
|
||||||
|
aValue.Assign(GetString((!junkScoreStr.IsEmpty() && (atoi(junkScoreStr.get()) > 50)) ?
|
||||||
|
NS_LITERAL_STRING("messageJunk").get() : NS_LITERAL_STRING("messageNotJunk").get()));
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 't':
|
||||||
|
if (colID[1] == 'h' && (m_viewFlags & nsMsgViewFlagsType::kThreadedDisplay))
|
||||||
|
{ // thread column
|
||||||
|
PRBool isContainer, isContainerEmpty, isContainerOpen;
|
||||||
|
IsContainer(aRow, &isContainer);
|
||||||
|
if (isContainer)
|
||||||
|
{
|
||||||
|
IsContainerEmpty(aRow, &isContainerEmpty);
|
||||||
|
if (!isContainerEmpty)
|
||||||
|
{
|
||||||
|
IsContainerOpen(aRow, &isContainerOpen);
|
||||||
|
aValue.Assign(GetString (isContainerOpen ?
|
||||||
|
NS_LITERAL_STRING("messageExpanded").get()
|
||||||
|
: NS_LITERAL_STRING("messageCollapsed").get()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 'u': // read/unread column
|
case 'u': // read/unread column
|
||||||
aValue.Assign(GetString ((flags & MSG_FLAG_READ) ?
|
aValue.Assign(GetString ((flags & MSG_FLAG_READ) ?
|
||||||
NS_LITERAL_STRING("messageRead").get()
|
NS_LITERAL_STRING("messageRead").get()
|
||||||
|
|
Загрузка…
Ссылка в новой задаче