summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/tabs/setup_input.cpp2
-rw-r--r--src/gui/widgets/widgetgroup.cpp6
-rw-r--r--src/gui/widgets/widgetgroup.h5
3 files changed, 2 insertions, 11 deletions
diff --git a/src/gui/widgets/tabs/setup_input.cpp b/src/gui/widgets/tabs/setup_input.cpp
index c13c3d1ce..22dcc9e18 100644
--- a/src/gui/widgets/tabs/setup_input.cpp
+++ b/src/gui/widgets/tabs/setup_input.cpp
@@ -108,7 +108,7 @@ Setup_Input::Setup_Input(const Widget2 *const widget) :
int k = 0;
while (pages[k])
{
- mTabs->addButton(gettext(pages[k]), pages[k]);
+ mTabs->addButton(gettext(pages[k]), pages[k], false);
k ++;
}
diff --git a/src/gui/widgets/widgetgroup.cpp b/src/gui/widgets/widgetgroup.cpp
index 3cddc625a..d54e3074a 100644
--- a/src/gui/widgets/widgetgroup.cpp
+++ b/src/gui/widgets/widgetgroup.cpp
@@ -38,12 +38,6 @@ WidgetGroup::WidgetGroup(const Widget2 *const widget,
addWidgetListener(this);
}
-void WidgetGroup::addButton(const std::string &tag,
- const bool pressed)
-{
- addButton(tag, tag, pressed);
-}
-
void WidgetGroup::addButton(const std::string &restrict text,
const std::string &restrict tag,
const bool pressed)
diff --git a/src/gui/widgets/widgetgroup.h b/src/gui/widgets/widgetgroup.h
index ef6c26629..1341688c5 100644
--- a/src/gui/widgets/widgetgroup.h
+++ b/src/gui/widgets/widgetgroup.h
@@ -35,12 +35,9 @@ class WidgetGroup notfinal : public Container,
public:
A_DELETE_COPY(WidgetGroup)
- virtual void addButton(const std::string &tag,
- const bool pressed = false);
-
virtual void addButton(const std::string &restrict text,
const std::string &restrict tag,
- const bool pressed = false);
+ const bool pressed);
void action(const ActionEvent &event) override;