summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-31 00:29:22 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-31 00:29:22 +0300
commit8cc6679b676103c7c6696947ea43ad439e9754c5 (patch)
treea3cf0f7d9e8eede421956942b4c325e191a9eb31 /src/gui/inventorywindow.cpp
parent793bcbe5d8308c8c33419f67378df9dc83462445 (diff)
downloadplus-8cc6679b676103c7c6696947ea43ad439e9754c5.tar.gz
plus-8cc6679b676103c7c6696947ea43ad439e9754c5.tar.bz2
plus-8cc6679b676103c7c6696947ea43ad439e9754c5.tar.xz
plus-8cc6679b676103c7c6696947ea43ad439e9754c5.zip
Add theme option to show hide opaque background for some windows.
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index e4a318d69..b448ef80d 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -135,7 +135,8 @@ InventoryWindow::InventoryWindow(Inventory *inventory):
mItems = new ItemContainer(mInventory);
mItems->addSelectionListener(this);
- gcn::ScrollArea *invenScroll = new ScrollArea(mItems);
+ gcn::ScrollArea *invenScroll = new ScrollArea(
+ mItems, getOptionBool("showbackground"));
invenScroll->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
mSlotsLabel = new Label(_("Slots:"));