diff options
author | David Athay <ko2fan@gmail.com> | 2008-04-15 15:42:04 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-04-15 15:42:04 +0000 |
commit | e2e4ceb9fa8a72ad94853f74724676fff82b15c0 (patch) | |
tree | 5336955366e76266f92dbef4da6e632b84714cdf /src/gui/widgets/tabbedarea.cpp | |
parent | d4cc1ded15daa0677e710013640c90b1aadd6bd0 (diff) | |
download | mana-client-e2e4ceb9fa8a72ad94853f74724676fff82b15c0.tar.gz mana-client-e2e4ceb9fa8a72ad94853f74724676fff82b15c0.tar.bz2 mana-client-e2e4ceb9fa8a72ad94853f74724676fff82b15c0.tar.xz mana-client-e2e4ceb9fa8a72ad94853f74724676fff82b15c0.zip |
Added online status of guild members
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r-- | src/gui/widgets/tabbedarea.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp index 6ba27622..20c100e5 100644 --- a/src/gui/widgets/tabbedarea.cpp +++ b/src/gui/widgets/tabbedarea.cpp @@ -56,7 +56,6 @@ void TabbedArea::draw(gcn::Graphics *graphics) return; } - std::vector< std::pair<gcn::Tab*, gcn::Widget*> >::iterator itr; unsigned int i; for (i = 0; i < mTabs.size(); i++) { @@ -71,3 +70,17 @@ void TabbedArea::draw(gcn::Graphics *graphics) gcn::TabbedArea::draw(graphics); } + +gcn::Widget* TabbedArea::getWidget(const std::string &name) +{ + unsigned int i; + for (i = 0; i < mTabs.size(); i++) + { + if (mTabs[i].first->getCaption() == name) + { + return mTabs[i].second; + } + } + + return NULL; +} |