void set_inspect_window_text(const std::string& s) { std::string s_ = s; if(s_.length() > 20000) { // workaround for known bug s_.resize(20000); } inspect->set_label(s_); }
void populate_chat_message_list(int first, int last) { std::ostringstream s; stream_log(s, first, last); msg_label->set_label(s.str()); }
void clear_chat_msg_list() { msg_label->set_label(""); }
void set_inspect_window_text(const std::string& s, unsigned int page = 0) { unsigned int reminder = (s.length() - (max_inspect_win_len * page)); std::string s_ = s.substr(max_inspect_win_len * page, reminder > max_inspect_win_len ? max_inspect_win_len : reminder); inspect->set_label(s_); }