[Pkg-mozext-commits] [compactheader] 260/441: In two line compact header mode show address type by font style.

David Prévot taffit at moszumanska.debian.org
Wed Mar 18 12:29:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository compactheader.

commit 628564773f8c31d91261031e8ba453a48c754f43
Author: Joachim.Herb at gmx.de <Joachim.Herb at gmx.de>
Date:   Tue Aug 9 23:06:20 2011 +0200

    In two line compact header mode show address type by font style.
    
    --HG--
    branch : markAddressType
---
 chrome/CompactHeader/content/compactHeaderOverlay.js | 15 +++++++++++++--
 chrome/CompactHeader/skin/global/CompactHeader.css   |  9 +++++++++
 install.rdf                                          |  2 +-
 3 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/chrome/CompactHeader/content/compactHeaderOverlay.js b/chrome/CompactHeader/content/compactHeaderOverlay.js
index 1c76637..5ef9309 100644
--- a/chrome/CompactHeader/content/compactHeaderOverlay.js
+++ b/chrome/CompactHeader/content/compactHeaderOverlay.js
@@ -121,7 +121,7 @@ org.mozdev.compactHeader.pane = function() {
     updateHeaderValue(headerEntry, headerValue);
   }
 
-  function coheOutputEmailAddresses(headerEntry, emailAddresses) {
+  function coheOutputEmailAddresses(headerEntry, emailAddresses, addressType) {
     /* function copied from comm-1.9.1/ mail/ base/ content/ msgHdrViewOverlay.js 771135e6aaf5 */
     if (!emailAddresses)
       return;
@@ -143,6 +143,7 @@ org.mozdev.compactHeader.pane = function() {
       var address = {};
       address.emailAddress = addresses.value[index];
       address.fullAddress = fullNames.value[index];
+      address.addressType = addressType;
       if (cohePrefBranch.getBoolPref("headersize.addressstyle")) {
         address.displayName = address.emailAddress;
         address.fullAddress = address.emailAddress;
@@ -255,6 +256,16 @@ org.mozdev.compactHeader.pane = function() {
         org.mozdev.compactHeader.buttons.coheToggleStar();
         org.mozdev.customizeHeaderToolbar.messenger.saveToolboxData();
       };
+
+      let collapsed2LtoCcBccBox = document.getElementById("collapsed2LtoCcBccBox");
+      if (collapsed2LtoCcBccBox) {
+        let updateEmailAddressNodeFunction = collapsed2LtoCcBccBox.updateEmailAddressNode;
+        function updateEmailAddressNodeNew(aEmailNode, aAddress) {
+          updateEmailAddressNode(aEmailNode, aAddress)
+          aEmailNode.setAttribute("addressType", aAddress.addressType);
+        }
+        collapsed2LtoCcBccBox.updateEmailAddressNode = updateEmailAddressNodeNew;
+      }
     }
 
     if (cohe.firstrun) {
@@ -494,7 +505,7 @@ org.mozdev.compactHeader.pane = function() {
       }
 
       if (headerEntry) {
-        headerEntry.outputFunction(headerEntry, headerField.headerValue);
+        headerEntry.outputFunction(headerEntry, headerField.headerValue, headerName);
         headerEntry.valid = true;
       }
     }
diff --git a/chrome/CompactHeader/skin/global/CompactHeader.css b/chrome/CompactHeader/skin/global/CompactHeader.css
index b5c90da..9aed338 100644
--- a/chrome/CompactHeader/skin/global/CompactHeader.css
+++ b/chrome/CompactHeader/skin/global/CompactHeader.css
@@ -247,3 +247,12 @@
 #collapsedHeaderView #signedHdrIcon {
   -moz-margin-end: 3px;
 }
+
+#collapsed2LtoCcBccBox mail-emailaddress[addressType="cc"] {
+  font-style:italic;
+}
+
+#collapsed2LtoCcBccBox mail-emailaddress[addressType="bcc"] {
+  font-style:oblique;
+  text-decoration:underline;
+}
diff --git a/install.rdf b/install.rdf
index 8561e71..68c2a4a 100644
--- a/install.rdf
+++ b/install.rdf
@@ -6,7 +6,7 @@
 
 	<RDF:Description about="urn:mozilla:install-manifest">
 		<em:name>CompactHeader</em:name>
-		<em:version>1.4.2beta4</em:version>
+		<em:version>1.4.2beta5</em:version>
 		<em:description>Add ability to reduce header size to one or two lines. Linkify subjects in RSS feeds.</em:description>
 		<em:creator>Joachim Herb</em:creator>
 		<em:contributor>Zamula</em:contributor>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/compactheader.git



More information about the Pkg-mozext-commits mailing list