summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-15 17:29:30 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-15 17:29:30 +0300
commit21e63bbf54679ec236d1f09ed435959ff6a04db2 (patch)
tree9082ec6c04c0005843a7b28e12ef5a4be81f7190 /src
parent9b329556e748050c4300174e9bdc72b15e5b8cc5 (diff)
downloadmv-21e63bbf54679ec236d1f09ed435959ff6a04db2.tar.gz
mv-21e63bbf54679ec236d1f09ed435959ff6a04db2.tar.bz2
mv-21e63bbf54679ec236d1f09ed435959ff6a04db2.tar.xz
mv-21e63bbf54679ec236d1f09ed435959ff6a04db2.zip
remove use internal guichan flag.
From now manaplus can use only own forked guichan version.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt2
-rw-r--r--src/Makefile.am7
-rw-r--r--src/being/being.cpp2
-rw-r--r--src/gui/widgets/container.h4
-rw-r--r--src/gui/widgets/window.cpp5
-rw-r--r--src/localconsts.h7
6 files changed, 1 insertions, 26 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 29e5afcb0..fafeeaf5d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -47,7 +47,7 @@ ELSEIF (CMAKE_SYSTEM_NAME STREQUAL Linux)
SET(EXTRA_LIBRARIES rt)
ENDIF()
-SET(FLAGS "${FLAGS} -DUSE_MUMBLE -DUSE_INTERNALGUICHAN")
+SET(FLAGS "${FLAGS} -DUSE_MUMBLE")
IF (WITH_OPENGL)
FIND_PACKAGE(OpenGL REQUIRED)
diff --git a/src/Makefile.am b/src/Makefile.am
index 7fb4541a1..0c50b6da5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -25,7 +25,6 @@ else
manaplus_SOURCES =
endif
-if USE_INTERNALGUICHAN
dyecmd_CXXFLAGS = -I$(srcdir)/guichan/include -DUSE_INTERNALGUICHAN
dyecmd_SOURCES = guichan/actionevent.cpp \
guichan/cliprectangle.cpp \
@@ -45,10 +44,6 @@ dyecmd_SOURCES = guichan/actionevent.cpp \
guichan/include/guichan/graphics.hpp \
guichan/include/guichan/rectangle.hpp \
guichan/include/guichan/widget.hpp
-else
-dyecmd_CXXFLAGS =
-dyecmd_SOURCES =
-endif
dyecmd_SOURCES += dyetool/dyemain.cpp \
animatedsprite.cpp \
@@ -163,7 +158,6 @@ manaplus_CXXFLAGS += -DUSE_SDL2
endif
endif
-if USE_INTERNALGUICHAN
manaplus_CXXFLAGS += -I$(srcdir)/guichan/include -DUSE_INTERNALGUICHAN
manaplus_SOURCES += guichan/include/guichan/actionevent.hpp \
guichan/include/guichan/actionlistener.hpp \
@@ -238,7 +232,6 @@ manaplus_SOURCES += guichan/actionevent.cpp \
guichan/widgets/textbox.cpp \
guichan/widgets/textfield.cpp \
guichan/widgets/window.cpp
-endif
manaplus_SOURCES += gui/widgets/avatarlistbox.cpp \
gui/widgets/avatarlistbox.h \
diff --git a/src/being/being.cpp b/src/being/being.cpp
index fef3ca53a..dfb335f9b 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -1847,9 +1847,7 @@ void Being::drawSpeech(const int offsetX, const int offsetY)
mSpeechBubble->setPosition(px - (mSpeechBubble->getWidth() / 2),
py - getHeight() - (mSpeechBubble->getHeight()));
mSpeechBubble->setVisible(true);
-#ifdef USE_INTERNALGUICHAN
mSpeechBubble->requestMoveToBackground();
-#endif
}
else if (mSpeechTime > 0 && speech == TEXT_OVERHEAD)
{
diff --git a/src/gui/widgets/container.h b/src/gui/widgets/container.h
index 2983a7433..8f3933357 100644
--- a/src/gui/widgets/container.h
+++ b/src/gui/widgets/container.h
@@ -27,10 +27,6 @@
#include <guichan/widgets/container.hpp>
-#if !defined USE_INTERNALGUICHAN
-typedef std::list<gcn::Widget *>::const_iterator WidgetListConstIterator;
-#endif
-
/**
* A widget container.
*
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index 36372dcaa..c716445f3 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -92,11 +92,6 @@ Window::Window(const std::string &caption, const bool modal,
{
logger->log("Window::Window(\"%s\")", caption.c_str());
-#ifndef USE_INTERNALGUICHAN
- mDragOffsetX = 0;
- mDragOffsetY = 0;
-#endif
-
if (!windowContainer)
throw GCN_EXCEPTION("Window::Window(): no windowContainer set");
diff --git a/src/localconsts.h b/src/localconsts.h
index 58b469f01..92c36d92a 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -33,13 +33,6 @@
#endif
#endif
-#ifndef DEBUGBUILD
-#ifndef USE_INTERNALGUICHAN
-#warning using depricated way for linking with guichan. \
- Please removed configure flag --without-internalguichan
-#endif
-#endif
-
#if !defined(__GXX_EXPERIMENTAL_CXX0X__)
#undef nullptr
#define nullptr 0