diff options
Diffstat (limited to 'src/gui/help.cpp')
-rw-r--r-- | src/gui/help.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/help.cpp b/src/gui/help.cpp index eb30556a..7b56d662 100644 --- a/src/gui/help.cpp +++ b/src/gui/help.cpp @@ -41,7 +41,7 @@ HelpWindow::HelpWindow(): browserBox = new BrowserBox(); browserBox->setOpaque(false); scrollArea = new ScrollArea(browserBox); - Button *okButton = new Button("Close"); + Button *okButton = new Button("Close", "close", this); scrollArea->setDimension(gcn::Rectangle( 5, 5, 445, 335 - okButton->getHeight())); @@ -49,9 +49,6 @@ HelpWindow::HelpWindow(): 450 - okButton->getWidth(), 345 - okButton->getHeight()); - okButton->setEventId("close"); - okButton->addActionListener(this); - browserBox->setLinkHandler(this); add(scrollArea); |