Bugfix: when wrapping description text, don't forgot PADDING.

portnov [2008-08-24 12:18:21]
Bugfix: when wrapping description text, don't forgot PADDING.
Filename
qwerty.py
diff --git a/qwerty.py b/qwerty.py
index 4dd9738..05bca78 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:
+            if size(s) >= self.width - LABEL_LEFT - PADDING:
                 lines.append(old)
                 s = word
             else:
ViewGit