aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/file_dlg.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-06-04 17:21:32 +0000
committerGuy Harris <guy@alum.mit.edu>2012-06-04 17:21:32 +0000
commitf7b2ed37997d83d91d06be5c86b724b0af5604c3 (patch)
tree1c0ba326e9ab9efd26f7837a02a071f28243acbe /ui/gtk/file_dlg.c
parent94627901a91a96c704f3bdd7ca46da3417904b4b (diff)
file_target_exist_ui() is used only on UN*Xes; on Win32, we'd use the
Windows file dialog, which has its own built-in version of the "do you want to overwrite that file?" dialog, and Notepad and WordPad, at least, just appear to error out if you try to overwrite a file with the read-only flag set, rather than asking whether you want to override that. svn path=/trunk/; revision=43072
Diffstat (limited to 'ui/gtk/file_dlg.c')
-rw-r--r--ui/gtk/file_dlg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/gtk/file_dlg.c b/ui/gtk/file_dlg.c
index f0df917085..5e149c1f98 100644
--- a/ui/gtk/file_dlg.c
+++ b/ui/gtk/file_dlg.c
@@ -153,6 +153,7 @@ file_selection_set_extra_widget(GtkWidget *fs, GtkWidget *extra)
gtk_file_chooser_set_extra_widget(GTK_FILE_CHOOSER(fs), extra);
}
+#ifndef _WIN32
/* Pop up and run the UI asking the user whether they want to
overwrite a file and, if it's user-immutable or not writable,
whether they want to overwrite it anyway. */
@@ -288,6 +289,7 @@ file_target_exist_ui(GtkWidget *chooser_w, char *cf_name)
}
return TRUE;
}
+#endif
/*
* A generic select_file routine that is intended to be connected to