From 6e503b0a24e7fca0ddb0c2d04470af2d54cbe8b0 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 31 Aug 2008 12:40:03 +0000 Subject: Ensure that the widget is fully onscreen before taking a screenshot. Otherwise X emits a BadMatch and gtk kills the process (!). Fix #8220 --- (limited to 'src/sugar/activity/activity.py') diff --git a/src/sugar/activity/activity.py b/src/sugar/activity/activity.py index f74bb55..73eeea7 100644 --- a/src/sugar/activity/activity.py +++ b/src/sugar/activity/activity.py @@ -754,8 +754,8 @@ class Activity(Window, gtk.Container): return {} def take_screenshot(self): - if self.canvas and self.canvas.window: - self._preview.take_screenshot(self.canvas.window) + if self.canvas: + self._preview.take_screenshot(self.canvas) def save(self): """Request that the activity is saved to the Journal. -- cgit v0.9.1