diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-07-04 02:36:12 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-07-04 02:36:12 -0400 |
commit | 87d5faf30b6d73829f9b0d364519db5af3439afb (patch) | |
tree | 91f7556237b74108f693ba3ba14cd40ef9254fe8 /components/channels.hpp | |
parent | c154a63967264c5a22e5b4e4d4e7dfd83e265b9c (diff) | |
download | abaddon-portaudio-87d5faf30b6d73829f9b0d364519db5af3439afb.tar.gz abaddon-portaudio-87d5faf30b6d73829f9b0d364519db5af3439afb.zip |
some refactorage
Diffstat (limited to 'components/channels.hpp')
-rw-r--r-- | components/channels.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/channels.hpp b/components/channels.hpp index e40c2a0..3a33925 100644 --- a/components/channels.hpp +++ b/components/channels.hpp @@ -8,7 +8,8 @@ #include <sigc++/sigc++.h> #include "../discord/discord.hpp" -static const constexpr int ChannelEmojiSize = 16; +constexpr static int GuildIconSize = 24; +constexpr static int OrphanChannelSortOffset = -100; // forces orphan channels to the top of the list enum class RenderType { Guild, @@ -124,6 +125,7 @@ protected: void UpdateChannelCategory(const ChannelData &channel); + // separation necessary because a channel and guild can share the same id Gtk::TreeModel::iterator GetIteratorForGuildFromID(Snowflake id); Gtk::TreeModel::iterator GetIteratorForChannelFromID(Snowflake id); |