diff options
author | Adam Schreiber <sadam@gnome.org> | 2009-05-09 13:13:08 (GMT) |
---|---|---|
committer | Adam Schreiber <sadam@gnome.org> | 2009-05-09 13:13:08 (GMT) |
commit | 6a3c864f0a34f7c8e384f2019bdccf6e3db96353 (patch) | |
tree | b7bfca8c3e8676d069d94ac76986d853484c4dc5 | |
parent | 89c895d3c5ac8216437b067924e876b9779a1f5c (diff) |
rect.x and rect.y are given in window based coordinates when
getting the context's allocation.
-rw-r--r-- | deci.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -45,8 +45,8 @@ class DrawFractionalArea(gtk.DrawingArea): width = min(rect.width, rect.height) - 10 - x = int(rect.x + round((rect.width - width)/2)) - y = int(rect.y + round((rect.height - width)/2)) + x = int(round((rect.width - width)/2)) + y = int(round((rect.height - width)/2)) context.rectangle(gtk.gdk.Rectangle(x, y, |