aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceNameTool.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2006-05-07 10:08:25 (GMT)
committersimonb <simonb>2006-05-07 10:08:25 (GMT)
commitfaf043bef92338fe976e639e94d309764065b8b7 (patch)
tree6554ea89ff6064465bd605da8f640ee43212b356 /src/WorkspaceNameTool.cc
parentac098b4d0f0640b2997ff674a5c1b3447b6ba09a (diff)
downloadfluxbox-faf043bef92338fe976e639e94d309764065b8b7.zip
fluxbox-faf043bef92338fe976e639e94d309764065b8b7.tar.bz2
more utf8 changes, notably window titles
Diffstat (limited to 'src/WorkspaceNameTool.cc')
-rw-r--r--src/WorkspaceNameTool.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WorkspaceNameTool.cc b/src/WorkspaceNameTool.cc
index 99d6854..3f66298 100644
--- a/src/WorkspaceNameTool.cc
+++ b/src/WorkspaceNameTool.cc
@@ -90,7 +90,7 @@ unsigned int WorkspaceNameTool::width() const {
90 BScreen::Workspaces::const_iterator it; 90 BScreen::Workspaces::const_iterator it;
91 for (it = workspaces.begin(); it != workspaces.end(); it++) { 91 for (it = workspaces.begin(); it != workspaces.end(); it++) {
92 const std::string &name = (*it)->name(); 92 const std::string &name = (*it)->name();
93 max_size = std::max(m_theme.font().textWidth(name.c_str(), name.size()), 93 max_size = std::max(m_theme.font().textWidth(name, name.size()),
94 max_size); 94 max_size);
95 } 95 }
96 // so align text dont cut the last character 96 // so align text dont cut the last character
@@ -108,7 +108,7 @@ unsigned int WorkspaceNameTool::height() const {
108 BScreen::Workspaces::const_iterator it; 108 BScreen::Workspaces::const_iterator it;
109 for (it = workspaces.begin(); it != workspaces.end(); it++) { 109 for (it = workspaces.begin(); it != workspaces.end(); it++) {
110 const std::string &name = (*it)->name(); 110 const std::string &name = (*it)->name();
111 max_size = std::max(m_theme.font().textWidth(name.c_str(), name.size()), 111 max_size = std::max(m_theme.font().textWidth(name, name.size()),
112 max_size); 112 max_size);
113 } 113 }
114 // so align text dont cut the last character 114 // so align text dont cut the last character