diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-01-11 00:03:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-01-11 00:51:29 +0300 |
commit | 05c3c78e18253d2a9faaebea16ee4ff0474db446 (patch) | |
tree | c043bcc95a2fa917cb4aedf0adb04d33e039a694 /src/gui/widgets/tabbedarea.cpp | |
parent | bb4b31241a30c16eba2506fff89b4057e4a7c6ee (diff) | |
download | mv-05c3c78e18253d2a9faaebea16ee4ff0474db446.tar.gz mv-05c3c78e18253d2a9faaebea16ee4ff0474db446.tar.bz2 mv-05c3c78e18253d2a9faaebea16ee4ff0474db446.tar.xz mv-05c3c78e18253d2a9faaebea16ee4ff0474db446.zip |
Fix compliation under gcc 4.7 snapshot.
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r-- | src/gui/widgets/tabbedarea.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp index e7dda5067..9702d74f9 100644 --- a/src/gui/widgets/tabbedarea.cpp +++ b/src/gui/widgets/tabbedarea.cpp @@ -197,7 +197,7 @@ void TabbedArea::removeTab(gcn::Tab *tab) } else { - setSelectedTab(tabIndexToBeSelected); + setSelectedTabByPos(tabIndexToBeSelected); } adjustSize(); @@ -241,7 +241,7 @@ void TabbedArea::setSelectedTab(gcn::Tab *tab) widgetResized(nullptr); } -void TabbedArea::setSelectedTab(const std::string &name) +void TabbedArea::setSelectedTabByName(const std::string &name) { for (TabContainer::const_iterator itr = mTabs.begin(), itr_end = mTabs.end(); itr != itr_end; ++itr) @@ -254,6 +254,11 @@ void TabbedArea::setSelectedTab(const std::string &name) } } +void TabbedArea::setSelectedTabByPos(int tab) +{ + gcn::TabbedArea::setSelectedTab(tab); +} + void TabbedArea::widgetResized(const gcn::Event &event A_UNUSED) { int width = getWidth() - 2 * getFrameSize() @@ -460,7 +465,6 @@ void TabbedArea::removeAll() if (getSelectedTabIndex() != -1) { setSelectedTab(static_cast<unsigned int>(0)); - } while (getNumberOfTabs() > 0) { |