blob: 5c7d2e9ef0c41b02881c526ef8e3749251b79ed7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
public class CellRendererContact : Gtk.CellRendererText {
private Contact _contact;
public Contact contact {
get {
return _contact;
}
set {
_contact = value;
string str = Markup.escape_text(contact.display_string);
Gee.Map.Entry<string, Contact.Resource> res = contact.get_resource_with_highest_priority();
if(res != null && res.value.status != null) {
str += "\n<span size=\"small\" fgcolor=\"grey40\" style=\"italic\">" + Markup.escape_text(res.value.status) + "</span>";
}
markup = str;
}
}
public CellRendererContact() {
ellipsize = Pango.EllipsizeMode.END;
}
}
|