From 913705174357a514e6ffa62ec32df75dbbce5cf5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 15 Oct 2012 00:11:32 +0300 Subject: Complete support for USE_MUMBLE flag. --- src/Makefile.am | 4 ++++ src/gui/setup_audio.cpp | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index fba5e2cb7..45df21458 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -21,6 +21,10 @@ else manaplus_SOURCES = endif +if USE_MUMBLE +manaplus_CXXFLAGS += -DUSE_MUMBLE +endif + if USE_INTERNALGUICHAN manaplus_CXXFLAGS += -DUSE_INTERNALGUICHAN manaplus_SOURCES += guichan/include/guichan/actionevent.hpp \ diff --git a/src/gui/setup_audio.cpp b/src/gui/setup_audio.cpp index ccd304c84..447b4633c 100644 --- a/src/gui/setup_audio.cpp +++ b/src/gui/setup_audio.cpp @@ -22,6 +22,8 @@ #include "gui/setup_audio.h" +#include "main.h" + #include "configuration.h" #include "sound.h" @@ -126,8 +128,10 @@ Setup_Audio::Setup_Audio() : new SetupItemLabel(_("Other"), "", this); +#ifdef USE_MUMBLE new SetupItemCheckBox(_("Enable mumble voice chat"), "", "enableMumble", this, "enableMumbleEvent"); +#endif new SetupItemCheckBox(_("Download music"), "", "download-music", this, "download-musicEvent"); -- cgit v1.2.3-70-g09d2