From 81cf85e9ec1d37dc6e8dd9883f42bb50dace9135 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Thu, 9 Mar 2006 02:02:57 +0000 Subject: Made the Button ctor accept eventId and action listener. --- src/gui/updatewindow.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/gui/updatewindow.cpp') diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp index 59382a4e..51be2f2d 100644 --- a/src/gui/updatewindow.cpp +++ b/src/gui/updatewindow.cpp @@ -57,17 +57,13 @@ UpdaterWindow::UpdaterWindow(): mBrowserBox = new BrowserBox(); mBrowserBox->setOpaque(false); - mCancelButton = new Button("Cancel"); + mCancelButton = new Button("Cancel", "cancel", this); mCancelButton->setPosition(5, h - 5 - mCancelButton->getHeight()); - mCancelButton->setEventId("cancel"); - mCancelButton->addActionListener(this); - mPlayButton = new Button("Play"); + mPlayButton = new Button("Play", "play", this); mPlayButton->setPosition(mCancelButton->getX() + mCancelButton->getWidth() + 5, h - 5 - mPlayButton->getHeight()); - mPlayButton->setEventId("play"); mPlayButton->setEnabled(false); - mPlayButton->addActionListener(this); mProgressBar = new ProgressBar(0.0, 5, mCancelButton->getY() - 20 - 5, w - 10, 20, 37, 70, 200); mLabel = new gcn::Label("Connecting..."); -- cgit v1.2.3-70-g09d2