gnome-games r7824 - trunk/libgames-support
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r7824 - trunk/libgames-support
- Date: Fri, 15 Aug 2008 10:14:43 +0000 (UTC)
Author: chpe
Date: Fri Aug 15 10:14:43 2008
New Revision: 7824
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7824&view=rev
Log:
Use g_error_matches().
Modified:
trunk/libgames-support/games-conf.c
Modified: trunk/libgames-support/games-conf.c
==============================================================================
--- trunk/libgames-support/games-conf.c (original)
+++ trunk/libgames-support/games-conf.c Fri Aug 15 10:14:43 2008
@@ -299,8 +299,7 @@
priv->key_file = g_key_file_new ();
if (!g_key_file_load_from_file (priv->key_file, conf_file, 0, &error)) {
/* Don't warn on non-existent file */
- 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 ("Failed to read settings from \"%s\": %s",
conf_file, error->message);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]