[gnome-online-accounts] daemon: Use GLib API to match the GError domain and code
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] daemon: Use GLib API to match the GError domain and code
- Date: Tue, 13 Sep 2016 15:50:11 +0000 (UTC)
commit c1df25382be40e00fdc5f1c1ec438317a1ae83b9
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Sep 1 19:30:52 2016 +0200
daemon: Use GLib API to match the GError domain and code
src/daemon/goadaemon.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/daemon/goadaemon.c b/src/daemon/goadaemon.c
index a01fc63..01549c7 100644
--- a/src/daemon/goadaemon.c
+++ b/src/daemon/goadaemon.c
@@ -468,7 +468,7 @@ add_config_file (GoaDaemon *self,
G_KEY_FILE_NONE,
&error))
{
- if (!(error->domain == G_FILE_ERROR && error->code == G_FILE_ERROR_NOENT))
+ if (!g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT))
{
g_warning ("Error loading %s: %s (%s, %d)",
path,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]