summaryrefslogtreecommitdiff
path: root/components/channels.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'components/channels.hpp')
-rw-r--r--components/channels.hpp4
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);