Author: reinhard
Date: 2006-10-30 10:05:33 -0600 (Mon, 30 Oct 2006)
New Revision: 8953
Modified:
trunk/gnue-forms/src/uidrivers/gtk2/UIdriver.py
Log:
(gtk2) add 25% to average character width instead of 10%.
Modified: trunk/gnue-forms/src/uidrivers/gtk2/UIdriver.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/gtk2/UIdriver.py 2006-10-30 14:51:47 UTC
(rev 8952)
+++ trunk/gnue-forms/src/uidrivers/gtk2/UIdriver.py 2006-10-30 16:05:33 UTC
(rev 8953)
@@ -222,8 +222,8 @@
width = pango.PIXELS (metrics.get_approximate_char_width ())
height = pango.PIXELS (metrics.get_ascent () + metrics.get_descent ())
- # add ten percent to the average character width
- width = int (math.ceil (width * 1.1))
+ # add 25 percent to the average character width
+ width = int (math.ceil (width * 1.25))
finally:
label.destroy ()
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue