Commit 38691ee0 authored by Michael Natterer's avatar Michael Natterer 😴

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.
parent 149d3f44
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment