summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-12-29 02:59:30 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-12-29 02:59:30 +0000
commit41101dbd7f38c7e9898422c755b8eaf379f1d7c1 (patch)
tree6d8f60024c355d15b3a42a7c0340c53d1859a910 /src/gui/inventorywindow.cpp
parent83ff9b3685fbf239772095b829e9c233e7907b3b (diff)
downloadmana-41101dbd7f38c7e9898422c755b8eaf379f1d7c1.tar.gz
mana-41101dbd7f38c7e9898422c755b8eaf379f1d7c1.tar.bz2
mana-41101dbd7f38c7e9898422c755b8eaf379f1d7c1.tar.xz
mana-41101dbd7f38c7e9898422c755b8eaf379f1d7c1.zip
Added popup support to the Gui class. Moved all mouse input handling into the Gui class.
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 35809bdd..0b8a37a7 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -31,9 +31,9 @@
#include <guichan/widgets/label.hpp>
#include "button.h"
+#include "gui.h"
#include "item_amount.h"
#include "itemcontainer.h"
-#include "popupmenu.h"
#include "scrollarea.h"
#include "../inventory.h"
@@ -162,7 +162,7 @@ void InventoryWindow::mouseClick(int x, int y, int button, int count)
*/
int mx = x + getX();
int my = y + getY();
- popupMenu->showPopup(mx, my, item);
+ gui->showPopup(mx, my, item);
}
}