From 1e1f619b9ae5aa26058c499c988f45d1fb1b6d53 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sat, 9 Apr 2011 00:11:54 +0200 Subject: Moved Channels to Mana::Event::Channel Acked-by: Jared Adams --- src/resources/theme.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/resources/theme.cpp') diff --git a/src/resources/theme.cpp b/src/resources/theme.cpp index 966f0e94..0509681c 100644 --- a/src/resources/theme.cpp +++ b/src/resources/theme.cpp @@ -111,7 +111,7 @@ Theme::Theme(): { initDefaultThemePath(); - listen(CHANNEL_CONFIG); + listen(Mana::Event::ConfigChannel); loadColors(); mColors[HIGHLIGHT].ch = 'H'; @@ -208,9 +208,9 @@ void Theme::updateAlpha() iter->second->updateAlpha(mMinimumOpacity); } -void Theme::event(Channels channel, const Mana::Event &event) +void Theme::event(Mana::Event::Channel channel, const Mana::Event &event) { - if (channel == CHANNEL_CONFIG && + if (channel == Mana::Event::ConfigChannel && event.getType() == Mana::Event::ConfigOptionChanged && event.getString("option") == "guialpha") { -- cgit v1.2.3-60-g2f50