summaryrefslogtreecommitdiffstats
path: root/src/gui/CellRendererAvatar.vala
blob: e4b53f4693becaefaf2d4d044f764926f8dac576 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
public class CellRendererAvatar : Gtk.CellRendererPixbuf {
  private Contact _contact;
  
  public Contact contact {
    get {
      return _contact;
    }
    set {
      _contact = value;
      
      if(value == null) {
        pixbuf = null;
        return;
      }
      
      pixbuf = value.avatar;
    }
  }
}