summaryrefslogtreecommitdiff
path: root/ui/gtk/file_dlg.h
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.h
parent94627901a91a96c704f3bdd7ca46da3417904b4b (diff)
downloadwireshark-f7b2ed37997d83d91d06be5c86b724b0af5604c3.tar.gz
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.h')
-rw-r--r--ui/gtk/file_dlg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/gtk/file_dlg.h b/ui/gtk/file_dlg.h
index ea010f603e..5e32d2da4b 100644
--- a/ui/gtk/file_dlg.h
+++ b/ui/gtk/file_dlg.h
@@ -85,6 +85,7 @@ extern gboolean file_selection_set_current_folder(GtkWidget *fs, const gchar *fi
*/
extern void file_selection_set_extra_widget(GtkWidget *fs, GtkWidget *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.
@@ -93,6 +94,7 @@ extern void file_selection_set_extra_widget(GtkWidget *fs, GtkWidget *extra);
* @param cf_name the current name chosen
*/
extern gboolean file_target_exist_ui(GtkWidget *chooser_w, char *cf_name);
+#endif
/** The function file_selection_browse() will g_object_set_data() itself on it's parent window.
* When destroying the parent window, it can close the corresponding file selection. */