summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tab.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-16 22:32:39 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-16 22:53:10 +0200
commit18cba14c0f80f6ae7db883ce4d6abbf24728f07d (patch)
treefe67a7d059647d23d7285f90fb5b8aca076311de /src/gui/widgets/tab.cpp
parent255c491375005abb1d2de22fa5aa1a821ac3a4f6 (diff)
downloadmana-18cba14c0f80f6ae7db883ce4d6abbf24728f07d.tar.gz
mana-18cba14c0f80f6ae7db883ce4d6abbf24728f07d.tar.bz2
mana-18cba14c0f80f6ae7db883ce4d6abbf24728f07d.tar.xz
mana-18cba14c0f80f6ae7db883ce4d6abbf24728f07d.zip
Some more cleanups
Nothing in particular worth mentioning.
Diffstat (limited to 'src/gui/widgets/tab.cpp')
-rw-r--r--src/gui/widgets/tab.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/widgets/tab.cpp b/src/gui/widgets/tab.cpp
index 456735c4..071be06a 100644
--- a/src/gui/widgets/tab.cpp
+++ b/src/gui/widgets/tab.cpp
@@ -159,10 +159,8 @@ void Tab::draw(gcn::Graphics *graphics)
drawChildren(graphics);
}
-void Tab::setTabColor(gcn::Color color)
+void Tab::setTabColor(const gcn::Color &color)
{
- if (color == NULL)
- color = guiPalette->getColor(Palette::TEXT);
mTabColor = color;
}