summaryrefslogtreecommitdiff
path: root/src/gui/button.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-27 15:34:55 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-27 15:37:07 +0100
commit17b2b19e7b907ae955e500d44dd167d2f31ce7bd (patch)
treea55d7e4a5c358916787df1e8d9b32fa4867b0aea /src/gui/button.cpp
parentaa6f1c46e78864d9900cdf8afb8bacb8c4ce4651 (diff)
downloadmana-17b2b19e7b907ae955e500d44dd167d2f31ce7bd.tar.gz
mana-17b2b19e7b907ae955e500d44dd167d2f31ce7bd.tar.bz2
mana-17b2b19e7b907ae955e500d44dd167d2f31ce7bd.tar.xz
mana-17b2b19e7b907ae955e500d44dd167d2f31ce7bd.zip
Removed the unused "logged" button status
Seems to be remnant from before we had a proper tabbed area.
Diffstat (limited to 'src/gui/button.cpp')
-rw-r--r--src/gui/button.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/button.cpp b/src/gui/button.cpp
index c7070667..a08d383b 100644
--- a/src/gui/button.cpp
+++ b/src/gui/button.cpp
@@ -60,16 +60,14 @@ static ButtonData const data[BUTTON_COUNT] = {
ImageRect Button::button[BUTTON_COUNT];
-Button::Button():
- mIsLogged(false)
+Button::Button()
{
init();
}
Button::Button(const std::string &caption, const std::string &actionEventId,
gcn::ActionListener *listener):
- gcn::Button(caption),
- mIsLogged(false)
+ gcn::Button(caption)
{
init();
setActionEventId(actionEventId);
@@ -131,7 +129,7 @@ void Button::draw(gcn::Graphics *graphics)
if (!isEnabled())
mode = BUTTON_DISABLED;
- else if (isPressed() || mIsLogged)
+ else if (isPressed())
mode = BUTTON_PRESSED;
else if (mHasMouse || isFocused())
mode = BUTTON_HIGHLIGHTED;