summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2024-01-20 20:37:16 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2024-01-20 20:37:16 -0500
commitd7bee05ee92bf14c1344d336cfa5398815e8ccc9 (patch)
tree3d3202f3f8ff2309a091880911a5d05430d6ed0b /src/components
parent15457c49fea25a0347b0368d0707090ba5cf8c3f (diff)
downloadabaddon-portaudio-d7bee05ee92bf14c1344d336cfa5398815e8ccc9.tar.gz
abaddon-portaudio-d7bee05ee92bf14c1344d336cfa5398815e8ccc9.zip
add settings for channel list scrollbar policies
Diffstat (limited to 'src/components')
-rw-r--r--src/components/channellist/channellist.cpp4
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);