summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/tabstrip.cpp5
-rw-r--r--src/gui/widgets/tabstrip.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/widgets/tabstrip.cpp b/src/gui/widgets/tabstrip.cpp
index 6dcf02008..6b3f42fe9 100644
--- a/src/gui/widgets/tabstrip.cpp
+++ b/src/gui/widgets/tabstrip.cpp
@@ -32,6 +32,11 @@ TabStrip::TabStrip(std::string group, int height, int spacing) :
{
}
+TabStrip::TabStrip(int height, int spacing) :
+ WidgetGroup("", height, spacing)
+{
+}
+
gcn::Widget *TabStrip::createWidget(std::string text)
{
Button *widget = new Button();
diff --git a/src/gui/widgets/tabstrip.h b/src/gui/widgets/tabstrip.h
index 588833606..078845b39 100644
--- a/src/gui/widgets/tabstrip.h
+++ b/src/gui/widgets/tabstrip.h
@@ -29,7 +29,9 @@
class TabStrip : public WidgetGroup
{
public:
- TabStrip(std::string group, int height, int spacing);
+ TabStrip(std::string group, int height, int spacing = 0);
+
+ TabStrip(int height, int spacing = 0);
gcn::Widget *createWidget(std::string name);