summaryrefslogtreecommitdiff
path: root/src/game/GameView.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-01-06 01:03:59 (GMT)
committer jacob1 <jfu614@gmail.com>2013-01-06 01:03:59 (GMT)
commit8f4d936de81c15e1ba91a2a4a2e79e039707a121 (patch)
tree97a68b4b28ded9f88d912886c227e073d2e9bbf8 /src/game/GameView.cpp
parentbd3011959a936f3b1f6e8cbe744529ea6c171182 (diff)
downloadpowder-8f4d936de81c15e1ba91a2a4a2e79e039707a121.zip
powder-8f4d936de81c15e1ba91a2a4a2e79e039707a121.tar.gz
allow right click to close notifications too
Diffstat (limited to 'src/game/GameView.cpp')
-rw-r--r--src/game/GameView.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp
index dfd4b40..a1bbc9e 100644
--- a/src/game/GameView.cpp
+++ b/src/game/GameView.cpp
@@ -1591,6 +1591,10 @@ void GameView::NotifyNotificationsChanged(GameModel * sender)
{
v->c->RemoveNotification(notification);
}
+ void AltActionCallback(ui::Button * sender)
+ {
+ v->c->RemoveNotification(notification);
+ }
};
for(std::vector<ui::Component*>::const_iterator iter = notificationComponents.begin(), end = notificationComponents.end(); iter != end; ++iter) {