Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Area.py
diff options
context:
space:
mode:
authorAlexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com>2007-08-24 18:02:18 (GMT)
committer Alexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com>2007-08-24 18:02:18 (GMT)
commit023e8784a6b67399ee4f383e9310b9677df7f1ef (patch)
tree83807d8fb66cce6f5f454a53655e690e2442a6f1 /Area.py
parent2242ea0a5b437842276cba36b1e30a7668d5b661 (diff)
Bug #2147 fixed.
description: Text boxes get stuck in canvas on Oficina.
Diffstat (limited to 'Area.py')
-rw-r--r--Area.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/Area.py b/Area.py
index b9b0131..1f1984a 100644
--- a/Area.py
+++ b/Area.py
@@ -252,10 +252,16 @@ class Area(gtk.DrawingArea):
width, height = self.window.get_size()
# text
coords = int(event.x), int(event.y)
- if self.tool == 'text':
+ if self.tool is 'text':
self.d.text(widget,event)
-# else:
-# self.janela._textview.hide()
+
+ # This fixes a bug that made the text viewer get stuck in the canvas
+ elif self.estadoTexto is 1:
+ text = self.janela._textview.get_text()
+ if text is not None:
+ self.d.text(widget,event)
+ self.estadoTexto = 0
+ self.janela._textview.hide()
if not self.selmove or self.tool != 'marquee-rectangular':
self.oldx = int(event.x)