aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/occupant_list_row.vala
blob: 4dc7c0c50e8f127481432395611db5d1e63dbfa4 (plain) (blame)
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
using Gtk;

using Dino.Entities;
using Xmpp;

namespace Dino.Ui {

[GtkTemplate (ui = "/org/dino-im/occupant_list_item.ui")]
public class OccupantListRow : ListBoxRow {

    [GtkChild] private Image image;
    [GtkChild] public Label name_label;

    public OccupantListRow(StreamInteractor stream_interactor, Account account, Jid jid) {
        name_label.label = Util.get_display_name(stream_interactor, jid, account);
        Util.image_set_from_scaled_pixbuf(image, (new AvatarGenerator(30, 30, image.scale_factor)).draw_jid(stream_interactor, jid, account));
        //has_tooltip = true;
    }

    public void on_presence_received(Presence.Stanza presence) {

    }
}

}