summaryrefslogtreecommitdiff
path: root/src/textfile_gui.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2012-08-13 18:52:47 +0000
committeryexo <yexo@openttd.org>2012-08-13 18:52:47 +0000
commit51921552536d2fbc56c8cdaf682da038e26a168c (patch)
tree446910fbfe067f164f846acd80df7698e9a1369f /src/textfile_gui.cpp
parent483d878d5fbe549b2e8196c8e8176ad560734343 (diff)
downloadopenttd-51921552536d2fbc56c8cdaf682da038e26a168c.tar.xz
(svn r24467) -Codechange [FS#5236]: make textfile window class slightly more general (LordAro)
Diffstat (limited to 'src/textfile_gui.cpp')
-rw-r--r--src/textfile_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/textfile_gui.cpp b/src/textfile_gui.cpp
index 3a4954323..43e5f865c 100644
--- a/src/textfile_gui.cpp
+++ b/src/textfile_gui.cpp
@@ -55,6 +55,7 @@ TextfileWindow::TextfileWindow(TextfileType file_type) : Window(), file_type(fil
this->vscroll = this->GetScrollbar(WID_TF_VSCROLLBAR);
this->hscroll = this->GetScrollbar(WID_TF_HSCROLLBAR);
this->FinishInitNested(&_textfile_desc);
+ this->GetWidget<NWidgetCore>(WID_TF_CAPTION)->SetDataTip(STR_TEXTFILE_README_CAPTION + file_type, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS);
}
/* virtual */ TextfileWindow::~TextfileWindow()