From d59cd9111c1e86b224ea62cc975c49b157e2b3cf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 19 Oct 2012 23:56:04 +0300 Subject: Add to some controls palette inheritance from other controls. --- src/gui/widgets/tabbedarea.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/tabbedarea.cpp') diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp index ab48113bd..a25a4e422 100644 --- a/src/gui/widgets/tabbedarea.cpp +++ b/src/gui/widgets/tabbedarea.cpp @@ -34,8 +34,8 @@ #include "debug.h" -TabbedArea::TabbedArea() : - Widget2(), +TabbedArea::TabbedArea(const Widget2 *const widget) : + Widget2(widget), gcn::ActionListener(), gcn::BasicContainer(), gcn::KeyListener(), @@ -189,7 +189,7 @@ void TabbedArea::addTab(Tab* tab, gcn::Widget* widget) void TabbedArea::addTab(const std::string &caption, gcn::Widget *const widget) { - Tab *const tab = new Tab; + Tab *const tab = new Tab(this); tab->setCaption(caption); mTabsToDelete.push_back(tab); -- cgit v1.2.3-60-g2f50