2017-03-02 14:37:32 +00:00
|
|
|
using Gtk;
|
|
|
|
|
|
|
|
using Dino.Entities;
|
|
|
|
using Xmpp;
|
|
|
|
|
|
|
|
namespace Dino.Ui {
|
|
|
|
|
|
|
|
[GtkTemplate (ui = "/org/dino-im/occupant_list_item.ui")]
|
|
|
|
public class OccupantListRow : ListBoxRow {
|
|
|
|
|
2017-03-10 17:07:28 +00:00
|
|
|
[GtkChild] private Image image;
|
|
|
|
[GtkChild] public Label name_label;
|
2017-03-02 14:37:32 +00:00
|
|
|
|
|
|
|
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) {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2017-03-10 17:07:28 +00:00
|
|
|
|
2017-03-02 14:37:32 +00:00
|
|
|
}
|