summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabbedarea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r--src/gui/widgets/tabbedarea.cpp15
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;
+}