[Xfce4-commits] <postler:master> Use red color for priority, not flagging

Christian Dywan noreply at xfce.org
Wed Jul 6 23:40:02 CEST 2011


Updating branch refs/heads/master
         to 157916d0299af4bc003ad0af5e91eb7a9e63df22 (commit)
       from 1eee7cc29bd268dfea0e5cc732b1a1305cf7eba3 (commit)

commit 157916d0299af4bc003ad0af5e91eb7a9e63df22
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Jul 6 23:38:36 2011 +0200

    Use red color for priority, not flagging

 postler/postler-cellrendererconvo.vala |    4 ++--
 postler/postler-messages.vala          |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/postler/postler-cellrendererconvo.vala b/postler/postler-cellrendererconvo.vala
index e4e6ee6..69315bc 100644
--- a/postler/postler-cellrendererconvo.vala
+++ b/postler/postler-cellrendererconvo.vala
@@ -30,7 +30,7 @@ public class Postler.CellRendererConvo : Gtk.CellRenderer {
     public string sender { set; get; }
     public string text { set; get; }
     public int replies { set; get; }
-    public bool flagged = false;
+    public bool priority = false;
 
     double sender_height = 0.0;
     double subject_height = 0.0;
@@ -172,7 +172,7 @@ public class Postler.CellRendererConvo : Gtk.CellRenderer {
         font_small.set_size(Pango.units_from_double (Pango.units_to_double (old_desc.get_size ()) - 3));
 
         /* Important */
-        if (flagged) {
+        if (priority) {
             color_normal.red += 0.5;
             color_normal.green -= 0.2;
             color_normal.blue -= 0.2;
diff --git a/postler/postler-messages.vala b/postler/postler-messages.vala
index ac63ef8..750c161 100644
--- a/postler/postler-messages.vala
+++ b/postler/postler-messages.vala
@@ -132,7 +132,7 @@ public class Postler.Messages : Gtk.TreeView {
         renderer.date = Postler.Content.format_date (message.date);
         renderer.sender = escape_text (Postler.Contact.name_from_string (message.sender));
         renderer.replies = (int)message.replies;
-        renderer.flagged = message.flagged;
+        renderer.priority = message.priority;
         renderer.text = message.excerpt + "…";
     }
 



More information about the Xfce4-commits mailing list