diff options
Diffstat (limited to 'src/ClockTool.cc')
-rw-r--r-- | src/ClockTool.cc | 6 |
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() { | |||
95 | void ClockTool::update(FbTk::Subject *subj) { | 95 | void 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()); |