summaryrefslogtreecommitdiff
path: root/src/nautilus-files-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nautilus-files-view.c')
-rw-r--r--src/nautilus-files-view.c31
1 files changed, 20 insertions, 11 deletions
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index a1cd2c9cd..d798b348d 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -6551,8 +6551,10 @@ file_mount_callback (NautilusFile *file,
name = nautilus_file_get_display_name (file);
/* Translators: %s is a file name formatted for display */
text = g_strdup_printf (_("Unable to access “%s”"), name);
- show_error_dialog (text, error->message,
- GTK_WINDOW (nautilus_files_view_get_window (view)));
+ show_dialog (text,
+ error->message,
+ GTK_WINDOW (nautilus_files_view_get_window (view)),
+ GTK_MESSAGE_ERROR);
g_free (text);
g_free (name);
}
@@ -6579,8 +6581,10 @@ file_unmount_callback (NautilusFile *file,
name = nautilus_file_get_display_name (file);
/* Translators: %s is a file name formatted for display */
text = g_strdup_printf (_("Unable to remove “%s”"), name);
- show_error_dialog (text, error->message,
- GTK_WINDOW (nautilus_files_view_get_window (view)));
+ show_dialog (text,
+ error->message,
+ GTK_WINDOW (nautilus_files_view_get_window (view)),
+ GTK_MESSAGE_ERROR);
g_free (text);
g_free (name);
}
@@ -6607,8 +6611,10 @@ file_eject_callback (NautilusFile *file,
name = nautilus_file_get_display_name (file);
/* Translators: %s is a file name formatted for display */
text = g_strdup_printf (_("Unable to eject “%s”"), name);
- show_error_dialog (text, error->message,
- GTK_WINDOW (nautilus_files_view_get_window (view)));
+ show_dialog (text,
+ error->message,
+ GTK_WINDOW (nautilus_files_view_get_window (view)),
+ GTK_MESSAGE_ERROR);
g_free (text);
g_free (name);
}
@@ -6629,9 +6635,10 @@ file_stop_callback (NautilusFile *file,
(error->code != G_IO_ERROR_CANCELLED &&
error->code != G_IO_ERROR_FAILED_HANDLED)))
{
- show_error_dialog (_("Unable to stop drive"),
- error->message,
- GTK_WINDOW (nautilus_files_view_get_window (view)));
+ show_dialog (_("Unable to stop drive"),
+ error->message,
+ GTK_WINDOW (nautilus_files_view_get_window (view)),
+ GTK_MESSAGE_ERROR);
}
}
@@ -6742,8 +6749,10 @@ file_start_callback (NautilusFile *file,
name = nautilus_file_get_display_name (file);
/* Translators: %s is a file name formatted for display */
text = g_strdup_printf (_("Unable to start “%s”"), name);
- show_error_dialog (text, error->message,
- GTK_WINDOW (nautilus_files_view_get_window (view)));
+ show_dialog (text,
+ error->message,
+ GTK_WINDOW (nautilus_files_view_get_window (view)),
+ GTK_MESSAGE_ERROR);
g_free (text);
g_free (name);
}