[gtk+] gtkplacesview: don't warn for cancelled operations



commit 3cdf8fda37c1e6a8ea5a97ac2ff4860c73ceb551
Author: Carlos Soriano <csoriano gnome org>
Date:   Sat Aug 29 23:32:23 2015 +0200

    gtkplacesview: don't warn for cancelled operations
    
    This was intended to filter out cancelled operations, not
    the other way around.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=754150

 gtk/gtkplacesview.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c
index cda93c4..fcb35b8 100644
--- a/gtk/gtkplacesview.c
+++ b/gtk/gtkplacesview.c
@@ -1002,7 +1002,7 @@ 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_warning ("Failed to fetch network locations: %s", error->message);
 
       g_clear_error (&error);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]