aboutsummaryrefslogtreecommitdiff
path: root/src/device-provider-upower.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-11-03 17:47:10 -0600
committerCharles Kerr <charles.kerr@canonical.com>2013-11-03 17:47:10 -0600
commitadfd4c6bcdba7560635e9f57e5be00651073955a (patch)
tree0483ad83c04c52b3b786bec5e688dc2938c20ea7 /src/device-provider-upower.c
parent7c2a156d86696b8ae8793abc6913a63aa05792cb (diff)
downloadayatana-indicator-power-adfd4c6bcdba7560635e9f57e5be00651073955a.tar.gz
ayatana-indicator-power-adfd4c6bcdba7560635e9f57e5be00651073955a.tar.bz2
ayatana-indicator-power-adfd4c6bcdba7560635e9f57e5be00651073955a.zip
in on_device_properties_ready(), use g_error_matches
Diffstat (limited to 'src/device-provider-upower.c')
-rw-r--r--src/device-provider-upower.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device-provider-upower.c b/src/device-provider-upower.c
index f890a02..4014853 100644
--- a/src/device-provider-upower.c
+++ b/src/device-provider-upower.c
@@ -89,7 +89,7 @@ on_device_properties_ready (GObject * o, GAsyncResult * res, gpointer gdata)
response = g_dbus_connection_call_finish (G_DBUS_CONNECTION(o), res, &error);
if (error != NULL)
{
- if (error->domain != G_IO_ERROR || error->code != G_IO_ERROR_CANCELLED)
+ if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
g_warning ("Error acquiring bus: %s", error->message);
g_error_free (error);
}