Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tutorius/overlayer.py
diff options
context:
space:
mode:
authorSimon Poirier <simpoir@gmail.com>2009-12-08 04:04:21 (GMT)
committer Simon Poirier <simpoir@gmail.com>2009-12-08 04:04:21 (GMT)
commit64836f57dd3ab59f03ee7c5e375caff4019791f0 (patch)
tree59d2affa3d56a2d94e9b023da401e37a1cc8b97f /tutorius/overlayer.py
parent034e36d4983da0c2d44c56d4efd9af922b2cab4e (diff)
esthetic fixes on drag.
Signed-off-by: Simon Poirier <simpoir@gmail.com>
Diffstat (limited to 'tutorius/overlayer.py')
-rw-r--r--tutorius/overlayer.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tutorius/overlayer.py b/tutorius/overlayer.py
index 96e9acf..5eb0f49 100644
--- a/tutorius/overlayer.py
+++ b/tutorius/overlayer.py
@@ -256,6 +256,13 @@ class TextBubble(gtk.Widget):
yradius = height/2
width -= self.line_width
height -= self.line_width
+
+ # translate by line width to because line is drawn both side of the
+ # coordinates. here what a line stroke looks like:
+ # / """""""""" }out of shape
+ # width | ---------- <-exact coord
+ # \ .......... }in shape
+ context.translate(self.line_width/2, self.line_width/2)
#
# TODO fetch speaker coordinates
@@ -428,6 +435,8 @@ class TextBubbleWImg(gtk.Widget):
yradius = height/2
width -= self.line_width
height -= self.line_width
+
+ context.translate(self.line_width/2, self.line_width/2)
#
# TODO fetch speaker coordinates