#include <glib/gi18n.h>
#include "modest-defs.h"
#include "modest-conf.h"
+#include "modest-error.h"
#include "modest-marshal.h"
#include <stdio.h>
gconf_type = GCONF_VALUE_STRING;
break;
default:
- /* FIXME: use MODEST_ERROR, and error code */
gconf_type = GCONF_VALUE_INVALID;
g_printerr ("modest: invalid list value type %d\n", value_type);
- *err = g_error_new_literal (0, 0, "invalid list value type");
- }
+ *err = g_error_new_literal (MODEST_CONF_ERROR,
+ MODEST_CONF_ERROR_INVALID_VALUE,
+ "invalid list value type");
+ }
return gconf_type;
}
G_BEGIN_DECLS
typedef enum _ModestErrorDomain {
- MODEST_MAIL_OPERATION_ERROR
+ MODEST_MAIL_OPERATION_ERROR,
+ MODEST_CONF_ERROR,
} ModestErrorDomain;
typedef enum _ModestErrorCode {
MODEST_MAIL_OPERATION_ERROR_FILE_IO, /* couldn't retrieve a file to construct a mail */
MODEST_MAIL_OPERATION_ERROR_SEND_QUEUE_ADD_ERROR,
MODEST_MAIL_OPERATION_ERROR_LOW_MEMORY,
+
+ MODEST_CONF_ERROR_INVALID_VALUE,
} ModestErrorCode;
G_END_DECLS