Method

GtkFileChooserset_do_overwrite_confirmation

since: 2.8

Declaration [src]

void
gtk_file_chooser_set_do_overwrite_confirmation (
  GtkFileChooser* chooser,
  gboolean do_overwrite_confirmation
)

Description [src]

Sets whether a file chooser in GTK_FILE_CHOOSER_ACTION_SAVE mode will present a confirmation dialog if the user types a file name that already exists. This is FALSE by default.

If set to TRUE, the chooser will emit the GtkFileChooser::confirm-overwrite signal when appropriate.

If all you need is the stock confirmation dialog, set this property to TRUE. You can override the way confirmation is done by actually handling the GtkFileChooser::confirm-overwrite signal; please refer to its documentation for the details.

Available since: 2.8

Parameters

do_overwrite_confirmation

Type: gboolean

Whether to confirm overwriting in save mode.