all repos — fluxbox @ f95868bfc111e39f4a2d913c10a80c3473bda497

custom fork of the fluxbox windowmanager

minor offset fix
fluxgen fluxgen
commit

f95868bfc111e39f4a2d913c10a80c3473bda497

parent

730872b1dfdaee70229559298d8415c23f357536

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/ClockTool.ccsrc/ClockTool.cc

@@ -20,7 +20,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: ClockTool.cc,v 1.3 2003/08/13 10:08:18 fluxgen Exp $ +// $Id: ClockTool.cc,v 1.4 2003/08/15 14:00:20 fluxgen Exp $ #include "ClockTool.hh"

@@ -95,9 +95,9 @@

void ClockTool::update(FbTk::Subject *subj) { updateTime(); - // + 4 to make the entire text fit inside + // + 2 to make the entire text fit inside std::string text; - for (size_t i=0; i<m_button.text().size() + 4; ++i) + for (size_t i=0; i<m_button.text().size() + 2; ++i) text += '0'; resize(m_theme.font().textWidth(text.c_str(), text.size()), m_button.height());