member list gets a basic right click menu

This commit is contained in:
ouwou
2020-09-06 02:25:19 -04:00
parent b2ffc4abf2
commit 10e547c494
8 changed files with 71 additions and 2 deletions

View File

@@ -204,6 +204,12 @@ void ChatWindow::ClearMessages() {
m_message_set_dispatch.emit();
}
void ChatWindow::InsertChatInput(std::string text) {
auto buf = m_input->get_buffer();
buf->insert_at_cursor(text);
m_input->grab_focus();
}
void ChatWindow::ScrollToBottom() {
auto x = m_scroll->get_vadjustment();
x->set_value(x->get_upper());