[Xfce4-commits] <postler:master> Embolden title of inbox if unread messages
Christian Dywan
noreply at xfce.org
Wed Jan 26 21:06:01 CET 2011
Updating branch refs/heads/master
to 0a881370c5a74235cf715af5da0f06375add7186 (commit)
from 43fd9ce35ddacc9cf8778cbd3bb7c6d4d8a46f1c (commit)
commit 0a881370c5a74235cf715af5da0f06375add7186
Author: Sergio Spinatelli <spinatelli.sergio at gmail.com>
Date: Wed Jan 26 21:04:46 2011 +0100
Embolden title of inbox if unread messages
Fixes: https://bugs.launchpad.net/postler/+bug/707242
postler/postler-folders.vala | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/postler/postler-folders.vala b/postler/postler-folders.vala
index 3c2242a..02deafa 100644
--- a/postler/postler-folders.vala
+++ b/postler/postler-folders.vala
@@ -70,7 +70,7 @@ public class Postler.Folders : Gtk.TreeView {
insert_column_with_attributes (-1, "Icon",
new Gtk.CellRendererPixbuf (), "stock-id", Columns.ICON);
insert_column_with_attributes (-1, "Folder",
- new Gtk.CellRendererText (), "text", Columns.NAME,
+ new Gtk.CellRendererText (), "markup", Columns.NAME,
"ellipsize", Columns.ELLIPSIZE);
GLib.Idle.add (populate);
@@ -112,10 +112,11 @@ public class Postler.Folders : Gtk.TreeView {
Gtk.TreeIter iter;
if (store.get_iter_from_string (out iter, path)) {
+ string escaped = GLib.Markup.escape_text (label);
if (unread == 0)
- store.set (iter, Columns.NAME, "%s".printf (label));
+ store.set (iter, Columns.NAME, "%s".printf (escaped));
else
- store.set (iter, Columns.NAME, "%s (%d)".printf (label, unread));
+ store.set (iter, Columns.NAME, "<b>%s (%d)</b>".printf (escaped, unread));
}
} catch (GLib.Error error) {
GLib.critical (_("Failed to monitor folder \"%s\": %s"),
More information about the Xfce4-commits
mailing list