[Xfce4-commits] <postler:master> Support the Postler-specific class	importantMessage
    Christian Dywan 
    noreply at xfce.org
       
    Thu Jun 30 00:34:05 CEST 2011
    
    
  
Updating branch refs/heads/master
         to 772164e998a5bb3f0c0a28b8902eec0558bf6e56 (commit)
       from 72aef4d11cb0a6d3757feeefabaf14ac3c73da62 (commit)
commit 772164e998a5bb3f0c0a28b8902eec0558bf6e56
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Jun 29 23:22:01 2011 +0200
    Support the Postler-specific class importantMessage
 postler/postler-content.vala |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index 8a8562d..afefb61 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -733,6 +733,13 @@ public class Postler.Content : WebKit.WebView {
                     avatar_uri = child.avatar.get_uri ();
                 }
                 reply_markup = reply_markup.replace ("%userIconPath%", avatar_uri);
+                /* The extra class importantMessage is Postler-specific */
+                if (child.priority) {
+                    reply_markup = reply_markup.replace ("importantMessage",
+                        "incomingItem importantMessage");
+                    reply_markup = reply_markup.replace ("importantMessage",
+                        "outgoingItem importantMessage");
+                }
                 body_chunk.append (reply_markup);
 
                 foreach (var attachment_part in child.parts) {
    
    
More information about the Xfce4-commits
mailing list