summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-15 23:21:27 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-15 23:52:24 +0300
commit54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3 (patch)
tree4bcee0ad9757bc328bae9c0435a3a1e8d85f1676 /src/gui/gui.cpp
parent62a466e53cbb49c5338f8ea7f96b46e00d3b0bc4 (diff)
downloadmanaplus-54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3.tar.gz
manaplus-54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3.tar.bz2
manaplus-54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3.tar.xz
manaplus-54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3.zip
Allow hide popup list if focus lost.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 7b2da4bff..0c703d5ef 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -706,3 +706,13 @@ void Gui::removeGlobalFocusListener(gcn::FocusListener* focusListener)
{
mFocusListeners.remove(focusListener);
}
+
+void Gui::distributeGlobalFocusGainedEvent(const gcn::Event &focusEvent)
+{
+ for (FocusListenerIterator iter = mFocusListeners.begin();
+ iter != mFocusListeners.end();
+ ++ iter)
+ {
+ (*iter)->focusGained(focusEvent);
+ }
+}