summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/widgets/sliderlist.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/widgets/sliderlist.cpp b/src/gui/widgets/sliderlist.cpp
index d41927f82..93fb22141 100644
--- a/src/gui/widgets/sliderlist.cpp
+++ b/src/gui/widgets/sliderlist.cpp
@@ -46,9 +46,6 @@ SliderList::SliderList(const Widget2 *const widget,
mSelectedIndex(0)
{
setHeight(sliderHeight);
-
- mButtons[0] = new Button(this, "<", mPrevEventId, this);
- mButtons[1] = new Button(this, ">", mNextEventId, this);
}
void SliderList::postInit(gcn::ActionListener *const listener,
@@ -57,6 +54,9 @@ void SliderList::postInit(gcn::ActionListener *const listener,
mPrevEventId = eventId + "_prev";
mNextEventId = eventId + "_next";
+ mButtons[0] = new Button(this, "<", mPrevEventId, this);
+ mButtons[1] = new Button(this, ">", mNextEventId, this);
+
add(mButtons[0]);
add(mLabel);
add(mButtons[1]);
@@ -83,7 +83,6 @@ void SliderList::updateAlpha()
void SliderList::mouseWheelMovedUp(gcn::MouseEvent& mouseEvent)
{
- logger->log("SliderList::mouseWheelMovedUp");
setSelected(mSelectedIndex - 1);
mouseEvent.consume();
}