diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-15 12:19:40 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-15 12:19:40 (GMT) |
commit | 1056474e1d2b6a437051a9ef6eb450df599998c8 (patch) | |
tree | aa90f542c27c10b4cf684108c2d20202f1cadce1 | |
parent | 215939d6edcbd88aeb00745ec14f526f037ddb20 (diff) | |
download | fluxbox-1056474e1d2b6a437051a9ef6eb450df599998c8.zip fluxbox-1056474e1d2b6a437051a9ef6eb450df599998c8.tar.bz2 |
fix compilation
-rw-r--r-- | src/FbWinFrame.cc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc index b9f3302..36d2942 100644 --- a/src/FbWinFrame.cc +++ b/src/FbWinFrame.cc | |||
@@ -28,6 +28,7 @@ | |||
28 | #include "FbTk/Compose.hh" | 28 | #include "FbTk/Compose.hh" |
29 | #include "FbTk/Transparent.hh" | 29 | #include "FbTk/Transparent.hh" |
30 | #include "FbTk/CompareEqual.hh" | 30 | #include "FbTk/CompareEqual.hh" |
31 | #include "FbTk/StringUtil.hh" | ||
31 | #include "FbTk/TextUtils.hh" | 32 | #include "FbTk/TextUtils.hh" |
32 | 33 | ||
33 | #include "FbWinFrameTheme.hh" | 34 | #include "FbWinFrameTheme.hh" |
@@ -1416,17 +1417,18 @@ void FbWinFrame::applyTabContainer() { | |||
1416 | } | 1417 | } |
1417 | 1418 | ||
1418 | int FbWinFrame::getDecoMaskFromString(const string &str_label) { | 1419 | int FbWinFrame::getDecoMaskFromString(const string &str_label) { |
1419 | if (strcasecmp(str_label.c_str(), "NONE") == 0) | 1420 | string label = FbTk::StringUtil::toLower(str_label); |
1421 | if (label == "none") | ||
1420 | return DECOR_NONE; | 1422 | return DECOR_NONE; |
1421 | if (strcasecmp(str_label.c_str(), "NORMAL") == 0) | 1423 | if (label == "normal") |
1422 | return DECOR_NORMAL; | 1424 | return DECOR_NORMAL; |
1423 | if (strcasecmp(str_label.c_str(), "TINY") == 0) | 1425 | if (label == "tiny") |
1424 | return DECOR_TINY; | 1426 | return DECOR_TINY; |
1425 | if (strcasecmp(str_label.c_str(), "TOOL") == 0) | 1427 | if (label == "tool") |
1426 | return DECOR_TOOL; | 1428 | return DECOR_TOOL; |
1427 | if (strcasecmp(str_label.c_str(), "BORDER") == 0) | 1429 | if (label == "border") |
1428 | return DECOR_BORDER; | 1430 | return DECOR_BORDER; |
1429 | if (strcasecmp(str_label.c_str(), "TAB") == 0) | 1431 | if (label == "tab") |
1430 | return DECOR_TAB; | 1432 | return DECOR_TAB; |
1431 | int mask = -1; | 1433 | int mask = -1; |
1432 | if (str_label.size() > 1 && str_label[0] == '0' && str_label[1] == 'x' || | 1434 | if (str_label.size() > 1 && str_label[0] == '0' && str_label[1] == 'x' || |