summaryrefslogtreecommitdiff
path: root/src/gui/trade.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/trade.cpp')
-rw-r--r--src/gui/trade.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/gui/trade.cpp b/src/gui/trade.cpp
index c94aad0a..fba5f600 100644
--- a/src/gui/trade.cpp
+++ b/src/gui/trade.cpp
@@ -61,12 +61,9 @@ TradeWindow::TradeWindow():
#endif
{
setWindowName("Trade");
- setResizable(true);
+ setResizable(false);
setCloseButton(true);
- setDefaultSize(342, 209, ImageRect::CENTER);
-
- setMinWidth(342);
- setMinHeight(209);
+ setDefaultSize(386, 180, ImageRect::CENTER);
std::string longestName = getFont()->getWidth(_("OK")) >
getFont()->getWidth(_("Trade")) ?
@@ -83,12 +80,12 @@ TradeWindow::TradeWindow():
mTradeButton->getFont()->getWidth(_("Propose trade")),
mTradeButton->getFont()->getWidth(_("Confirm trade"))));
- mMyItemContainer = new ItemContainer(mMyInventory.get(), 4, 3);
+ mMyItemContainer = new ItemContainer(mMyInventory.get(), 5, 2);
mMyItemContainer->addSelectionListener(this);
ScrollArea *myScroll = new ScrollArea(mMyItemContainer);
- mPartnerItemContainer = new ItemContainer(mPartnerInventory.get(), 4, 3);
+ mPartnerItemContainer = new ItemContainer(mPartnerInventory.get(), 5, 2);
mPartnerItemContainer->addSelectionListener(this);
ScrollArea *partnerScroll = new ScrollArea(mPartnerItemContainer);