mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-10-06 01:12:40 +02:00
libgimp*, plug-ins: filter ID are now usable in script-fu.
Marshalled PDB procedures into script-fu can now convert a filter ID into the proper object. For instance, here would be the code to append a new gaussian blur filter to the drawable with ID 2 (with specific settings), then making invisible: ```script-fu (define filter (gimp-drawable-append-new-filter 2 "gegl:gaussian-blur" "hello" LAYER-MODE-COLOR-ERASE 1.0 "std-dev-x" 20 "abyss-policy" "none")) (gimp-drawable-filter-set-visible filter FALSE) (gimp-drawable-update 2 0 0 -1 -1) ```
This commit is contained in:
@@ -310,21 +310,22 @@ gimp_config_param_spec_duplicate (GParamSpec *pspec)
|
||||
GType value_type = G_PARAM_SPEC_VALUE_TYPE (pspec);
|
||||
const gchar *type_name = g_type_name (value_type);
|
||||
|
||||
if (value_type == G_TYPE_FILE ||
|
||||
if (value_type == G_TYPE_FILE ||
|
||||
/* These types are not visibile in libgimpconfig so we compare
|
||||
* with type names instead.
|
||||
*/
|
||||
g_strcmp0 (type_name, "GimpImage") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpDisplay") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpDrawable") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpLayer") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpGroupLayer") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpTextLayer") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpChannel") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpItem") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpLayerMask") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpSelection") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpPath") == 0)
|
||||
g_strcmp0 (type_name, "GimpImage") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpDisplay") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpDrawable") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpLayer") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpGroupLayer") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpTextLayer") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpChannel") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpItem") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpLayerMask") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpSelection") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpPath") == 0 ||
|
||||
g_strcmp0 (type_name, "GimpDrawableFilter") == 0)
|
||||
{
|
||||
copy = g_param_spec_object (name, nick, blurb,
|
||||
value_type,
|
||||
|
Reference in New Issue
Block a user