From 92950d2f309550e21b33d851ef9bbf7906ce5e50 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 7 Apr 2008 15:23:07 +0000 Subject: Upgraded to Guichan 0.8.0 (merge from guichan-0.8 branch, except for gcn::TabbedArea usage) --- src/gui/sell.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/sell.cpp') diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp index 63e7d704..ce971cb0 100644 --- a/src/gui/sell.cpp +++ b/src/gui/sell.cpp @@ -97,7 +97,6 @@ SellDialog::SellDialog(Network *network): add(mSellButton); add(mQuitButton); - addWindowListener(this); loadWindowState(); setLocationRelativeTo(getParent()); } @@ -204,7 +203,7 @@ void SellDialog::action(const gcn::ActionEvent &event) } } -void SellDialog::selectionChanged(const SelectionEvent &event) +void SellDialog::valueChanged(const gcn::SelectionEvent &event) { // Reset amount of items and update labels mAmountItems = 1; @@ -214,8 +213,10 @@ void SellDialog::selectionChanged(const SelectionEvent &event) mSlider->gcn::Slider::setScale(1, mMaxItems); } -void SellDialog::windowResized(const WindowEvent &event) +void SellDialog::widgetResized(const gcn::Event &event) { + Window::widgetResized(event); + gcn::Rectangle area = getChildrenArea(); int width = area.width; int height = area.height; -- cgit v1.2.3-70-g09d2