From a9b1b41eef94b46fa8b9b64f6d3dba63ecbe3c24 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Wed, 12 Nov 2008 11:57:07 +0000 Subject: [PATCH] set the error in the GIMP_CONFIG_ERROR domain. 2008-11-12 Sven Neumann * libgimpconfig/gimpconfig-path.c (gimp_config_path_expand_only): set the error in the GIMP_CONFIG_ERROR domain. svn path=/trunk/; revision=27630 --- ChangeLog | 5 +++++ libgimpconfig/gimpconfig-path.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c7ede80ba3..9da3491b5f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-12 Sven Neumann + + * libgimpconfig/gimpconfig-path.c (gimp_config_path_expand_only): + set the error in the GIMP_CONFIG_ERROR domain. + 2008-11-12 Sven Neumann * libgimpmodule/gimpmodule.[ch]: added GIMP_MODULE_ERROR domain. diff --git a/libgimpconfig/gimpconfig-path.c b/libgimpconfig/gimpconfig-path.c index 547e08c247..890c061b8f 100644 --- a/libgimpconfig/gimpconfig-path.c +++ b/libgimpconfig/gimpconfig-path.c @@ -29,6 +29,7 @@ #include "libgimpbase/gimpbase.h" +#include "gimpconfig-error.h" #include "gimpconfig-path.h" #include "libgimp/libgimp-intl.h" @@ -374,7 +375,8 @@ gimp_config_path_expand_only (const gchar *path, if (!s) { - g_set_error (error, 0, 0, _("Cannot expand ${%s}"), token); + g_set_error (error, GIMP_CONFIG_ERROR, GIMP_CONFIG_ERROR_PARSE, + _("Cannot expand ${%s}"), token); g_free (token); goto cleanup; }