Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2011-06-06 16:30:08 (GMT)
committer Daniel Drake <dsd@laptop.org>2011-06-06 16:30:08 (GMT)
commit780b5766a8718c71810bc0fe7c7840d4352ed71a (patch)
tree81fb12188fa988e09ae04594f9e649934b433c0f
parent575d1efa471e417c92d248fc09dcd1d62032c8b9 (diff)
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.
-rw-r--r--record.py4
1 files changed, 2 insertions, 2 deletions
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)