Suggested change for Colors! to make quitting the activity work

Dan Krejsa dan.krejsa at alamedanet.net
Sun Sep 28 15:02:17 EDT 2008


Hi,

Here's a patch that seems to make quitting the Colors! (version 4)
activity work on candidate-765.  I don't know how this change would
affect operation on older XO builds.

---------------8<----------------------
[dlkrejsa at localhost Colors.activity]$ diff -u colors.py ../colors.py 
--- colors.py	2008-05-09 03:16:10.000000000 -0700
+++ ../colors.py	2008-09-28 11:48:37.000000000 -0700
@@ -1487,7 +1487,7 @@
 
     def take_screenshot (self):
         if self.easelarea and self.easelarea.bin_window:
-            self._preview.take_screenshot(self.easelarea.bin_window)
+	    self._preview.take_screenshot(self.easelarea)
 
     def save_thumbnail(self, filename):
         pbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8,
self.width, self.height)
---------------8<----------------------

A couple of other questions on Colors!

-  Is it supposed to play back the saved painting automatically
   when an instance starts? Currently it does not.

-  After manually going to the watch tab and playing back
   the saved painting, then returning to the Paint tab, the
   first stroke fails to apply any paint.  The second stroke
   succeeds.








More information about the Devel mailing list