app: register the newly changed ops' properties normally

not using GIMP_CONFIG_INSTALL_PROP_FOO() because they don't allow to
set the param spec's nick and blurb separately.
This commit is contained in:
Michael Natterer
2016-01-16 22:50:15 +01:00
parent 149d3f441f
commit 38691ee03d
2 changed files with 13 additions and 9 deletions

View File

@ -85,11 +85,13 @@ gimp_operation_desaturate_class_init (GimpOperationDesaturateClass *klass)
"description", _("Turn colors into shades of gray"),
NULL);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_MODE,
"mode",
_("Choose shade of gray based on"),
GIMP_TYPE_DESATURATE_MODE,
GIMP_DESATURATE_LIGHTNESS, 0);
g_object_class_install_property (object_class, PROP_MODE,
g_param_spec_enum ("mode",
_("Mode"),
_("Choose shade of gray based on"),
GIMP_TYPE_DESATURATE_MODE,
GIMP_DESATURATE_LIGHTNESS,
GIMP_CONFIG_PARAM_FLAGS));
}
static void

View File

@ -82,10 +82,12 @@ gimp_operation_posterize_class_init (GimpOperationPosterizeClass *klass)
"description", _("Reduce to a limited set of colors"),
NULL);
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_LEVELS,
"levels",
_("Posterize levels"),
2, 256, 3, 0);
g_object_class_install_property (object_class, PROP_LEVELS,
g_param_spec_int ("levels",
_("Posterize levels"),
NULL,
2, 256, 3,
GIMP_CONFIG_PARAM_FLAGS));
}
static void