From 26722ad5c0a3d4a55e6521f503a8534b047a1770 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 13 Aug 2003 10:08:18 +0000 Subject: using border theme --- src/ClockTool.cc | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/ClockTool.cc b/src/ClockTool.cc index 84ff7b3..57e6505 100644 --- a/src/ClockTool.cc +++ b/src/ClockTool.cc @@ -20,7 +20,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: ClockTool.cc,v 1.2 2003/08/11 20:29:30 fluxgen Exp $ +// $Id: ClockTool.cc,v 1.3 2003/08/13 10:08:18 fluxgen Exp $ #include "ClockTool.hh" @@ -94,8 +94,17 @@ void ClockTool::hide() { void ClockTool::update(FbTk::Subject *subj) { updateTime(); - // + 3 to make the entire text fit inside - resize(m_button.textWidth() + 3, m_button.height()); + + // + 4 to make the entire text fit inside + std::string text; + for (size_t i=0; i