We should destroy the gerr dialog in the context it exists in

This commit is contained in:
Chris Jones 2010-06-15 14:54:24 +01:00
parent 6dce92b1a0
commit e753470633
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ def gerr(message = None):
dialog = gtk.MessageDialog(None, gtk.DIALOG_MODAL,
gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, message)
dialog.run()
dialog.destroy()
def has_ancestor(widget, wtype):
"""Walk up the family tree of widget to see if any ancestors are of type"""