editor/gtk: Ask before overwriting a scenario

Previously, this was commented out because GTK 2.4 did not have the
convenience API, but Clonk requires a newer GTK now.
Günther Brammer 2011-01-19 02:16:48 +01:00
parent d3ddc171ee
commit 8d3692e093
1 changed files with 1 additions and 2 deletions

View File

@ -701,8 +701,7 @@ bool C4ConsoleGUI::FileSelect(char *sFilename, int iSize, const char * szFilter,
gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(dialog), filter);
}
// TODO: Not in GTK+ 2.4, we could check GTK+ version at runtime and rely on lazy bindung
// gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(dialog), (dwFlags & OFN_OVERWRITEPROMPT) != 0);
gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(dialog), (dwFlags & OFN_OVERWRITEPROMPT) != 0);
// TODO: Not in GTK+ 2.4, we could check GTK+ version at runtime and rely on lazy binding
// gtk_file_chooser_set_show_hidden(GTK_FILE_CHOOSER(dialog), (dwFlags & OFN_HIDEREADONLY) == 0);