Commit 242f3309 authored by Jan Arne Petersen's avatar Jan Arne Petersen Committed by Jan Arne Petersen

Ignore G_IO_ERROR_FAILED_HANDLED errors (#532262).

2008-05-25  Jan Arne Petersen  <jpetersen@jpetersen.org>

	* gtk/gtkfilechooserdefault.c:
	(shortcuts_activate_volume_mount_cb): Ignore G_IO_ERROR_FAILED_HANDLED
	errors (#532262).


svn path=/trunk/; revision=20145
parent 6eb51d28
2008-05-25 Jan Arne Petersen <jpetersen@jpetersen.org>
* gtk/gtkfilechooserdefault.c:
(shortcuts_activate_volume_mount_cb): Ignore G_IO_ERROR_FAILED_HANDLED
errors (#532262).
2008-05-25 Björn Lindqvist <bjourne@gmail.com> 2008-05-25 Björn Lindqvist <bjourne@gmail.com>
* tests/pixbuf-lowmem.c * tests/pixbuf-lowmem.c
......
...@@ -10346,12 +10346,15 @@ shortcuts_activate_volume_mount_cb (GtkFileSystemHandle *handle, ...@@ -10346,12 +10346,15 @@ shortcuts_activate_volume_mount_cb (GtkFileSystemHandle *handle,
if (error) if (error)
{ {
char *msg; if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_FAILED_HANDLED))
{
char *msg;
msg = g_strdup_printf (_("Could not mount %s"), msg = g_strdup_printf (_("Could not mount %s"),
gtk_file_system_volume_get_display_name (impl->file_system, volume)); gtk_file_system_volume_get_display_name (impl->file_system, volume));
error_message (impl, msg, error->message); error_message (impl, msg, error->message);
g_free (msg); g_free (msg);
}
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment