[Xfce4-commits] <postler:master> Make only inbox folders bold when there's new mail
Christian Dywan
noreply at xfce.org
Mon Feb 28 02:50:01 CET 2011
Updating branch refs/heads/master
to f04e6d8aa809bbff0ed53df01aced1157be8aa46 (commit)
from 2700ee0b990683a2867b89b82092a15701cbb3fc (commit)
commit f04e6d8aa809bbff0ed53df01aced1157be8aa46
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Feb 28 02:47:54 2011 +0100
Make only inbox folders bold when there's new mail
postler/postler-folders.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/postler/postler-folders.vala b/postler/postler-folders.vala
index e0b609b..116362d 100644
--- a/postler/postler-folders.vala
+++ b/postler/postler-folders.vala
@@ -214,9 +214,12 @@ public class Postler.Folders : Gtk.TreeView {
string escaped = GLib.Markup.escape_text (label);
if (unread == 0)
store.set (iter, Columns.DISPLAY_NAME, "%s".printf (escaped));
- else
+ else if (msg_dir.get_path ().has_suffix ("INBOX/new"))
store.set (iter, Columns.DISPLAY_NAME,
"<b>%s (%d)</b>".printf (escaped, unread));
+ else
+ store.set (iter, Columns.DISPLAY_NAME,
+ "%s (%d)".printf (escaped, unread));
} catch (GLib.Error error) {
GLib.critical (_("Failed to monitor folder \"%s\": %s"),
msg_dir.get_path (), error.message);
More information about the Xfce4-commits
mailing list