From 5f00b25ba2895704123eb3d01b3ab5d012d2f333 Mon Sep 17 00:00:00 2001 From: Tametomo Date: Wed, 15 Apr 2009 19:55:29 +0200 Subject: Some PopupMenu cleanups/fixes and additions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tametomo Signed-off-by: Bjørn Lindeijer --- src/gui/viewport.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui/viewport.h') diff --git a/src/gui/viewport.h b/src/gui/viewport.h index cff23862..3dae5a2a 100644 --- a/src/gui/viewport.h +++ b/src/gui/viewport.h @@ -108,6 +108,12 @@ class Viewport : public WindowContainer, public gcn::MouseListener, */ void showPopup(int x, int y, Item *item); + /** + * Closes the popup menu. Needed for when the player dies or switching + * maps. + */ + void closePopupMenu(); + /** * A relevant config option changed. */ -- cgit v1.2.3-70-g09d2