diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-20 00:52:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-20 13:55:43 +0300 |
commit | 41adf71a823f475b7f12b00e06056b778311da84 (patch) | |
tree | 55925f737e884f756d05a71238f207c03070a7ad /src/gui/shopwindow.cpp | |
parent | 504219f9df4b9dda139dd832e263a136e51c4851 (diff) | |
download | mv-41adf71a823f475b7f12b00e06056b778311da84.tar.gz mv-41adf71a823f475b7f12b00e06056b778311da84.tar.bz2 mv-41adf71a823f475b7f12b00e06056b778311da84.tar.xz mv-41adf71a823f475b7f12b00e06056b778311da84.zip |
Add palette inheritance to button class.
Diffstat (limited to 'src/gui/shopwindow.cpp')
-rw-r--r-- | src/gui/shopwindow.cpp | 20 |
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); } |