diff options
author | mathias <mathias> | 2006-10-27 06:57:43 (GMT) |
---|---|---|
committer | mathias <mathias> | 2006-10-27 06:57:43 (GMT) |
commit | 10082d821d6691f42a8d8ad6fa2e42e5b3f44edd (patch) | |
tree | 99c94a6105cf35612307e307be343eda2aea8baf /src/ToolbarTheme.cc | |
parent | 34b7f7ddfc3e914238fd0d30ff50c4f37c2a6dd8 (diff) | |
download | fluxbox-10082d821d6691f42a8d8ad6fa2e42e5b3f44edd.zip fluxbox-10082d821d6691f42a8d8ad6fa2e42e5b3f44edd.tar.bz2 |
cosmetic patch from slava semushin, removes whitespaces and
uses only those things from "namespace std" what we really need.
Diffstat (limited to 'src/ToolbarTheme.cc')
-rw-r--r-- | src/ToolbarTheme.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ToolbarTheme.cc b/src/ToolbarTheme.cc index c049453..4e1cabc 100644 --- a/src/ToolbarTheme.cc +++ b/src/ToolbarTheme.cc | |||
@@ -26,14 +26,16 @@ | |||
26 | #include "FbTk/App.hh" | 26 | #include "FbTk/App.hh" |
27 | 27 | ||
28 | #include <iostream> | 28 | #include <iostream> |
29 | using namespace std; | 29 | #include <string> |
30 | |||
31 | using std::string; | ||
30 | 32 | ||
31 | ToolbarTheme::ToolbarTheme(int screen_num): | 33 | ToolbarTheme::ToolbarTheme(int screen_num): |
32 | FbTk::Theme(screen_num), | 34 | FbTk::Theme(screen_num), |
33 | m_toolbar(*this, "toolbar", "Toolbar"), | 35 | m_toolbar(*this, "toolbar", "Toolbar"), |
34 | m_border(*this, "toolbar", "Toolbar"), | 36 | m_border(*this, "toolbar", "Toolbar"), |
35 | m_bevel_width(*this, "toolbar.bevelWidth", "Toolbar.BevelWidth"), | 37 | m_bevel_width(*this, "toolbar.bevelWidth", "Toolbar.BevelWidth"), |
36 | m_shape(*this, "toolbar.shaped", "Toolbar.Shaped"), | 38 | m_shape(*this, "toolbar.shaped", "Toolbar.Shaped"), |
37 | m_height(*this, "toolbar.height", "Toolbar.Height"), | 39 | m_height(*this, "toolbar.height", "Toolbar.Height"), |
38 | m_button_size(*this, "toolbar.button.size", "Toolbar.Button.Size") { | 40 | m_button_size(*this, "toolbar.button.size", "Toolbar.Button.Size") { |
39 | // set default value | 41 | // set default value |
@@ -48,9 +50,9 @@ ToolbarTheme::~ToolbarTheme() { | |||
48 | } | 50 | } |
49 | 51 | ||
50 | bool ToolbarTheme::fallback(FbTk::ThemeItem_base &item) { | 52 | bool ToolbarTheme::fallback(FbTk::ThemeItem_base &item) { |
51 | if (item.name().find(".borderWidth") != std::string::npos) { | 53 | if (item.name().find(".borderWidth") != string::npos) { |
52 | return FbTk::ThemeManager::instance().loadItem(item, "borderWidth", "BorderWidth"); | 54 | return FbTk::ThemeManager::instance().loadItem(item, "borderWidth", "BorderWidth"); |
53 | } else if (item.name().find(".borderColor") != std::string::npos) { | 55 | } else if (item.name().find(".borderColor") != string::npos) { |
54 | return FbTk::ThemeManager::instance().loadItem(item, "borderColor", "BorderColor"); | 56 | return FbTk::ThemeManager::instance().loadItem(item, "borderColor", "BorderColor"); |
55 | } else if (item.name() == "toolbar.bevelWidth") { | 57 | } else if (item.name() == "toolbar.bevelWidth") { |
56 | return FbTk::ThemeManager::instance().loadItem(item, "bevelWidth", "BevelWidth"); | 58 | return FbTk::ThemeManager::instance().loadItem(item, "bevelWidth", "BevelWidth"); |