aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-08-15 14:00:20 (GMT)
committerfluxgen <fluxgen>2003-08-15 14:00:20 (GMT)
commitf95868bfc111e39f4a2d913c10a80c3473bda497 (patch)
tree4110c6427737c035823abc69c7e63c0a730a96a5 /src
parent730872b1dfdaee70229559298d8415c23f357536 (diff)
downloadfluxbox-f95868bfc111e39f4a2d913c10a80c3473bda497.zip
fluxbox-f95868bfc111e39f4a2d913c10a80c3473bda497.tar.bz2
minor offset fix
Diffstat (limited to 'src')
-rw-r--r--src/ClockTool.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ClockTool.cc b/src/ClockTool.cc
index 57e6505..becab8a 100644
--- a/src/ClockTool.cc
+++ b/src/ClockTool.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: ClockTool.cc,v 1.3 2003/08/13 10:08:18 fluxgen Exp $ 23// $Id: ClockTool.cc,v 1.4 2003/08/15 14:00:20 fluxgen Exp $
24 24
25#include "ClockTool.hh" 25#include "ClockTool.hh"
26 26
@@ -95,9 +95,9 @@ void ClockTool::hide() {
95void ClockTool::update(FbTk::Subject *subj) { 95void ClockTool::update(FbTk::Subject *subj) {
96 updateTime(); 96 updateTime();
97 97
98 // + 4 to make the entire text fit inside 98 // + 2 to make the entire text fit inside
99 std::string text; 99 std::string text;
100 for (size_t i=0; i<m_button.text().size() + 4; ++i) 100 for (size_t i=0; i<m_button.text().size() + 2; ++i)
101 text += '0'; 101 text += '0';
102 102
103 resize(m_theme.font().textWidth(text.c_str(), text.size()), m_button.height()); 103 resize(m_theme.font().textWidth(text.c_str(), text.size()), m_button.height());