aboutsummaryrefslogtreecommitdiff
path: root/gui/message.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2010-06-15 10:52:35 +0000
committerEugene Sandulenko2010-06-15 10:52:35 +0000
commit01f9006ee7e8d0fd153f42fb00afbc25c4804d2b (patch)
tree774725290301c00c9e362a38fd917ea9b28db978 /gui/message.cpp
parentea7405d7ef177a547d840424497d2f7ffd72626b (diff)
downloadscummvm-rg350-01f9006ee7e8d0fd153f42fb00afbc25c4804d2b.tar.gz
scummvm-rg350-01f9006ee7e8d0fd153f42fb00afbc25c4804d2b.tar.bz2
scummvm-rg350-01f9006ee7e8d0fd153f42fb00afbc25c4804d2b.zip
GUI: Implement tooltips. FR #2821513.
FR #2821513: "GUI: add tooltips". Added tooltips for Add Game button, clear field buttons and couple other. Current problem: Only first call correctly restores text. I could not find where restore information gets lost. svn-id: r49774
Diffstat (limited to 'gui/message.cpp')
-rw-r--r--gui/message.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/message.cpp b/gui/message.cpp
index 12ac3123a4..6406976569 100644
--- a/gui/message.cpp
+++ b/gui/message.cpp
@@ -89,10 +89,10 @@ MessageDialog::MessageDialog(const Common::String &message, const char *defaultB
}
if (defaultButton)
- new ButtonWidget(this, okButtonPos, _h - buttonHeight - 8, buttonWidth, buttonHeight, defaultButton, kOkCmd, Common::ASCII_RETURN); // Confirm dialog
+ new ButtonWidget(this, okButtonPos, _h - buttonHeight - 8, buttonWidth, buttonHeight, defaultButton, 0, kOkCmd, Common::ASCII_RETURN); // Confirm dialog
if (altButton)
- new ButtonWidget(this, cancelButtonPos, _h - buttonHeight - 8, buttonWidth, buttonHeight, altButton, kCancelCmd, Common::ASCII_ESCAPE); // Cancel dialog
+ new ButtonWidget(this, cancelButtonPos, _h - buttonHeight - 8, buttonWidth, buttonHeight, altButton, 0, kCancelCmd, Common::ASCII_ESCAPE); // Cancel dialog
}
void MessageDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) {