* fix glib warnings (compile time, runtime): add error gquark, don't use g_atexit

This commit is contained in:
djcb
2012-04-01 13:08:02 +03:00
parent fa10095ce2
commit bc6f9ebbb8
16 changed files with 112 additions and 83 deletions

View File

@ -401,7 +401,7 @@ mu_cmd_extract (MuConfig *opts, GError **err)
MU_ERROR_INTERNAL);
if (!check_params (opts)) {
g_set_error (err, 0, MU_ERROR_IN_PARAMETERS,
g_set_error (err, MU_ERROR_DOMAIN, MU_ERROR_IN_PARAMETERS,
"error in parameters");
return MU_ERROR_IN_PARAMETERS;
}
@ -412,7 +412,7 @@ mu_cmd_extract (MuConfig *opts, GError **err)
else {
rv = mu_util_check_dir(opts->targetdir, FALSE, TRUE);
if (!rv)
g_set_error (err, 0, MU_ERROR_FILE_CANNOT_WRITE,
g_set_error (err, MU_ERROR_DOMAIN, MU_ERROR_FILE_CANNOT_WRITE,
"target '%s' is not a writable directory",
opts->targetdir);
else