diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/voiceinfobox.cpp | 10 | ||||
-rw-r--r-- | src/components/voiceinfobox.hpp | 12 |
2 files changed, 15 insertions, 7 deletions
diff --git a/src/components/voiceinfobox.cpp b/src/components/voiceinfobox.cpp index 456c5f0..b870794 100644 --- a/src/components/voiceinfobox.cpp +++ b/src/components/voiceinfobox.cpp @@ -1,6 +1,8 @@ -#include "voiceinfobox.hpp" -#include "abaddon.hpp" -#include "util.hpp" +#ifdef WITH_VOICE + + #include "voiceinfobox.hpp" + #include "abaddon.hpp" + #include "util.hpp" VoiceInfoBox::VoiceInfoBox() : Gtk::Box(Gtk::ORIENTATION_HORIZONTAL) @@ -97,3 +99,5 @@ VoiceInfoBox::VoiceInfoBox() show_all_children(); } + +#endif diff --git a/src/components/voiceinfobox.hpp b/src/components/voiceinfobox.hpp index 0117c0d..74aad27 100644 --- a/src/components/voiceinfobox.hpp +++ b/src/components/voiceinfobox.hpp @@ -1,9 +1,11 @@ #pragma once -#include <gtkmm/box.h> -#include <gtkmm/eventbox.h> -#include <gtkmm/image.h> -#include <gtkmm/label.h> +#ifdef WITH_VOICE + + #include <gtkmm/box.h> + #include <gtkmm/eventbox.h> + #include <gtkmm/image.h> + #include <gtkmm/label.h> class VoiceInfoBox : public Gtk::Box { public: @@ -18,3 +20,5 @@ private: Gtk::EventBox m_disconnect_ev; Gtk::Image m_disconnect_img; }; + +#endif |