[gimp/wip/nielsdg/args: 326/326] WIP
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/nielsdg/args: 326/326] WIP
- Date: Sun, 9 Aug 2020 19:02:42 +0000 (UTC)
commit ca261d8119a4fc96177385f47dfa76b393d4f2fe
Author: Niels De Graef <nielsdegraef gmail com>
Date: Sun May 24 19:13:31 2020 +0200
WIP
libgimp/gimpprocedure.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libgimp/gimpprocedure.c b/libgimp/gimpprocedure.c
index 542b960d50..e61becc459 100644
--- a/libgimp/gimpprocedure.c
+++ b/libgimp/gimpprocedure.c
@@ -1911,7 +1911,7 @@ gimp_procedure_validate_args (GimpProcedure *procedure,
GType arg_type = G_VALUE_TYPE (arg);
GType spec_type = G_PARAM_SPEC_VALUE_TYPE (pspec);
- if (arg_type != spec_type)
+ if (!g_type_is_a (arg_type, spec_type))
{
if (return_vals)
{
@@ -1929,7 +1929,7 @@ gimp_procedure_validate_args (GimpProcedure *procedure,
{
g_set_error (error,
GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT,
- _("Procedure '%s' has been called with a "
+ _("ProcEEEEEEEEEEEEEedure '%s' has been called with a "
"wrong value type for argument '%s' (#%d). "
"Expected %s, got %s."),
gimp_procedure_get_name (procedure),
@@ -1978,7 +1978,7 @@ gimp_procedure_validate_args (GimpProcedure *procedure,
g_set_error (error,
GIMP_PDB_ERROR,
GIMP_PDB_ERROR_INVALID_ARGUMENT,
- _("Procedure '%s' has been called with "
+ _("ProcEEEEEedure '%s' has been called with "
"value '%s' for argument '%s' "
"(#%d, type %s). "
"This value is out of range."),
@@ -2038,7 +2038,7 @@ gimp_procedure_validate_args (GimpProcedure *procedure,
g_set_error (error,
GIMP_PDB_ERROR,
GIMP_PDB_ERROR_INVALID_ARGUMENT,
- _("Procedure '%s' has been called with an "
+ _("ProcEEEEEedure '%s' has been called with an "
"invalid UTF-8 string for argument '%s'."),
gimp_procedure_get_name (procedure),
g_param_spec_get_name (pspec));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]