Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Garrison <erik@laptop.org>2008-09-26 21:16:08 (GMT)
committer Daniel Drake <dsd@laptop.org>2008-11-22 18:27:27 (GMT)
commitc214354a2591990ffcca48da84215fa3a3e8b209 (patch)
treead90c4c952d434c3c2499c872b0c956c81ef4d45
parentec373bced449e90b821df2625ed6b43603f5a210 (diff)
Patch to resolve trac #8580.pipeline-rework
Record was unmapping its window prior to close via a call to self.hide(), which resolves to gtk.Window.hide(). Then we attempted to capture a screenshot per trac #8432. This triggered a BadMatch X windows error when we tried to take a screenshot of it using XShmGetImage (in sugar-preview.c in _sugarext in sugar-toolkit). This commit simply removes the hide() calls in Record. This prevents the window from being unmapped and avoids this error.
-rwxr-xr-xrecord.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/record.py b/record.py
index 92a5fcf..74df6e2 100755
--- a/record.py
+++ b/record.py
@@ -144,8 +144,6 @@ class Record(activity.Activity):
def close( self ):
self.I_AM_CLOSING = True
- #quicker we look like we're gone, the better
- self.hide()
self.m.UPDATING = False
if (self.ui != None):
@@ -164,9 +162,6 @@ class Record(activity.Activity):
def destroy( self ):
- if self.I_AM_CLOSING:
- self.hide()
-
if self.I_AM_SAVED:
activity.Activity.destroy( self )