From 87d5faf30b6d73829f9b0d364519db5af3439afb Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sun, 4 Jul 2021 02:36:12 -0400 Subject: some refactorage --- components/channels.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'components/channels.hpp') 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 #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); -- cgit v1.2.3