Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Desenho.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2011-06-16 14:39:43 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2011-06-16 14:39:43 (GMT)
commit07483c0b16feb3038a93bfa9e109079bd848f3cb (patch)
tree0f342c70df5bb0c0fb4ff34ac9a9294b0a9af076 /Desenho.py
parent1aba0927adaa4ed5f6e9e74f30171b6df2c79d7b (diff)
Center image in the canvas - SL #2896
Signed-off-by: manuel quiƱones <manuel.por.aca@gmail.com> Acked-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'Desenho.py')
-rw-r--r--Desenho.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Desenho.py b/Desenho.py
index 1d46d4a..6beeb64 100644
--- a/Desenho.py
+++ b/Desenho.py
@@ -589,8 +589,8 @@ class Desenho:
if not widget.text_in_progress:
widget.text_in_progress = True
- widget.janela.fixed.move(widget.janela.textview,
- int(event.x), int(event.y))
+ x, y = int(event.x), int(event.y)
+ widget.janela.move_textview(x, y)
widget.janela.textview.show()
widget.janela.textview.grab_focus()