diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-11-03 17:59:28 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-11-03 17:59:28 -0600 |
commit | 7dd7640162800c43f7e826d9e1dbefe4e0f9a734 (patch) | |
tree | dc36773d98d6a551af8d3fe6ab5b46f77d2962db /src/device-provider-upower.c | |
parent | 65fa65fbf7f66d3d3d4b0ccb0619cc8ec00c5497 (diff) | |
download | ayatana-indicator-power-7dd7640162800c43f7e826d9e1dbefe4e0f9a734.tar.gz ayatana-indicator-power-7dd7640162800c43f7e826d9e1dbefe4e0f9a734.tar.bz2 ayatana-indicator-power-7dd7640162800c43f7e826d9e1dbefe4e0f9a734.zip |
in on_bus_ready(), use g_error_matches().
Diffstat (limited to 'src/device-provider-upower.c')
-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 cc4adf5..ad5bc98 100644 --- a/src/device-provider-upower.c +++ b/src/device-provider-upower.c @@ -337,7 +337,7 @@ on_bus_ready (GObject * source_object G_GNUC_UNUSED, tmp = g_bus_get_finish (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); } |