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:
@ -85,11 +85,13 @@ gimp_operation_desaturate_class_init (GimpOperationDesaturateClass *klass)
|
|||||||
"description", _("Turn colors into shades of gray"),
|
"description", _("Turn colors into shades of gray"),
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_MODE,
|
g_object_class_install_property (object_class, PROP_MODE,
|
||||||
"mode",
|
g_param_spec_enum ("mode",
|
||||||
|
_("Mode"),
|
||||||
_("Choose shade of gray based on"),
|
_("Choose shade of gray based on"),
|
||||||
GIMP_TYPE_DESATURATE_MODE,
|
GIMP_TYPE_DESATURATE_MODE,
|
||||||
GIMP_DESATURATE_LIGHTNESS, 0);
|
GIMP_DESATURATE_LIGHTNESS,
|
||||||
|
GIMP_CONFIG_PARAM_FLAGS));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -82,10 +82,12 @@ gimp_operation_posterize_class_init (GimpOperationPosterizeClass *klass)
|
|||||||
"description", _("Reduce to a limited set of colors"),
|
"description", _("Reduce to a limited set of colors"),
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_LEVELS,
|
g_object_class_install_property (object_class, PROP_LEVELS,
|
||||||
"levels",
|
g_param_spec_int ("levels",
|
||||||
_("Posterize levels"),
|
_("Posterize levels"),
|
||||||
2, 256, 3, 0);
|
NULL,
|
||||||
|
2, 256, 3,
|
||||||
|
GIMP_CONFIG_PARAM_FLAGS));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Reference in New Issue
Block a user