diff options
author | Erik Garrison <erik@laptop.org> | 2008-09-26 21:16:08 (GMT) |
---|---|---|
committer | Erik Garrison <erik@laptop.org> | 2008-09-26 21:16:08 (GMT) |
commit | 9e3828554c88e695fed91e3e65b7f6def4317117 (patch) | |
tree | 3b8c3564f2b081ff34d7eceb1d0346f583a262f2 | |
parent | b4da5c6d78a551b42ec3ee934136d03975bb3a53 (diff) |
Patch to resolve trac #8580.
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-x | record.py | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -141,8 +141,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): @@ -160,9 +158,6 @@ class Record(activity.Activity): def destroy( self ): - if self.I_AM_CLOSING: - self.hide() - if self.I_AM_SAVED: activity.Activity.destroy( self ) |