summaryrefslogtreecommitdiff
path: root/src/gui/updatewindow.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 02:02:57 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 02:02:57 +0000
commit81cf85e9ec1d37dc6e8dd9883f42bb50dace9135 (patch)
tree585415bbb85c48fc8fb83cd5f54e1cfe8e988ee7 /src/gui/updatewindow.cpp
parent78ab0ec914d3c5a97f162905afb3dede53f8b9ed (diff)
downloadmana-client-81cf85e9ec1d37dc6e8dd9883f42bb50dace9135.tar.gz
mana-client-81cf85e9ec1d37dc6e8dd9883f42bb50dace9135.tar.bz2
mana-client-81cf85e9ec1d37dc6e8dd9883f42bb50dace9135.tar.xz
mana-client-81cf85e9ec1d37dc6e8dd9883f42bb50dace9135.zip
Made the Button ctor accept eventId and action listener.
Diffstat (limited to 'src/gui/updatewindow.cpp')
-rw-r--r--src/gui/updatewindow.cpp8
1 files changed, 2 insertions, 6 deletions
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...");