Fix: don't forgot button border width when wrapping text.

Portnov [2008-08-24 12:24:38]
Fix: don't forgot button border width when wrapping text.
Filename
qwerty.py
diff --git a/qwerty.py b/qwerty.py
index b887612..9c967ef 100755
--- a/qwerty.py
+++ b/qwerty.py
@@ -92,7 +92,7 @@ class SuperButton(gtk.DrawingArea):
                 s = s + ' ' + word
             else:
                 s = word
-            if size(s) >= self.width - LABEL_LEFT - PADDING:
+            if size(s) >= self.width - LABEL_LEFT - PADDING-2:
                 lines.append(old)
                 s = word
             else:
ViewGit