summaryrefslogtreecommitdiff
path: root/src/gui/speechbubble.cpp
diff options
context:
space:
mode:
authorBjørn <bjorn@horst-dieter.(none)>2009-04-12 18:04:33 +0200
committerBjørn <bjorn@horst-dieter.(none)>2009-04-12 19:06:37 +0200
commita6998fbdfaf84aa1920564d97e3421ed28c9a893 (patch)
tree592fb9e78946a4f539e7c1dd3210b50f68e4f961 /src/gui/speechbubble.cpp
parentacbafa84774d4addeb4da0206762d64febf26d3e (diff)
downloadMana-a6998fbdfaf84aa1920564d97e3421ed28c9a893.tar.gz
Mana-a6998fbdfaf84aa1920564d97e3421ed28c9a893.tar.bz2
Mana-a6998fbdfaf84aa1920564d97e3421ed28c9a893.tar.xz
Mana-a6998fbdfaf84aa1920564d97e3421ed28c9a893.zip
Cleaned up the ItemPopup class a bit
Removed methods updateColors, getItemName and getNumRows. The last one was also removed from some other classes.
Diffstat (limited to 'src/gui/speechbubble.cpp')
-rw-r--r--src/gui/speechbubble.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gui/speechbubble.cpp b/src/gui/speechbubble.cpp
index b7977d09..da472449 100644
--- a/src/gui/speechbubble.cpp
+++ b/src/gui/speechbubble.cpp
@@ -68,7 +68,7 @@ void SpeechBubble::setCaption(const std::string &name, const gcn::Color *color)
mCaption->setForegroundColor(*color);
}
-void SpeechBubble::setText(std::string text, bool showName)
+void SpeechBubble::setText(const std::string &text, bool showName)
{
if (text == mText && (mCaption->getWidth() <= mSpeechBox->getMinWidth()))
return;
@@ -98,8 +98,3 @@ void SpeechBubble::setText(std::string text, bool showName)
mCaption->setPosition(xPos, getPadding());
mSpeechArea->setDimension(gcn::Rectangle(xPos, yPos, width, height));
}
-
-unsigned int SpeechBubble::getNumRows() const
-{
- return mSpeechBox->getNumberOfRows();
-}