diff options
Diffstat (limited to 'libdino/src/ui/occupant_list_row.vala')
-rw-r--r-- | libdino/src/ui/occupant_list_row.vala | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libdino/src/ui/occupant_list_row.vala b/libdino/src/ui/occupant_list_row.vala new file mode 100644 index 00000000..4dc7c0c5 --- /dev/null +++ b/libdino/src/ui/occupant_list_row.vala @@ -0,0 +1,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) { + + } +} + +}
\ No newline at end of file |