mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 09:53:25 +00:00
plug-ins: remove GIMP_PARAM_NO_VALIDATE for resource arguments.
We validate arguments for a reason. This special flag must only be used in special cases (when it's harder/not possible or not implemented yet to validate properly). In fact #12039 would have been much simpler to diagnose and debug if this flag had not been there from the start, because we would have had an error earlier, on core side, which we could have traced back much more simply!
This commit is contained in:
parent
d42c76cf09
commit
4448b1054a
1 changed files with 2 additions and 2 deletions
|
@ -242,7 +242,7 @@ script_fu_add_resource_arg_default_from_context (
|
||||||
FALSE, /* none OK */
|
FALSE, /* none OK */
|
||||||
NULL, /* default */
|
NULL, /* default */
|
||||||
TRUE, /* default_from_context */
|
TRUE, /* default_from_context */
|
||||||
G_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE);
|
G_PARAM_READWRITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -259,7 +259,7 @@ script_fu_add_resource_arg_with_default (
|
||||||
FALSE, /* none OK */
|
FALSE, /* none OK */
|
||||||
default_resource,
|
default_resource,
|
||||||
FALSE, /* default_from_context */
|
FALSE, /* default_from_context */
|
||||||
G_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE);
|
G_PARAM_READWRITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue