summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/tabbedarea.cpp4
-rw-r--r--src/gui/widgets/tabbedarea.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp
index 721e0b653..5044d2758 100644
--- a/src/gui/widgets/tabbedarea.cpp
+++ b/src/gui/widgets/tabbedarea.cpp
@@ -68,7 +68,10 @@ TabbedArea::TabbedArea(const Widget2 *const widget) :
mArrowButton[0] = new Button(this, "<", "shift_left", this);
mArrowButton[1] = new Button(this, ">", "shift_right", this);
+}
+void TabbedArea::postInit()
+{
widgetResized(gcn::Event(nullptr));
}
@@ -77,6 +80,7 @@ TabbedArea::~TabbedArea()
if (gui)
gui->removeDragged(this);
+ // +++ virtual method calls
remove(mTabContainer);
remove(mWidgetContainer);
diff --git a/src/gui/widgets/tabbedarea.h b/src/gui/widgets/tabbedarea.h
index 6b20d59f4..115d41095 100644
--- a/src/gui/widgets/tabbedarea.h
+++ b/src/gui/widgets/tabbedarea.h
@@ -55,6 +55,8 @@ class TabbedArea final : public Widget2,
~TabbedArea();
+ void postInit();
+
/**
* Draw the tabbed area.
*/