Bug 1489737: Removing folderSummary-location; r=mkmelin

This commit is contained in:
Arshad Khan 2018-09-08 14:32:31 +05:30
Родитель d5c6eaac6d
Коммит 3b738bc822
2 изменённых файлов: 4 добавлений и 17 удалений

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

@ -2429,14 +2429,14 @@
gFolderTreeView.getLevel(folderIndex) == 0 &&
!gFolderTreeView.getServerNameAdded(folderIndex))
{
let loc = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "folderSummaryLocation");
let loc = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "label");
let midPath = "";
let midFolder = aFolder.parent;
while (aFolder.server.rootFolder != midFolder) {
midPath = midFolder.name + " - " + midPath;
midFolder = midFolder.parent;
}
loc.setAttribute("location", aFolder.server.prettyName + " - " + midPath + aFolder.name);
loc.setAttribute("value", aFolder.server.prettyName + " - " + midPath + aFolder.name);
document.getAnonymousNodes(this)[0].appendChild(loc);
return true;
}
@ -2447,8 +2447,8 @@
((aFolder.server instanceof Ci.nsINntpIncomingServer) &&
!(aFolder.flags & Ci.nsMsgFolderFlags.Virtual) &&
aFolder.server.abbreviate) && !aFolder.isServer) {
let loc = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "folderSummaryLocation");
loc.setAttribute("location", aFolder.name);
let loc = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "label");
loc.setAttribute("value", aFolder.name);
document.getAnonymousNodes(this)[0].appendChild(loc);
return true;
}
@ -2492,14 +2492,6 @@
</implementation>
</binding>
<binding id="folderSummary-location">
<content>
<xul:hbox>
<xul:label anonid="location" xbl:inherits="value=location"/>
</xul:hbox>
</content>
</binding>
<binding id="folderSummary-message">
<content>
<xul:vbox class="folderSummaryMessage">

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

@ -148,11 +148,6 @@ folderSummaryMessage
-moz-binding: url("chrome://messenger/content/mailWidgets.xml#folderSummary-message");
}
folderSummaryLocation
{
-moz-binding: url("chrome://messenger/content/mailWidgets.xml#folderSummary-location");
}
tabmail {
-moz-binding: url("chrome://messenger/content/tabmail.xml#tabmail");
}