aboutsummaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-06-19 16:53:04 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-06-19 16:53:04 -0500
commitee30bb04d1ee4842fd20bec5c673215df5a878c5 (patch)
treeb349945106975f082566128e1726392d5eb550ce /src/service.c
parent42cfd74dc245913286cfd2c3ac0cc6caf2d25bff (diff)
downloadayatana-indicator-datetime-ee30bb04d1ee4842fd20bec5c673215df5a878c5.tar.gz
ayatana-indicator-datetime-ee30bb04d1ee4842fd20bec5c673215df5a878c5.tar.bz2
ayatana-indicator-datetime-ee30bb04d1ee4842fd20bec5c673215df5a878c5.zip
in our async callbacks, don't call g_warning() when we get a G_IO_ERROR_CANCELLED
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/service.c b/src/service.c
index 5c8f966..5694ffe 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1036,7 +1036,9 @@ on_datetime1_set_timezone_response (GObject * object,
answers = g_dbus_proxy_call_finish (G_DBUS_PROXY(object), res, &err);
if (err != NULL)
{
- g_warning ("Could not set new timezone: %s", err->message);
+ if (!g_error_matches (err, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ g_warning ("Could not set new timezone: %s", err->message);
+
g_error_free (err);
}
else
@@ -1069,7 +1071,9 @@ on_datetime1_proxy_ready (GObject * object G_GNUC_UNUSED,
proxy = g_dbus_proxy_new_for_bus_finish (res, &err);
if (err != NULL)
{
- g_warning ("Could not grab DBus proxy for timedated: %s", err->message);
+ if (!g_error_matches (err, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ g_warning ("Could not grab DBus proxy for timedated: %s", err->message);
+
g_error_free (err);
setlocation_data_free (data);
}
@@ -1422,7 +1426,9 @@ on_login1_manager_proxy_ready (GObject * object G_GNUC_UNUSED,
if (err != NULL)
{
- g_warning ("Could not grab DBus proxy for logind: %s", err->message);
+ if (!g_error_matches (err, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ g_warning ("Could not grab DBus proxy for logind: %s", err->message);
+
g_error_free (err);
}
else