From 6a4e4a9fe8ffb4b4acfbbb4d382278a5a22fdfb0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 2 Sep 2015 01:28:57 -0400 Subject: [PATCH] places view: Spew less warnings When running the testsuite with a local gvfs, we get a 'not supported' error here, and the g_warning makes the test fail. Avoid that. --- gtk/gtkplacesview.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c index fcb35b8823..a2a8395a47 100644 --- a/gtk/gtkplacesview.c +++ b/gtk/gtkplacesview.c @@ -1002,7 +1002,8 @@ network_enumeration_finished (GObject *source_object, if (error) { - if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) + if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED) && + !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED)) g_warning ("Failed to fetch network locations: %s", error->message); g_clear_error (&error);