From 780b5766a8718c71810bc0fe7c7840d4352ed71a Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Mon, 06 Jun 2011 16:30:08 +0000 Subject: Assign window to countdown image creation (SL#2882) Couldn't reproduce this on XO-1.5 but I trust the report and the error message is clear. --- diff --git a/record.py b/record.py index c7c9031..11da096 100644 --- a/record.py +++ b/record.py @@ -287,8 +287,8 @@ class Record(activity.Activity): return self._shutter_button.hide() - self._countdown_image.set_value(value) self._countdown_image.show() + self._countdown_image.set_value(value) def _title_changed(self, widget): self._active_recd.setTitle(self._title_entry.get_text()) @@ -723,7 +723,7 @@ class CountdownImage(gtk.Image): def _generate_image(self, num): w = 55 h = w - pixmap = gdk.Pixmap(None, w, h, 24) + pixmap = gdk.Pixmap(self.get_window(), w, h, -1) ctx = pixmap.cairo_create() ctx.rectangle(0, 0, w, h) ctx.set_source_rgb(0, 0, 0) -- cgit v0.9.1