summaryrefslogtreecommitdiff
path: root/src/gui/itemshortcutwindow.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-07 15:23:07 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-07 15:23:07 +0000
commit92950d2f309550e21b33d851ef9bbf7906ce5e50 (patch)
tree18a6d2539c6e004e52cbebb1e61d8f8f0344f9a0 /src/gui/itemshortcutwindow.cpp
parent3f3ba5f3e18b0a5093e7275aee574ecd6f293ec6 (diff)
downloadmana-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.gz
mana-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.bz2
mana-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.xz
mana-92950d2f309550e21b33d851ef9bbf7906ce5e50.zip
Upgraded to Guichan 0.8.0 (merge from guichan-0.8 branch, except for
gcn::TabbedArea usage)
Diffstat (limited to 'src/gui/itemshortcutwindow.cpp')
-rw-r--r--src/gui/itemshortcutwindow.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/itemshortcutwindow.cpp b/src/gui/itemshortcutwindow.cpp
index 51f9f91e..efbbe266 100644
--- a/src/gui/itemshortcutwindow.cpp
+++ b/src/gui/itemshortcutwindow.cpp
@@ -39,7 +39,7 @@ ItemShortcutWindow::ItemShortcutWindow()
mItems = new ItemShortcutContainer();
- int border = SCROLL_PADDING * 2 + getPadding() * 2;
+ const int border = SCROLL_PADDING * 2 + getPadding() * 2;
setMinWidth(mItems->getBoxWidth() + border);
setMinHeight(mItems->getBoxHeight() + border);
setMaxWidth(mItems->getBoxWidth() * mItems->getMaxItems() + border);
@@ -51,7 +51,6 @@ ItemShortcutWindow::ItemShortcutWindow()
add(mInvenScroll);
- addWindowListener(this);
loadWindowState();
}
@@ -66,9 +65,11 @@ void ItemShortcutWindow::logic()
Window::logic();
}
-void ItemShortcutWindow::windowResized(const WindowEvent &event)
+void ItemShortcutWindow::widgetResized(const gcn::Event &event)
{
- const gcn::Rectangle area = getChildrenArea();
+ Window::widgetResized(event);
+
+ const gcn::Rectangle &area = getChildrenArea();
mInvenScroll->setSize(
area.width - SCROLL_PADDING,