diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-06-19 19:20:47 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-06-19 19:20:47 +0000 |
commit | 475b8d9bcd6f975cf4a891e7cb53f6d55b0c8ca2 (patch) | |
tree | f97ccb7672858e9fa3f9c613dd6532e189076706 /ui/gtk/file_dlg.h | |
parent | 6ba80adfed2ac4e2d9768ed16e3f1efc39d481c4 (diff) |
The GTK+ file chooser already *includes* UI code to ask the user whether
they want to overwrite an existing file; just use that. (The Win32 file
chooser also does that itself.) Just do UI for "do you want to
overwrite this {user-immutable,unwritable} file?".
svn path=/trunk/; revision=43381
Diffstat (limited to 'ui/gtk/file_dlg.h')
-rw-r--r-- | ui/gtk/file_dlg.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/gtk/file_dlg.h b/ui/gtk/file_dlg.h index 0ec46e5a8d..9ee50f1afd 100644 --- a/ui/gtk/file_dlg.h +++ b/ui/gtk/file_dlg.h @@ -87,15 +87,15 @@ extern void file_selection_set_extra_widget(GtkWidget *fs, GtkWidget *extra); #ifndef _WIN32 /** If the specified file doesn't exist, return TRUE. - * If it does exist, 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, and return - * TRUE if the file should be overwritten and FALSE otherwise. + * If it exists and is neither user-immutable nor not writable, return + * TRUE. + * Otherwise, as the user whether they want to overwrite it anyway, and + * return TRUE if the file should be overwritten and FALSE otherwise. * * @param chooser_w the GtkFileChooser used to select the file in question * @param cf_name the current name chosen */ -extern gboolean file_target_exist_ui(GtkWidget *chooser_w, char *cf_name); +extern gboolean file_target_unwritable_ui(GtkWidget *chooser_w, char *cf_name); #endif /** The function file_selection_browse() will g_object_set_data() itself on it's parent window. |