Added code to show protocol's icon in the chat window.

This commit is contained in:
barrett 2012-05-01 22:42:09 +00:00
parent 493fed2f80
commit de33c1be80

View File

@ -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()