summaryrefslogtreecommitdiff
path: root/src/gui/confirm_dialog.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/confirm_dialog.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/confirm_dialog.cpp')
-rw-r--r--src/gui/confirm_dialog.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gui/confirm_dialog.cpp b/src/gui/confirm_dialog.cpp
index becb8859..2d574157 100644
--- a/src/gui/confirm_dialog.cpp
+++ b/src/gui/confirm_dialog.cpp
@@ -33,8 +33,8 @@ ConfirmDialog::ConfirmDialog(const std::string &title, const std::string &msg,
Window(title, true, parent)
{
gcn::Label *textLabel = new gcn::Label(msg);
- gcn::Button *yesButton = new Button("Yes");
- gcn::Button *noButton = new Button("No");
+ gcn::Button *yesButton = new Button("Yes", "yes", this);
+ gcn::Button *noButton = new Button("No", "no", this);
int w = textLabel->getWidth() + 20;
int inWidth = yesButton->getWidth() + noButton->getWidth() + 5;
@@ -53,11 +53,6 @@ ConfirmDialog::ConfirmDialog(const std::string &title, const std::string &msg,
yesButton->getX() + yesButton->getWidth() + 5,
h - 5 - noButton->getHeight());
- yesButton->setEventId("yes");
- noButton->setEventId("no");
- yesButton->addActionListener(this);
- noButton->addActionListener(this);
-
add(textLabel);
add(yesButton);
add(noButton);