diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-03-09 02:22:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-03-09 02:22:21 +0300 |
commit | aa7119314e1a33d908b98906d30be94eb116d02d (patch) | |
tree | a99092b16529937c20c6ec3a7d00d7f69eabfe35 /src/gui/windows/didyouknowwindow.cpp | |
parent | 0424b1383e3c07192b4493d5210b4384b5a69a75 (diff) | |
download | manaplus-aa7119314e1a33d908b98906d30be94eb116d02d.tar.gz manaplus-aa7119314e1a33d908b98906d30be94eb116d02d.tar.bz2 manaplus-aa7119314e1a33d908b98906d30be94eb116d02d.tar.xz manaplus-aa7119314e1a33d908b98906d30be94eb116d02d.zip |
Add skin parameter to all button constructors.
Diffstat (limited to 'src/gui/windows/didyouknowwindow.cpp')
-rw-r--r-- | src/gui/windows/didyouknowwindow.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gui/windows/didyouknowwindow.cpp b/src/gui/windows/didyouknowwindow.cpp index 47d231a68..1d53a9a9f 100644 --- a/src/gui/windows/didyouknowwindow.cpp +++ b/src/gui/windows/didyouknowwindow.cpp @@ -60,9 +60,9 @@ DidYouKnowWindow::DidYouKnowWindow() : mScrollArea(new ScrollArea(this, mBrowserBox, Opaque_true, "didyouknow_background.xml")), // TRANSLATORS: did you know window button - mButtonPrev(new Button(this, _("< Previous"), "prev", this)), + mButtonPrev(new Button(this, _("< Previous"), "prev", BUTTON_SKIN, this)), // TRANSLATORS: did you know window button - mButtonNext(new Button(this, _("Next >"), "next", this)), + mButtonNext(new Button(this, _("Next >"), "next", BUTTON_SKIN, this)), // TRANSLATORS: did you know window checkbox mOpenAgainCheckBox(new CheckBox(this, _("Auto open this window"), config.getBoolValue("showDidYouKnow"), this, "openagain")) @@ -80,8 +80,12 @@ DidYouKnowWindow::DidYouKnowWindow() : setDefaultSize(500, 400, ImagePosition::CENTER, 0, 0); mBrowserBox->setOpaque(Opaque_false); - // TRANSLATORS: did you know window button - Button *const okButton = new Button(this, _("Close"), "close", this); + Button *const okButton = new Button(this, + // TRANSLATORS: did you know window button + _("Close"), + "close", + BUTTON_SKIN, + this); mBrowserBox->setLinkHandler(mItemLinkHandler); if (gui != nullptr) |