diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-05-18 20:31:58 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-05-18 20:31:58 -0400 |
commit | 0a1138fbd025da2c3f28cec73f823d9274ebc4db (patch) | |
tree | 00c3a9b30a3ff6eb21cdbb42fad27b745e555517 /src | |
parent | 15aa8758570c1eb848d67496072ea00d447367d6 (diff) | |
download | abaddon-portaudio-0a1138fbd025da2c3f28cec73f823d9274ebc4db.tar.gz abaddon-portaudio-0a1138fbd025da2c3f28cec73f823d9274ebc4db.zip |
try to fix build
Diffstat (limited to 'src')
-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); |