+ wxCommandEvent event(wxEVT_NULL);
+ int style;
+
+ style=dialog->GetStyle();
+
+ if((style&wxSAVE)&&(style&wxOVERWRITE_PROMPT))
+ if(wxFileExists(gtk_file_selection_get_filename(GTK_FILE_SELECTION(dialog->m_widget) ))) {
+ if(wxMessageBox("File exists. Overwrite?","Confirm",wxYES_NO)!=wxYES)
+ return;
+ }
+