From 404d3f7f2f9aa455bea423a6a00025df23cd6687 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sat, 9 Apr 2011 00:16:28 +0200 Subject: Removed the Mana namespace It's just an annoyance when it's only applied to a few classes. Either we place everything in this namespace or nothing, and at the moment I don't see any rationale for placing everything in a Mana namespace. Acked-by: Jared Adams --- src/gui/gui.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/gui.cpp') diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index b8ce7989..2aca60bf 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -50,18 +50,18 @@ SDLInput *guiInput = 0; // Bolded font gcn::Font *boldFont = 0; -class GuiConfigListener : public Mana::Listener +class GuiConfigListener : public Listener { public: GuiConfigListener(Gui *g): mGui(g) {} - void event(Mana::Event::Channel channel, const Mana::Event &event) + void event(Event::Channel channel, const Event &event) { - if (channel == Mana::Event::ConfigChannel) + if (channel == Event::ConfigChannel) { - if (event.getType() == Mana::Event::ConfigOptionChanged && + if (event.getType() == Event::ConfigOptionChanged && event.getString("option") == "customcursor") { bool bCustomCursor = config.getBoolValue("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(Mana::Event::ConfigChannel); + mConfigListener->listen(Event::ConfigChannel); } Gui::~Gui() -- cgit v1.2.3-70-g09d2