summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/playerhandler.cpp4
-rw-r--r--src/net/tradehandler.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/net/playerhandler.cpp b/src/net/playerhandler.cpp
index 42c21774..0eab86ca 100644
--- a/src/net/playerhandler.cpp
+++ b/src/net/playerhandler.cpp
@@ -56,7 +56,7 @@ extern Window *buySellDialog;
namespace {
struct WeightListener : public gcn::ActionListener
{
- void action(const std::string &eventId, gcn::Widget *widget)
+ void action(const gcn::ActionEvent &event)
{
weightNotice = NULL;
}
@@ -70,7 +70,7 @@ namespace {
namespace {
struct DeathListener : public gcn::ActionListener
{
- void action(const std::string &eventId, gcn::Widget *widget)
+ void action(const gcn::ActionEvent &event)
{
player_node->revive();
deathNotice = NULL;
diff --git a/src/net/tradehandler.cpp b/src/net/tradehandler.cpp
index 8f9788a2..0b4cb512 100644
--- a/src/net/tradehandler.cpp
+++ b/src/net/tradehandler.cpp
@@ -41,9 +41,9 @@ std::string tradePartnerName;
namespace {
struct RequestTradeListener : public gcn::ActionListener
{
- void action(const std::string& eventId, gcn::Widget* widget)
+ void action(const gcn::ActionEvent &event)
{
- player_node->tradeReply(eventId == "yes");
+ player_node->tradeReply(event.getId() == "yes");
};
} listener;
}