[gtk/gtk-3-24: 1/2] Fix message dialog not shown when the user tries to create a folder but a file with the same name ex
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24: 1/2] Fix message dialog not shown when the user tries to create a folder but a file with the same name ex
- Date: Sun, 12 Apr 2020 18:31:44 +0000 (UTC)
commit 0352d88b8a16f7746091ca38725278186dc5ad78
Author: Luca Bacci <luca bacci982 gmail com>
Date: Sun Apr 12 14:44:05 2020 +0200
Fix message dialog not shown when the user tries to create a folder but a file with the same name exists
Fixes issue #2604
gtk/gtkfilechooserwidget.c | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 562b2f7f5a..369b8995a2 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -813,14 +813,13 @@ error_creating_folder_dialog (GtkFileChooserWidget *impl,
*/
static void
error_creating_folder_over_existing_file_dialog (GtkFileChooserWidget *impl,
- GFile *file,
- GError *error)
+ GFile *file)
{
- error_dialog (impl,
- _("The folder could not be created, as a file with the same "
- "name already exists. Try using a different name for the "
- "folder, or rename the file first."),
- error);
+ error_message (impl,
+ _("The folder could not be created, as a file with the same "
+ "name already exists."),
+ _("Try using a different name for the folder, or rename the "
+ "file first."));
}
static void
@@ -6843,8 +6842,7 @@ file_exists_get_info_cb (GCancellable *cancellable,
/* Oops, the user typed the name of an existing path which is not
* a folder
*/
- error_creating_folder_over_existing_file_dialog (impl, data->file,
- g_error_copy (error));
+ error_creating_folder_over_existing_file_dialog (impl, data->file);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]