summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabbedarea.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-08-10 20:53:07 -0600
committerJared Adams <jaxad0127@gmail.com>2009-08-10 20:53:07 -0600
commit3a23f6a771142b6dc3df361b88621eec31d4e40f (patch)
tree7364a138e37b96ced7363a1be010fea70b280e3e /src/gui/widgets/tabbedarea.cpp
parent843fbb7fac79d1e0340fe489e8e78e4a41b3da43 (diff)
downloadmana-3a23f6a771142b6dc3df361b88621eec31d4e40f.tar.gz
mana-3a23f6a771142b6dc3df361b88621eec31d4e40f.tar.bz2
mana-3a23f6a771142b6dc3df361b88621eec31d4e40f.tar.xz
mana-3a23f6a771142b6dc3df361b88621eec31d4e40f.zip
Remove layout code from ChatWindow
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r--src/gui/widgets/tabbedarea.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp
index 2de812ed..681f99ec 100644
--- a/src/gui/widgets/tabbedarea.cpp
+++ b/src/gui/widgets/tabbedarea.cpp
@@ -80,6 +80,14 @@ gcn::Widget *TabbedArea::getCurrentWidget()
return NULL;
}
+void TabbedArea::addTab(gcn::Tab* tab, gcn::Widget* widget)
+{
+ int width = getWidth() - 2 * getFrameSize();
+ int height = getHeight() - 2 * getFrameSize() - mTabContainer->getHeight();
+ widget->setSize(width, height);
+ gcn::TabbedArea::addTab(tab, widget);
+}
+
void TabbedArea::addTab(const std::string &caption, gcn::Widget *widget)
{
Tab *tab = new Tab;