From f439ca9aa6d344b4489a92104ce2de3860d5ea80 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann Date: Tue, 3 Aug 2021 16:05:57 -0500 Subject: [PATCH] Document IM_SET_OWN_NICKNAME, bold nick --- application/ChatProtocolMessages.h | 3 ++- application/views/StatusView.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/application/ChatProtocolMessages.h b/application/ChatProtocolMessages.h index 658c698..f34db38 100644 --- a/application/ChatProtocolMessages.h +++ b/application/ChatProtocolMessages.h @@ -138,7 +138,8 @@ enum im_what_code { Requires: String "user_name" */ IM_SET_OWN_NICKNAME = 80, - //! Own nickname was changed →App + /*! Own nickname was changed →App + Requires: String "user_name" */ IM_OWN_NICKNAME_SET = 81, /*! Change own status →Protocol diff --git a/application/views/StatusView.cpp b/application/views/StatusView.cpp index 291ac23..7ca2f74 100644 --- a/application/views/StatusView.cpp +++ b/application/views/StatusView.cpp @@ -43,7 +43,7 @@ StatusView::StatusView(const char* name, Server* server) fAccount(-1) { // Nick name - fNickname = new EnterTextView("nicknameTextView"); + fNickname = new EnterTextView("nicknameTextView", be_bold_font, NULL); fNickname->MakeEditable(true); fNickname->MakeResizable(true); fNickname->SetTarget(this); @@ -211,7 +211,7 @@ StatusView::_SetToAccount() void StatusView::_SetName(BString name) { - fNickname->SetText(name.String()); + fNickname->SetText(name.String()); }