summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-09 00:03:44 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-09 17:54:12 +0200
commit30d4b0adf4f17f05d1d62fc3428c896ef1079b6b (patch)
treeacc6dab5d6894a949df3ab4d913ef72a1b1ebdca /src/gui/viewport.cpp
parentb499cf0c03f2589d36a1df14c81530347243940a (diff)
downloadmana-30d4b0adf4f17f05d1d62fc3428c896ef1079b6b.tar.gz
mana-30d4b0adf4f17f05d1d62fc3428c896ef1079b6b.tar.bz2
mana-30d4b0adf4f17f05d1d62fc3428c896ef1079b6b.tar.xz
mana-30d4b0adf4f17f05d1d62fc3428c896ef1079b6b.zip
Moved Events to Mana::Event::Type
Acked-by: Jared Adams
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 9d03cab5..d9693863 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -586,7 +586,8 @@ void Viewport::hideBeingPopup()
void Viewport::event(Channels channel, const Mana::Event &event)
{
- if (channel == CHANNEL_ACTORSPRITE && event.getName() == EVENT_DESTROYED)
+ if (channel == CHANNEL_ACTORSPRITE
+ && event.getType() == Mana::Event::Destroyed)
{
ActorSprite *actor = event.getActor("source");
@@ -597,7 +598,7 @@ void Viewport::event(Channels channel, const Mana::Event &event)
mHoverItem = 0;
}
else if (channel == CHANNEL_CONFIG &&
- event.getName() == EVENT_CONFIGOPTIONCHANGED)
+ event.getType() == Mana::Event::ConfigOptionChanged)
{
const std::string option = event.getString("option");
if (option == "ScrollLaziness" || option == "ScrollRadius")