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@sugarlabs.org>2010-12-03 18:36:43 (GMT)
committer Gonzalo Odiard <godiard@sugarlabs.org>2010-12-03 18:36:43 (GMT)
commit4676bf91fcb79a602110f1fe6c6a5759eab3502f (patch)
tree7a8f7f77e770362930f8c0b60048480069fda51b /Desenho.py
parentbcc5e519a708de0bef82fbbee7def5c557a376f5 (diff)
Implement change the size, font and attributes in the Text Tool. - OLPC #2501 and OLPC #3707
Diffstat (limited to 'Desenho.py')
-rw-r--r--Desenho.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Desenho.py b/Desenho.py
index ec464af..00e8428 100644
--- a/Desenho.py
+++ b/Desenho.py
@@ -568,9 +568,6 @@ class Desenho:
if not widget.text_in_progress:
widget.text_in_progress = True
- #widget.janela.fixed.move(widget.janela.textview,
- # int(event.x)+200, int(event.y)+100)
- # Area size has changed...
widget.janela.fixed.move(widget.janela.textview,
int(event.x), int(event.y))
widget.janela.textview.show()
@@ -588,8 +585,7 @@ class Desenho:
start, end = buf.get_bounds()
text = buf.get_text(start, end)
- layout = widget.create_pango_layout(text)
- #layout.set_font_description(widget.font)
+ layout = widget.janela.textview.create_pango_layout(text)
widget.pixmap.draw_layout(widget.gc,
widget.oldx, widget.oldy, layout)