зеркало из https://github.com/mozilla/gecko-dev.git
add folder size to folder pane, r=cavin, sr=sspitzer, 173825
This commit is contained in:
Родитель
2d8942f521
Коммит
582566aef2
|
@ -96,6 +96,9 @@
|
|||
<binding subject="?member"
|
||||
predicate="http://home.netscape.com/NC-rdf#TotalMessages"
|
||||
object="?totalCount" />
|
||||
<binding subject="?member"
|
||||
predicate="http://home.netscape.com/NC-rdf#FolderSize"
|
||||
object="?folderSize" />
|
||||
<binding subject="?member"
|
||||
predicate="http://home.netscape.com/NC-rdf#PageTitleFakeAccount"
|
||||
object="?fakeAccount" />
|
||||
|
@ -112,6 +115,7 @@
|
|||
properties="hasUnreadMessages-?hasUnreadMessages subfoldersHaveUnreadMessages-?subfoldersHaveUnreadMessages"/>
|
||||
<treecell label="?totalCount"
|
||||
properties="hasUnreadMessages-?hasUnreadMessages subfoldersHaveUnreadMessages-?subfoldersHaveUnreadMessages"/>
|
||||
<treecell label="?folderSize"/>
|
||||
</treerow>
|
||||
</treeitem>
|
||||
</treechildren>
|
||||
|
@ -139,6 +143,11 @@
|
|||
persist="hidden width"
|
||||
flex="1"
|
||||
label="&totalColumn.label;"/>
|
||||
<splitter class="tree-splitter"/>
|
||||
<treecol id="folderSizeCol"
|
||||
persist="hidden width"
|
||||
flex="1"
|
||||
label="&folderSizeColumn.label;"/>
|
||||
</treecols>
|
||||
</tree>
|
||||
</overlay>
|
||||
|
|
|
@ -790,6 +790,11 @@ function UpgradeFolderPaneUI()
|
|||
var folderTotalCol = document.getElementById("folderTotalCol");
|
||||
folderTotalCol.setAttribute("hidden", "true");
|
||||
pref.setIntPref("mail.ui.folderpane.version", 2);
|
||||
} // we fall through to the == 2 case so we'll upgrade v 1 profiles correctly
|
||||
if (folderPaneUIVersion <= 2) {
|
||||
var folderSizeCol = document.getElementById("folderSizeCol");
|
||||
folderSizeCol.setAttribute("hidden", "true");
|
||||
pref.setIntPref("mail.ui.folderpane.version", 3);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ Rights Reserved.
|
|||
<!ENTITY nameColumn.label "Name">
|
||||
<!ENTITY unreadColumn.label "Unread">
|
||||
<!ENTITY totalColumn.label "Total">
|
||||
<!ENTITY folderSizeColumn.label "Size">
|
||||
<!ENTITY accounts.label "Accounts">
|
||||
<!-- LOCALIZATION NOTE (accounts.img) : DONT_TRANSLATE -->
|
||||
<!ENTITY accounts.img "chrome://messenger/skin/local-mailhost.gif">
|
||||
|
|
Загрузка…
Ссылка в новой задаче