rest of fix for #74808. the icon in the subject column should

only have the green arrow if the message is new, not if the message is
unread.  sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@91439 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sspitzer%netscape.com
2001-04-05 08:13:37 +00:00
parent e7d0f2afa0
commit 2ac2990e96
5 changed files with 13 additions and 6 deletions

View File

@@ -52,6 +52,7 @@ nsIAtom * nsMsgDBView::kLowestPriorityAtom = nsnull;
nsIAtom * nsMsgDBView::kLowPriorityAtom = nsnull;
nsIAtom * nsMsgDBView::kUnreadMsgAtom = nsnull;
nsIAtom * nsMsgDBView::kNewMsgAtom = nsnull;
nsIAtom * nsMsgDBView::kReadMsgAtom = nsnull;
nsIAtom * nsMsgDBView::kOfflineMsgAtom = nsnull;
nsIAtom * nsMsgDBView::kFlaggedMsgAtom = nsnull;
@@ -106,6 +107,7 @@ nsMsgDBView::nsMsgDBView()
void nsMsgDBView::InitializeAtomsAndLiterals()
{
kUnreadMsgAtom = NS_NewAtom("unread");
kNewMsgAtom = NS_NewAtom("new");
kReadMsgAtom = NS_NewAtom("read");
kOfflineMsgAtom = NS_NewAtom("offline");
kFlaggedMsgAtom = NS_NewAtom("flagged");
@@ -141,6 +143,7 @@ nsMsgDBView::~nsMsgDBView()
if (gInstanceCount <= 0)
{
NS_IF_RELEASE(kUnreadMsgAtom);
NS_IF_RELEASE(kNewMsgAtom);
NS_IF_RELEASE(kReadMsgAtom);
NS_IF_RELEASE(kOfflineMsgAtom);
NS_IF_RELEASE(kFlaggedMsgAtom);
@@ -697,6 +700,9 @@ NS_IMETHODIMP nsMsgDBView::GetCellProperties(PRInt32 aRow, const PRUnichar *colI
else
properties->AppendElement(kReadMsgAtom);
if (flags & MSG_FLAG_NEW)
properties->AppendElement(kNewMsgAtom);
if (flags & MSG_FLAG_OFFLINE)
properties->AppendElement(kOfflineMsgAtom);

View File

@@ -76,6 +76,7 @@ protected:
// atoms used for styling the view. we're going to have a lot of
// these so i'm going to make them static.
static nsIAtom* kUnreadMsgAtom;
static nsIAtom* kNewMsgAtom;
static nsIAtom* kReadMsgAtom;
static nsIAtom* kOfflineMsgAtom;
static nsIAtom* kFlaggedMsgAtom;

View File

@@ -148,7 +148,7 @@ outlinerbody:-moz-outliner-image(subjectCol) {
list-style-image: url("chrome://messenger/skin/message-mail.gif");
}
outlinerbody:-moz-outliner-image(subjectCol, unread) {
outlinerbody:-moz-outliner-image(subjectCol, new) {
list-style-image: url("chrome://messenger/skin/message-mail-new.gif");
}
@@ -164,7 +164,7 @@ outlinerbody:-moz-outliner-image(subjectCol, news) {
list-style-image: url("chrome://messenger/skin/message-news.gif");
}
outlinerbody:-moz-outliner-image(subjectCol, news, unread) {
outlinerbody:-moz-outliner-image(subjectCol, news, new) {
list-style-image: url("chrome://messenger/skin/message-news-new.gif");
}

View File

@@ -148,7 +148,7 @@ outlinerbody:-moz-outliner-image(subjectCol) {
list-style-image: url("chrome://messenger/skin/message-mail.gif");
}
outlinerbody:-moz-outliner-image(subjectCol, unread) {
outlinerbody:-moz-outliner-image(subjectCol, new) {
list-style-image: url("chrome://messenger/skin/message-mail-new.gif");
}
@@ -164,7 +164,7 @@ outlinerbody:-moz-outliner-image(subjectCol, news) {
list-style-image: url("chrome://messenger/skin/message-news.gif");
}
outlinerbody:-moz-outliner-image(subjectCol, news, unread) {
outlinerbody:-moz-outliner-image(subjectCol, news, new) {
list-style-image: url("chrome://messenger/skin/message-news-new.gif");
}

View File

@@ -148,7 +148,7 @@ outlinerbody:-moz-outliner-image(subjectCol) {
list-style-image: url("chrome://messenger/skin/icons/message-mail.gif");
}
outlinerbody:-moz-outliner-image(subjectCol, unread) {
outlinerbody:-moz-outliner-image(subjectCol, new) {
list-style-image: url("chrome://messenger/skin/icons/message-mail-new.gif");
}
@@ -164,7 +164,7 @@ outlinerbody:-moz-outliner-image(subjectCol, news) {
list-style-image: url("chrome://messenger/skin/icons/message-news.gif");
}
outlinerbody:-moz-outliner-image(subjectCol, news, unread) {
outlinerbody:-moz-outliner-image(subjectCol, news, new) {
list-style-image: url("chrome://messenger/skin/icons/message-news-new.gif");
}