From de33c1be8080769e20c45406279baa0064fe74e0 Mon Sep 17 00:00:00 2001 From: barrett Date: Tue, 1 May 2012 22:42:09 +0000 Subject: [PATCH] Added code to show protocol's icon in the chat window. --- application/ChatWindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/ChatWindow.cpp b/application/ChatWindow.cpp index 6cd1b91..85dc6b0 100644 --- a/application/ChatWindow.cpp +++ b/application/ChatWindow.cpp @@ -72,8 +72,13 @@ ChatWindow::ChatWindow(ContactLinker* cl) fAvatar->SetExplicitAlignment(BAlignment(B_ALIGN_RIGHT, B_ALIGN_MIDDLE)); fAvatar->SetBitmap(fContactLinker->AvatarBitmap()); + BBitmap* protocolBitmap = fContactLinker->ProtocolBitmap(); + BitmapView* protocolView = new BitmapView("protocolView"); + protocolView->SetBitmap(protocolBitmap); + AddChild(BGroupLayoutBuilder(B_VERTICAL, 10) .AddGroup(B_HORIZONTAL) + .Add(protocolView) .Add(fPersonalMessage) .Add(fAvatar) .End()