diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2012-03-12 20:02:06 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-03-12 20:02:06 (GMT) |
commit | 605132efabf8bf88014145c924ae35d6d862fe52 (patch) | |
tree | 7265aacb30b1d8d79cacd42295404811a7cdcba7 /persistencia.py | |
parent | 2bd3ad79062647d225c1d9bcf9c6f8ef137fad9c (diff) |
Add a title rectangle globe
The title globe is added when the activity starts with a empty page,
and can't be deleted.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'persistencia.py')
-rw-r--r-- | persistencia.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/persistencia.py b/persistencia.py index cb41487..092e913 100644 --- a/persistencia.py +++ b/persistencia.py @@ -43,6 +43,7 @@ class Persistence: boxData['globes'] = [] for globo in box.globos: globoData = {} + globoData['title_globe'] = (globo == box.title_globe) print 'Grabando', globo.globe_type globoData['globe_type'] = globo.globe_type globoData['radio'] = globo.radio @@ -200,4 +201,7 @@ class Persistence: globo.texto.mostrar_cursor = globoData['text_show_cursor'] box.globos.append(globo) + if globoData['title_globe']: + box.title_globe = globo + box.queue_draw() |