diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-10 01:00:53 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-10 01:00:53 -0500 |
commit | 823e1786e016a0dce58ffda0506608f2a2fce932 (patch) | |
tree | c623ab36ace43afc84b9b3510624087463814e6a | |
parent | 976e6533931a79c8275ecb34ccd7705461a66d31 (diff) | |
download | abaddon-portaudio-823e1786e016a0dce58ffda0506608f2a2fce932.tar.gz abaddon-portaudio-823e1786e016a0dce58ffda0506608f2a2fce932.zip |
ui workarounds
-rw-r--r-- | components/chatmessage.cpp | 2 | ||||
-rw-r--r-- | components/chatwindow.cpp | 2 | ||||
-rw-r--r-- | windows/mainwindow.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/components/chatmessage.cpp b/components/chatmessage.cpp index 78a6510..f528e37 100644 --- a/components/chatmessage.cpp +++ b/components/chatmessage.cpp @@ -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); diff --git a/components/chatwindow.cpp b/components/chatwindow.cpp index c480b51..d447177 100644 --- a/components/chatwindow.cpp +++ b/components/chatwindow.cpp @@ -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) diff --git a/windows/mainwindow.cpp b/windows/mainwindow.cpp index 7443001..dfb6c2b 100644 --- a/windows/mainwindow.cpp +++ b/windows/mainwindow.cpp @@ -93,8 +93,8 @@ MainWindow::MainWindow() m_chat_members_paned.pack1(*chat); m_chat_members_paned.pack2(*member_list); - m_chat_members_paned.child_property_shrink(*member_list) = true; - m_chat_members_paned.child_property_resize(*member_list) = true; + m_chat_members_paned.child_property_shrink(*member_list) = false; + m_chat_members_paned.child_property_resize(*member_list) = false; int w, h; get_default_size(w, h); // :s m_chat_members_paned.set_position(w - m_chan_chat_paned.get_position() - 150); |