summaryrefslogtreecommitdiff
path: root/src/gui/itemcontainer.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-07 15:23:07 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-07 15:23:07 +0000
commit92950d2f309550e21b33d851ef9bbf7906ce5e50 (patch)
tree18a6d2539c6e004e52cbebb1e61d8f8f0344f9a0 /src/gui/itemcontainer.cpp
parent3f3ba5f3e18b0a5093e7275aee574ecd6f293ec6 (diff)
downloadmana-client-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.gz
mana-client-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.bz2
mana-client-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.xz
mana-client-92950d2f309550e21b33d851ef9bbf7906ce5e50.zip
Upgraded to Guichan 0.8.0 (merge from guichan-0.8 branch, except for
gcn::TabbedArea usage)
Diffstat (limited to 'src/gui/itemcontainer.cpp')
-rw-r--r--src/gui/itemcontainer.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp
index 74d1abd1..c73d25f3 100644
--- a/src/gui/itemcontainer.cpp
+++ b/src/gui/itemcontainer.cpp
@@ -24,8 +24,7 @@
#include "itemcontainer.h"
#include <guichan/mouseinput.hpp>
-
-#include "selectionlistener.h"
+#include <guichan/selectionlistener.hpp>
#include "../graphics.h"
#include "../inventory.h"
@@ -167,20 +166,20 @@ ItemContainer::setSelectedItem(Item *item)
if (mSelectedItem != item)
{
mSelectedItem = item;
- fireSelectionChangedEvent();
+ distributeValueChangedEvent();
}
}
void
-ItemContainer::fireSelectionChangedEvent()
+ItemContainer::distributeValueChangedEvent()
{
- SelectionEvent event(this);
- SelectionListeners::iterator i_end = mListeners.end();
- SelectionListeners::iterator i;
+ gcn::SelectionEvent event(this);
+ std::list<gcn::SelectionListener*>::iterator i_end = mListeners.end();
+ std::list<gcn::SelectionListener*>::iterator i;
for (i = mListeners.begin(); i != i_end; ++i)
{
- (*i)->selectionChanged(event);
+ (*i)->valueChanged(event);
}
}