[tracker/gconf-dbus: 9/15] libtracker-common: Replace error code with enum



commit 9fbaf83cc785c961c748f5a4a1eb716e1ee20bd5
Author: Philip Van Hoof <philip codeminded be>
Date:   Mon Apr 4 13:50:02 2011 +0200

    libtracker-common: Replace error code with enum

 src/libtracker-common/tracker-locale-gconfdbus.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-common/tracker-locale-gconfdbus.c b/src/libtracker-common/tracker-locale-gconfdbus.c
index b598b5c..6296666 100644
--- a/src/libtracker-common/tracker-locale-gconfdbus.c
+++ b/src/libtracker-common/tracker-locale-gconfdbus.c
@@ -331,7 +331,7 @@ tracker_locale_gconfdbus_init (void)
 
 
 		if (error) {
-			if (error->code == 19) {
+			if (error->code == G_DBUS_ERROR_UNKNOWN_METHOD) {
 				g_message ("GetDefaultDatabase doesn't exist on %s, this GConf "
 				           "doesn't look like a gconf-dbus.\n"
 				           "Continuing in non-maemo mode",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]