[gnome-initial-setup/shell/4765: 263/362] timezone-monitor: don't emit a critical when operation is cancelled



commit 9a5033b2412161974df204eca1803ab09d527292
Author: Cosimo Cecchi <cosimo endlessm com>
Date:   Wed Oct 8 14:13:14 2014 -0700

    timezone-monitor: don't emit a critical when operation is cancelled
    
    [endlessm/eos-shell#3939]

 .../pages/location/cc-timezone-monitor.c           |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gnome-initial-setup/pages/location/cc-timezone-monitor.c 
b/gnome-initial-setup/pages/location/cc-timezone-monitor.c
index 35b056e..8f20168 100644
--- a/gnome-initial-setup/pages/location/cc-timezone-monitor.c
+++ b/gnome-initial-setup/pages/location/cc-timezone-monitor.c
@@ -358,7 +358,9 @@ on_manager_proxy_ready (GObject      *source_object,
 
         manager = geoclue_manager_proxy_new_for_bus_finish (res, &error);
         if (error != NULL) {
-                g_critical ("Failed to connect to GeoClue2 service: %s", error->message);
+                if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+                        g_critical ("Failed to connect to GeoClue2 service: %s", error->message);
+
                 g_error_free (error);
                 return;
         }


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