diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2010-08-24 17:24:14 +0200 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-08-24 09:52:32 -0600 |
commit | 38474d0c3c14cf595aed61ee1e4a69d48abbcf92 (patch) | |
tree | 8664b7c0a8ca5ff7734e1cb31a7c7d4dfdd8b2bf /src/gui/textdialog.cpp | |
parent | 000c3799eb85234b9baf5ede86dd966d929112d8 (diff) | |
download | mana-38474d0c3c14cf595aed61ee1e4a69d48abbcf92.tar.gz mana-38474d0c3c14cf595aed61ee1e4a69d48abbcf92.tar.bz2 mana-38474d0c3c14cf595aed61ee1e4a69d48abbcf92.tar.xz mana-38474d0c3c14cf595aed61ee1e4a69d48abbcf92.zip |
Giving functionality to invite in socialwindow and allow enter key in textdialog
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
Diffstat (limited to 'src/gui/textdialog.cpp')
-rw-r--r-- | src/gui/textdialog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/textdialog.cpp b/src/gui/textdialog.cpp index 3e3aafe2..6faa1162 100644 --- a/src/gui/textdialog.cpp +++ b/src/gui/textdialog.cpp @@ -38,6 +38,8 @@ TextDialog::TextDialog(const std::string &title, const std::string &msg, mOkButton = new Button(_("OK"), "OK", this); gcn::Button *cancelButton = new Button(_("Cancel"), "CANCEL", this); + mTextField->addActionListener(this); + place(0, 0, textLabel, 4); place(0, 1, mTextField, 4); place(2, 2, mOkButton); |