summaryrefslogtreecommitdiff
path: root/src/gui/ok_dialog.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-09-20 14:32:06 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-09-20 14:32:06 +0000
commit0f730185d2e73bf80b6a53952c626a7b22ab5055 (patch)
treecacbe04bb3855ade0d3fa9c30302036e1be9a7ec /src/gui/ok_dialog.cpp
parentaa786b1b7898c9a4cd47135fabd3b1558b6d71c5 (diff)
downloadmana-client-0f730185d2e73bf80b6a53952c626a7b22ab5055.tar.gz
mana-client-0f730185d2e73bf80b6a53952c626a7b22ab5055.tar.bz2
mana-client-0f730185d2e73bf80b6a53952c626a7b22ab5055.tar.xz
mana-client-0f730185d2e73bf80b6a53952c626a7b22ab5055.zip
Fixed use of Enter for closing death and weight notices, and changed glColor4f
to glColor4ub.
Diffstat (limited to 'src/gui/ok_dialog.cpp')
-rw-r--r--src/gui/ok_dialog.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/ok_dialog.cpp b/src/gui/ok_dialog.cpp
index fd0408ac..0089f0ae 100644
--- a/src/gui/ok_dialog.cpp
+++ b/src/gui/ok_dialog.cpp
@@ -29,14 +29,14 @@
#include "windowcontainer.h"
OkDialog::OkDialog(const std::string &title, const std::string &msg,
- gcn::ActionListener *listener):
+ gcn::ActionListener *listener):
Window(title, true)
{
init(msg, listener);
}
OkDialog::OkDialog(Window *parent, const std::string &title,
- const std::string &msg, gcn::ActionListener *listener):
+ const std::string &msg, gcn::ActionListener *listener):
Window(title, true, parent)
{
init(msg, listener);
@@ -56,9 +56,8 @@ void OkDialog::init(const std::string &msg, gcn::ActionListener *listener)
setContentSize(w, h);
userLabel->setPosition(10, 10);
- okButton->setPosition(
- (w - okButton->getWidth()) / 2,
- h - 5 - okButton->getHeight());
+ okButton->setPosition((w - okButton->getWidth()) / 2,
+ h - 5 - okButton->getHeight());
okButton->setEventId("ok");
okButton->addActionListener(this);