From 0a1138fbd025da2c3f28cec73f823d9274ebc4db Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 18 May 2023 20:31:58 -0400 Subject: [PATCH] try to fix build --- src/components/channels.cpp | 2 ++ src/components/channels.hpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/components/channels.cpp b/src/components/channels.cpp index 3327b024..5e3da869 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 8aee7334..2ad1a7c6 100644 --- a/src/components/channels.hpp +++ b/src/components/channels.hpp @@ -85,7 +85,10 @@ class ChannelList : public Gtk::ScrolledWindow { 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);