Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/persistencia.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2013-10-22 21:13:38 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2013-10-22 21:13:38 (GMT)
commitfb0a16de6b993a08ed794dea27cda499b462db83 (patch)
treee9dabf2dcf72adab256be53849dec5a11a09d76e /persistencia.py
parent350a84f05686f08868a9e8907b4df8145960c9c2 (diff)
Copy textview window instead of use pango cairo text toy api - SL #4607
Cairo toy text api have problems, and can't render complex sripts. Changed the way we draw the text in not edition mode to solve this issue. This patch also move the textview, from be in the Box, to the globe, then now we have one textview for ewvery globe instead of one by box. This simplify tghe code. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'persistencia.py')
-rw-r--r--persistencia.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/persistencia.py b/persistencia.py
index 5681568..11034dc 100644
--- a/persistencia.py
+++ b/persistencia.py
@@ -1,5 +1,8 @@
import os
import simplejson
+
+from gi.repository import GObject
+
import globos
from sugar3.activity import activity
import zipfile
@@ -167,12 +170,10 @@ class Persistence:
if (tipo_globo != 'IMAGE'):
globo.texto.ancho = globoData['text_width']
globo.texto.alto = globoData['text_height']
- globo.texto.text = globoData['text_text']
globo.texto.color = globoData['text_color']
-
globo.texto.set_font_description(
globoData['text_font_description'])
-
+ globo.texto.set_text(globoData['text_text'])
box.globos.append(globo)
if globoData['title_globe']: