Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Schreiber <sadam@gnome.org>2009-05-09 13:13:08 (GMT)
committer Adam Schreiber <sadam@gnome.org>2009-05-09 13:13:08 (GMT)
commit6a3c864f0a34f7c8e384f2019bdccf6e3db96353 (patch)
treeb7bfca8c3e8676d069d94ac76986d853484c4dc5
parent89c895d3c5ac8216437b067924e876b9779a1f5c (diff)
Fix centering of fractional areaHEADmaster
rect.x and rect.y are given in window based coordinates when getting the context's allocation.
-rw-r--r--deci.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/deci.py b/deci.py
index 011bac9..245831c 100644
--- a/deci.py
+++ b/deci.py
@@ -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,