>       dialog.signal_connect("delete_event"){Gtk.main_quit}

Ignore this line it's been taken out but the blank window is still persisting...