From 56bc45ce4d07a7a9a415e9dc8ad2f7c3f3c9e48d Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 2 Mar 2017 15:37:32 +0100 Subject: Initial commit --- client/src/ui/occupant_list_row.vala | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 client/src/ui/occupant_list_row.vala (limited to 'client/src/ui/occupant_list_row.vala') diff --git a/client/src/ui/occupant_list_row.vala b/client/src/ui/occupant_list_row.vala new file mode 100644 index 00000000..067455b5 --- /dev/null +++ b/client/src/ui/occupant_list_row.vala @@ -0,0 +1,27 @@ +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 -- cgit v1.2.3-70-g09d2