Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/OficinaActivity.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@sugarlabs.org>2010-10-21 20:31:30 (GMT)
committer Gonzalo Odiard <godiard@sugarlabs.org>2010-10-21 20:31:30 (GMT)
commitc8ddf32147fb582850f64e8da87cc3d4a2f4193d (patch)
treede12e3761b24b47846ee08d8a1d6d14288d751a8 /OficinaActivity.py
parentb70f9f14b569660ae358f6e2d91aee17852f3052 (diff)
Changes made to save the last added text item. (OLPC #5917)
Condition added to save the text when added at last in the paint activity so that it does not disappear. Text disappeared when added at last in the paint activity. Co-authored-by: Anubhav Aggarwal<anubhav@seeta.in>, Ishan Bansal <ishan@seeta.in>
Diffstat (limited to 'OficinaActivity.py')
-rw-r--r--OficinaActivity.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/OficinaActivity.py b/OficinaActivity.py
index 860d3fe..ec8910d 100644
--- a/OficinaActivity.py
+++ b/OficinaActivity.py
@@ -169,6 +169,8 @@ class OficinaActivity(activity.Activity):
width, height = self.area.get_size_request()
logging.debug('writting %s w=%s h=%s' % (file_path, width, height))
+ if self.area.text_in_progress:
+ self.area.d.text(self.area, event=None)
self.area.getout()
pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8,