1
1
mirror of https://gitlab.gnome.org/GNOME/gimp.git synced 2025-10-06 01:12:40 +02:00

libgimp*, plug-ins: now hide GimpParamSpecChoice struct.

New libgimpbase functions:

- gimp_param_spec_choice_get_choice
- gimp_param_spec_choice_get_default

Now the only GParamSpec in libgimpbase whose struct is visible is
GimpParamSpecObject. This can't change since it is derived into param
specs defined in libgimp and therefore needs to be visible.
This commit is contained in:
Jehan
2025-01-25 01:21:13 +01:00
parent 080b09bb96
commit b1acb256e1
12 changed files with 152 additions and 110 deletions

View File

@@ -96,11 +96,9 @@ gimp_config_param_spec_duplicate (GParamSpec *pspec)
if (GIMP_IS_PARAM_SPEC_CHOICE (pspec))
{
GimpParamSpecChoice *cspec = GIMP_PARAM_SPEC_CHOICE (pspec);
copy = gimp_param_spec_choice (name, nick, blurb,
g_object_ref (cspec->choice),
spec->default_value,
g_object_ref (gimp_param_spec_choice_get_choice (pspec)),
gimp_param_spec_choice_get_default (pspec),
flags);
}
else if (GEGL_IS_PARAM_SPEC_FILE_PATH (pspec))