diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-01-20 20:37:16 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-01-20 20:37:16 -0500 |
commit | d7bee05ee92bf14c1344d336cfa5398815e8ccc9 (patch) | |
tree | 3d3202f3f8ff2309a091880911a5d05430d6ed0b /src/components/channellist | |
parent | 15457c49fea25a0347b0368d0707090ba5cf8c3f (diff) | |
download | abaddon-portaudio-d7bee05ee92bf14c1344d336cfa5398815e8ccc9.tar.gz abaddon-portaudio-d7bee05ee92bf14c1344d336cfa5398815e8ccc9.zip |
add settings for channel list scrollbar policies
Diffstat (limited to 'src/components/channellist')
-rw-r--r-- | src/components/channellist/channellist.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/channellist/channellist.cpp b/src/components/channellist/channellist.cpp index 1cdf619..2bb2f11 100644 --- a/src/components/channellist/channellist.cpp +++ b/src/components/channellist/channellist.cpp @@ -1,13 +1,15 @@ #include "channellist.hpp" #include "abaddon.hpp" +#include "util.hpp" ChannelList::ChannelList() { ConnectSignals(); m_guilds.set_halign(Gtk::ALIGN_START); - m_guilds_scroll.set_policy(Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC); + m_guilds_scroll.set_policy(Gtk::POLICY_NEVER, util::TranslateScrollPolicy(Abaddon::Get().GetSettings().ClassicGuildScrollPolicy)); + m_tree.set_policy(Gtk::POLICY_AUTOMATIC, util::TranslateScrollPolicy(Abaddon::Get().GetSettings().ClassicChannelScrollPolicy)); m_guilds.signal_guild_selected().connect([this](Snowflake guild_id) { m_tree.SetSelectedGuild(guild_id); |