diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-11-03 17:47:10 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-11-03 17:47:10 -0600 |
commit | adfd4c6bcdba7560635e9f57e5be00651073955a (patch) | |
tree | 0483ad83c04c52b3b786bec5e688dc2938c20ea7 | |
parent | 7c2a156d86696b8ae8793abc6913a63aa05792cb (diff) | |
download | ayatana-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
-rw-r--r-- | src/device-provider-upower.c | 2 |
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); } |