ui workarounds

This commit is contained in:
ouwou
2020-11-10 01:00:53 -05:00
parent 976e653393
commit 823e1786e0
3 changed files with 4 additions and 4 deletions

View File

@@ -186,7 +186,7 @@ void ChatMessageItemContainer::UpdateTextComponent(Gtk::TextView *tv) {
b->get_bounds(s, e);
switch (data->Type) {
case MessageType::DEFAULT:
b->insert_markup(s, Glib::Markup::escape_text(data->Content));
b->insert(s, data->Content);
HandleUserMentions(tv);
HandleLinks(tv);
HandleChannelMentions(tv);

View File

@@ -32,7 +32,7 @@ ChatWindow::ChatWindow() {
});
m_scroll->set_can_focus(false);
m_scroll->set_policy(Gtk::POLICY_NEVER, Gtk::POLICY_ALWAYS);
m_scroll->set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_ALWAYS);
m_list->signal_size_allocate().connect([this](Gtk::Allocation &) {
if (m_should_scroll_to_bottom)