summaryrefslogtreecommitdiff
path: root/src/gui/textdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-20 00:52:01 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:43 +0300
commit41adf71a823f475b7f12b00e06056b778311da84 (patch)
tree55925f737e884f756d05a71238f207c03070a7ad /src/gui/textdialog.cpp
parent504219f9df4b9dda139dd832e263a136e51c4851 (diff)
downloadmanaplus-41adf71a823f475b7f12b00e06056b778311da84.tar.gz
manaplus-41adf71a823f475b7f12b00e06056b778311da84.tar.bz2
manaplus-41adf71a823f475b7f12b00e06056b778311da84.tar.xz
manaplus-41adf71a823f475b7f12b00e06056b778311da84.zip
Add palette inheritance to button class.
Diffstat (limited to 'src/gui/textdialog.cpp')
-rw-r--r--src/gui/textdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/textdialog.cpp b/src/gui/textdialog.cpp
index 5a19637e5..e4784d602 100644
--- a/src/gui/textdialog.cpp
+++ b/src/gui/textdialog.cpp
@@ -42,13 +42,13 @@ TextDialog::TextDialog(const std::string &title, const std::string &msg,
gcn::ActionListener(),
mTextField(nullptr),
mPasswordField(nullptr),
- mOkButton(new Button(_("OK"), "OK", this)),
+ mOkButton(new Button(this, _("OK"), "OK", this)),
mEnabledKeyboard(keyboard.isEnabled())
{
keyboard.setEnabled(false);
Label *const textLabel = new Label(msg);
- Button *const cancelButton = new Button(_("Cancel"), "CANCEL", this);
+ Button *const cancelButton = new Button(this, _("Cancel"), "CANCEL", this);
place(0, 0, textLabel, 4);
if (isPassword)