X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-conf.c;h=835d2873abd8ba803274fa1acadfa14034e92dd8;hp=ca7d8be06ad5065cb03fa2f180fa4d897f85e2ff;hb=0e371a5a4b290fc2da052003267a87ea7fcb8a01;hpb=18f5479cff0af30e50004559cfcb06c6ee401e13 diff --git a/src/modest-conf.c b/src/modest-conf.c index ca7d8be..835d287 100644 --- a/src/modest-conf.c +++ b/src/modest-conf.c @@ -33,6 +33,7 @@ #include #include "modest-defs.h" #include "modest-conf.h" +#include "modest-error.h" #include "modest-marshal.h" #include @@ -475,11 +476,12 @@ modest_conf_type_to_gconf_type (ModestConfValueType value_type, GError **err) 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; }