From 17b2b19e7b907ae955e500d44dd167d2f31ce7bd Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Fri, 27 Mar 2009 15:34:55 +0100 Subject: Removed the unused "logged" button status Seems to be remnant from before we had a proper tabbed area. --- src/gui/button.cpp | 8 +++----- src/gui/button.h | 7 ------- 2 files changed, 3 insertions(+), 12 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; diff --git a/src/gui/button.h b/src/gui/button.h index abaf5c43..eebf7931 100644 --- a/src/gui/button.h +++ b/src/gui/button.h @@ -56,19 +56,12 @@ class Button : public gcn::Button */ void draw(gcn::Graphics *graphics); - /** - * Enable/Disable highlighting - */ - void setLogged(bool enable) - { mIsLogged = enable; } - private: void init(); static ImageRect button[4]; /**< Button state graphics */ static int mInstances; /**< Number of button instances */ static float mAlpha; - bool mIsLogged; /**< Makes the button appear pressed all the time */ }; #endif -- cgit v1.2.3-60-g2f50