summaryrefslogtreecommitdiff
path: root/src/gui/windows/mailviewwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-03-09 02:22:21 +0300
committerAndrei Karas <akaras@inbox.ru>2018-03-09 02:22:21 +0300
commitaa7119314e1a33d908b98906d30be94eb116d02d (patch)
treea99092b16529937c20c6ec3a7d00d7f69eabfe35 /src/gui/windows/mailviewwindow.cpp
parent0424b1383e3c07192b4493d5210b4384b5a69a75 (diff)
downloadmanaplus-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/mailviewwindow.cpp')
-rw-r--r--src/gui/windows/mailviewwindow.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/gui/windows/mailviewwindow.cpp b/src/gui/windows/mailviewwindow.cpp
index f8f508dc1..f81921f4a 100644
--- a/src/gui/windows/mailviewwindow.cpp
+++ b/src/gui/windows/mailviewwindow.cpp
@@ -55,14 +55,16 @@ MailViewWindow::MailViewWindow(MailMessage *const message,
mGetAttachButton(new Button(this,
// TRANSLATORS: mail view attach / items button
settings.enableNewMailSystem ? _("Get items") : _("Get attach"),
- "attach", this)),
+ "attach",
+ BUTTON_SKIN,
+ this)),
mGetMoneyButton(nullptr),
// TRANSLATORS: mail view window button
- mCloseButton(new Button(this, _("Close"), "close", this)),
- mPrevButton(new Button(this, "<", "prev", this)),
- mNextButton(new Button(this, ">", "next", this)),
+ mCloseButton(new Button(this, _("Close"), "close", BUTTON_SKIN, this)),
+ mPrevButton(new Button(this, "<", "prev", BUTTON_SKIN, this)),
+ mNextButton(new Button(this, ">", "next", BUTTON_SKIN, this)),
// TRANSLATORS: mail view window button
- mReplyButton(new Button(this, _("Reply"), "reply", this)),
+ mReplyButton(new Button(this, _("Reply"), "reply", BUTTON_SKIN, this)),
// TRANSLATORS: mail view window label
mTimeLabel(new Label(this, strprintf("%s %s", _("Time:"),
message->strTime.c_str()))),
@@ -122,7 +124,9 @@ MailViewWindow::MailViewWindow(MailMessage *const message,
mGetMoneyButton = new Button(this,
// TRANSLATORS: mail view attached money button
_("Get money"),
- "money", this);
+ "money",
+ BUTTON_SKIN,
+ this);
placer(0, n++, mGetMoneyButton, 1, 1);
}
placer(0, n++, mGetAttachButton, 1, 1);