From 5943323aff9db6c1405177478564072e9d2214b3 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 28 Apr 2008 18:29:04 +0000 Subject: Properly fix problems with ItemContainer in InventoryWindow not resizing properly since upgrade to Guichan 0.8.0. --- src/gui/inventorywindow.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/gui/inventorywindow.h') diff --git a/src/gui/inventorywindow.h b/src/gui/inventorywindow.h index c016f707..3222009f 100644 --- a/src/gui/inventorywindow.h +++ b/src/gui/inventorywindow.h @@ -33,7 +33,6 @@ class Item; class ItemContainer; -class ScrollArea; /** * Inventory dialog. @@ -59,8 +58,6 @@ class InventoryWindow : public Window, gcn::ActionListener, */ void action(const gcn::ActionEvent &event); - void mouseClicked(gcn::MouseEvent &event); - Item* getItem(); /** @@ -68,6 +65,8 @@ class InventoryWindow : public Window, gcn::ActionListener, */ void valueChanged(const gcn::SelectionEvent &event); + void mouseClicked(gcn::MouseEvent &event); + /** * Called whenever the widget changes size. */ @@ -79,7 +78,7 @@ class InventoryWindow : public Window, gcn::ActionListener, ItemContainer *mItems; gcn::Button *mUseButton, *mDropButton; - ScrollArea *mInvenScroll; + gcn::ScrollArea *mInvenScroll; gcn::Label *mItemNameLabel; gcn::Label *mItemDescriptionLabel; gcn::Label *mItemEffectLabel; -- cgit v1.2.3-70-g09d2