call handler only if it exists

This commit is contained in:
Yann Leboulanger 2007-11-09 18:26:29 +00:00
parent 3bcbde6752
commit 5536262a74
1 changed files with 2 additions and 1 deletions

View File

@ -2775,6 +2775,7 @@ class ImageChooserDialog(FileChooserDialog):
on_response_ok = (on_ok, on_response_ok),
on_response_cancel = on_response_cancel)
if on_response_cancel:
self.connect('destroy', on_response_cancel)
filter = gtk.FileFilter()