From 33382dded24e2cfec454ff204a8fffbff9bd0fed Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 22 Dec 2013 21:34:02 +0300 Subject: fix sliderlist next/previous buttons. --- src/gui/widgets/sliderlist.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/gui/widgets/sliderlist.cpp') 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(); } -- cgit v1.2.3-70-g09d2