Removed dialog.c and delete-event handling.