From 41adf71a823f475b7f12b00e06056b778311da84 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Oct 2012 00:52:01 +0300 Subject: Add palette inheritance to button class. --- src/gui/inventorywindow.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/gui/inventorywindow.cpp') diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index 4446d2958..ba4180914 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -177,12 +177,12 @@ InventoryWindow::InventoryWindow(Inventory *const inventory): longestUseString = unequip; } - mUseButton = new Button(longestUseString, "use", this); - mDropButton = new Button(_("Drop..."), "drop", this); - mSplitButton = new Button(_("Split"), "split", this); - mOutfitButton = new Button(_("Outfits"), "outfit", this); - mShopButton = new Button(_("Shop"), "shop", this); - mEquipmentButton = new Button(_("Equipment"), "equipment", this); + mUseButton = new Button(this, longestUseString, "use", this); + mDropButton = new Button(this, _("Drop..."), "drop", this); + mSplitButton = new Button(this, _("Split"), "split", this); + mOutfitButton = new Button(this, _("Outfits"), "outfit", this); + mShopButton = new Button(this, _("Shop"), "shop", this); + mEquipmentButton = new Button(this, _("Equipment"), "equipment", this); mWeightBar = new ProgressBar(0.0f, 100, 0, Theme::PROG_WEIGHT); place(0, 0, mWeightBar, 4); @@ -204,9 +204,9 @@ InventoryWindow::InventoryWindow(Inventory *const inventory): } else { - mStoreButton = new Button(_("Store"), "store", this); - mRetrieveButton = new Button(_("Retrieve"), "retrieve", this); - mCloseButton = new Button(_("Close"), "close", this); + mStoreButton = new Button(this, _("Store"), "store", this); + mRetrieveButton = new Button(this, _("Retrieve"), "retrieve", this); + mCloseButton = new Button(this, _("Close"), "close", this); mSlotsBarCell = &place(0, 0, mSlotsBar, 6); mSortDropDownCell = &place(6, 0, mSortDropDown, 1); -- cgit v1.2.3-60-g2f50