aboutsummaryrefslogtreecommitdiff
path: root/src/ToolbarTheme.cc
diff options
context:
space:
mode:
authormathias <mathias>2006-10-27 06:57:43 (GMT)
committermathias <mathias>2006-10-27 06:57:43 (GMT)
commit10082d821d6691f42a8d8ad6fa2e42e5b3f44edd (patch)
tree99c94a6105cf35612307e307be343eda2aea8baf /src/ToolbarTheme.cc
parent34b7f7ddfc3e914238fd0d30ff50c4f37c2a6dd8 (diff)
downloadfluxbox_pavel-10082d821d6691f42a8d8ad6fa2e42e5b3f44edd.zip
fluxbox_pavel-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.cc10
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>
29using namespace std; 29#include <string>
30
31using std::string;
30 32
31ToolbarTheme::ToolbarTheme(int screen_num): 33ToolbarTheme::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
50bool ToolbarTheme::fallback(FbTk::ThemeItem_base &item) { 52bool 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");