summaryrefslogtreecommitdiff
path: root/src/gui/shopwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-20 00:52:01 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:43 +0300
commit41adf71a823f475b7f12b00e06056b778311da84 (patch)
tree55925f737e884f756d05a71238f207c03070a7ad /src/gui/shopwindow.cpp
parent504219f9df4b9dda139dd832e263a136e51c4851 (diff)
downloadplus-41adf71a823f475b7f12b00e06056b778311da84.tar.gz
plus-41adf71a823f475b7f12b00e06056b778311da84.tar.bz2
plus-41adf71a823f475b7f12b00e06056b778311da84.tar.xz
plus-41adf71a823f475b7f12b00e06056b778311da84.zip
Add palette inheritance to button class.
Diffstat (limited to 'src/gui/shopwindow.cpp')
-rw-r--r--src/gui/shopwindow.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/gui/shopwindow.cpp b/src/gui/shopwindow.cpp
index e61437716..3aab00ea8 100644
--- a/src/gui/shopwindow.cpp
+++ b/src/gui/shopwindow.cpp
@@ -75,7 +75,7 @@ ShopWindow::ShopWindow():
Window(_("Personal Shop"), false, nullptr, "shop.xml"),
gcn::ActionListener(),
gcn::SelectionListener(),
- mCloseButton(new Button(_("Close"), "close", this)),
+ mCloseButton(new Button(this, _("Close"), "close", this)),
mBuyShopItems(new ShopItems),
mSellShopItems(new ShopItems),
mBuyShopItemList(new ShopListBox(this, mBuyShopItems, mBuyShopItems)),
@@ -86,13 +86,13 @@ ShopWindow::ShopWindow():
getOptionBool("showsellbackground"), "shop_sell_background.xml")),
mBuyLabel(new Label(_("Buy items"))),
mSellLabel(new Label(_("Sell items"))),
- mBuyAddButton(new Button(_("Add"), "add buy", this)),
- mBuyDeleteButton(new Button(_("Delete"), "delete buy", this)),
- mBuyAnnounceButton(new Button(_("Announce"), "announce buy", this)),
+ mBuyAddButton(new Button(this, _("Add"), "add buy", this)),
+ mBuyDeleteButton(new Button(this, _("Delete"), "delete buy", this)),
+ mBuyAnnounceButton(new Button(this, _("Announce"), "announce buy", this)),
mBuyAuctionButton(nullptr),
- mSellAddButton(new Button(_("Add"), "add sell", this)),
- mSellDeleteButton(new Button(_("Delete"), "delete sell", this)),
- mSellAnnounceButton(new Button(_("Announce"), "announce sell", this)),
+ mSellAddButton(new Button(this, _("Add"), "add sell", this)),
+ mSellDeleteButton(new Button(this, _("Delete"), "delete sell", this)),
+ mSellAnnounceButton(new Button(this, _("Announce"), "announce sell", this)),
mSellAuctionButton(nullptr),
mAnnounceLinks(new CheckBox(_("Show links in announce"), false,
this, "link announce")),
@@ -146,8 +146,10 @@ ShopWindow::ShopWindow():
if (auctionManager && auctionManager->getEnableAuctionBot())
{
- mBuyAuctionButton = new Button(_("Auction"), "auction buy", this);
- mSellAuctionButton = new Button(_("Auction"), "auction sell", this);
+ mBuyAuctionButton = new Button(this,
+ _("Auction"), "auction buy", this);
+ mSellAuctionButton = new Button(this,
+ _("Auction"), "auction sell", this);
placer(4, 6, mBuyAuctionButton);
placer(12, 6, mSellAuctionButton);
}