summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 82e8ff50..c1715fd1 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -123,8 +123,9 @@
namespace
{
- struct SetupListener : public gcn::ActionListener
+ class SetupListener : public gcn::ActionListener
{
+ public:
/**
* Called when receiving actions from widget.
*/
@@ -661,24 +662,27 @@ static void loadUpdates()
}
}
-struct ErrorListener : public gcn::ActionListener
+class ErrorListener : public gcn::ActionListener
{
+public:
void action(const gcn::ActionEvent &event)
{
state = STATE_CHOOSE_SERVER;
}
} errorListener;
-struct AccountListener : public gcn::ActionListener
+class AccountListener : public gcn::ActionListener
{
+public:
void action(const gcn::ActionEvent &event)
{
state = STATE_CHAR_SELECT;
}
} accountListener;
-struct LoginListener : public gcn::ActionListener
+class LoginListener : public gcn::ActionListener
{
+public:
void action(const gcn::ActionEvent &event)
{
state = STATE_LOGIN;