summaryrefslogtreecommitdiff
path: root/components/channels.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-07-04 02:36:12 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2021-07-04 02:36:12 -0400
commit87d5faf30b6d73829f9b0d364519db5af3439afb (patch)
tree91f7556237b74108f693ba3ba14cd40ef9254fe8 /components/channels.hpp
parentc154a63967264c5a22e5b4e4d4e7dfd83e265b9c (diff)
downloadabaddon-portaudio-87d5faf30b6d73829f9b0d364519db5af3439afb.tar.gz
abaddon-portaudio-87d5faf30b6d73829f9b0d364519db5af3439afb.zip
some refactorage
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);