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
This commit is contained in:
Jan Arne Petersen 2008-05-25 12:22:30 +00:00 committed by Jan Arne Petersen
parent 6eb51d28e3
commit 242f330920
2 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,9 @@
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>
* tests/pixbuf-lowmem.c

View File

@ -10346,12 +10346,15 @@ shortcuts_activate_volume_mount_cb (GtkFileSystemHandle *handle,
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"),
gtk_file_system_volume_get_display_name (impl->file_system, volume));
error_message (impl, msg, error->message);
g_free (msg);
msg = g_strdup_printf (_("Could not mount %s"),
gtk_file_system_volume_get_display_name (impl->file_system, volume));
error_message (impl, msg, error->message);
g_free (msg);
}
goto out;
}