Skip to content

Commit

Permalink
try to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ouwou committed May 19, 2023
1 parent 15aa875 commit 0a1138f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/channels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions src/components/channels.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0a1138f

Please sign in to comment.