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
This commit is contained in:
Guy Harris 2012-06-04 17:21:32 +00:00
parent 94627901a9
commit f7b2ed3799
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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. */