summaryrefslogtreecommitdiff
path: root/src/components/channels.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2022-09-02 01:25:33 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2022-09-02 01:25:33 -0400
commit0a049856782397a7464d03c317ce3788559cdeda (patch)
tree9412d17c0ab9335d591d7b4590043b9cc4e3cc45 /src/components/channels.hpp
parent9c8d9e54fe96f97bdda2be26bab571e4cbf0c597 (diff)
downloadabaddon-portaudio-0a049856782397a7464d03c317ce3788559cdeda.tar.gz
abaddon-portaudio-0a049856782397a7464d03c317ce3788559cdeda.zip
make compile work if voice support is disabled
Diffstat (limited to 'src/components/channels.hpp')
-rw-r--r--src/components/channels.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/channels.hpp b/src/components/channels.hpp
index 53afbdc..8c34735 100644
--- a/src/components/channels.hpp
+++ b/src/components/channels.hpp
@@ -125,8 +125,10 @@ protected:
Gtk::MenuItem m_menu_channel_open_tab;
#endif
+#ifdef WITH_VOICE
Gtk::Menu m_menu_voice_channel;
Gtk::MenuItem m_menu_voice_channel_join;
+#endif
Gtk::Menu m_menu_dm;
Gtk::MenuItem m_menu_dm_copy_id;
@@ -148,10 +150,13 @@ protected:
void OnGuildSubmenuPopup();
void OnCategorySubmenuPopup();
void OnChannelSubmenuPopup();
- void OnVoiceChannelSubmenuPopup();
void OnDMSubmenuPopup();
void OnThreadSubmenuPopup();
+#ifdef WITH_VOICE
+ void OnVoiceChannelSubmenuPopup();
+#endif
+
bool m_updating_listing = false;
Snowflake m_active_channel;