summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-09 00:11:54 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-09 17:54:12 +0200
commit1e1f619b9ae5aa26058c499c988f45d1fb1b6d53 (patch)
tree1fe58c53388054ced122b5327e33fc2851a0606a /src/gui/gui.cpp
parent30d4b0adf4f17f05d1d62fc3428c896ef1079b6b (diff)
downloadmana-client-1e1f619b9ae5aa26058c499c988f45d1fb1b6d53.tar.gz
mana-client-1e1f619b9ae5aa26058c499c988f45d1fb1b6d53.tar.bz2
mana-client-1e1f619b9ae5aa26058c499c988f45d1fb1b6d53.tar.xz
mana-client-1e1f619b9ae5aa26058c499c988f45d1fb1b6d53.zip
Moved Channels to Mana::Event::Channel
Acked-by: Jared Adams
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 500a2d74..b8ce7989 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -57,9 +57,9 @@ class GuiConfigListener : public Mana::Listener
mGui(g)
{}
- void event(Channels channel, const Mana::Event &event)
+ void event(Mana::Event::Channel channel, const Mana::Event &event)
{
- if (channel == CHANNEL_CONFIG)
+ if (channel == Mana::Event::ConfigChannel)
{
if (event.getType() == Mana::Event::ConfigOptionChanged &&
event.getString("option") == "customcursor")
@@ -141,7 +141,7 @@ Gui::Gui(Graphics *graphics):
// Initialize mouse cursor and listen for changes to the option
setUseCustomCursor(config.getBoolValue("customcursor"));
mConfigListener = new GuiConfigListener(this);
- mConfigListener->listen(CHANNEL_CONFIG);
+ mConfigListener->listen(Mana::Event::ConfigChannel);
}
Gui::~Gui()