diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-15 23:21:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-15 23:52:24 +0300 |
commit | 54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3 (patch) | |
tree | 4bcee0ad9757bc328bae9c0435a3a1e8d85f1676 /src/gui/gui.cpp | |
parent | 62a466e53cbb49c5338f8ea7f96b46e00d3b0bc4 (diff) | |
download | manaverse-54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3.tar.gz manaverse-54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3.tar.bz2 manaverse-54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3.tar.xz manaverse-54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3.zip |
Allow hide popup list if focus lost.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 10 |
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); + } +} |