diff options
author | Alexandre 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) |
commit | 023e8784a6b67399ee4f383e9310b9677df7f1ef (patch) | |
tree | 83807d8fb66cce6f5f454a53655e690e2442a6f1 /Area.py | |
parent | 2242ea0a5b437842276cba36b1e30a7668d5b661 (diff) |
Bug #2147 fixed.
description: Text boxes get stuck in canvas on Oficina.
Diffstat (limited to 'Area.py')
-rw-r--r-- | Area.py | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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) |