diff options
-rw-r--r-- | src/components/channels.cpp | 2 | ||||
-rw-r--r-- | src/components/channels.hpp | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/components/channels.cpp b/src/components/channels.cpp index 3327b02..5e3da86 100644 --- a/src/components/channels.cpp +++ b/src/components/channels.cpp @@ -850,6 +850,7 @@ Gtk::TreeModel::iterator ChannelList::CreateThreadRow(const Gtk::TreeNodeChildre return thread_iter; } +#ifdef WITH_VOICE Gtk::TreeModel::iterator ChannelList::CreateVoiceParticipantRow(const UserData &user, const Gtk::TreeNodeChildren &parent) { auto row = *m_model->append(parent); row[m_columns.m_type] = RenderType::VoiceParticipant; @@ -866,6 +867,7 @@ Gtk::TreeModel::iterator ChannelList::CreateVoiceParticipantRow(const UserData & return row; } +#endif void ChannelList::UpdateChannelCategory(const ChannelData &channel) { auto iter = GetIteratorForRowFromID(channel.ID); diff --git a/src/components/channels.hpp b/src/components/channels.hpp index 8aee733..2ad1a7c 100644 --- a/src/components/channels.hpp +++ b/src/components/channels.hpp @@ -85,7 +85,10 @@ protected: Gtk::TreeModel::iterator AddGuild(const GuildData &guild, const Gtk::TreeNodeChildren &root); Gtk::TreeModel::iterator UpdateCreateChannelCategory(const ChannelData &channel); Gtk::TreeModel::iterator CreateThreadRow(const Gtk::TreeNodeChildren &children, const ChannelData &channel); + +#ifdef WITH_VOICE Gtk::TreeModel::iterator CreateVoiceParticipantRow(const UserData &user, const Gtk::TreeNodeChildren &parent); +#endif void UpdateChannelCategory(const ChannelData &channel); |