define GIMP_PARAM_STATIC_STRINGS which is G_PARAM_STATIC_NAME|NICK|BLURB.
2006-01-18 Michael Natterer <mitch@gimp.org> * app/config/config-types.c: define GIMP_PARAM_STATIC_STRINGS which is G_PARAM_STATIC_NAME|NICK|BLURB. Also define GIMP_PARAM_READABLE, _WRITABLE and _READWRITE which include GIMP_PARAM_STATIC_STRINGS. * app/*/*.c: use them for all object properties so their strings are not copied.
This commit is contained in:
committed by
Michael Natterer
parent
6dfc1d8a86
commit
e1ceed5147
@ -103,14 +103,14 @@ gimp_dash_editor_class_init (GimpDashEditorClass *klass)
|
||||
g_param_spec_object ("stroke-options",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_STROKE_OPTIONS,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_N_SEGMENTS,
|
||||
g_param_spec_int ("n-segments",
|
||||
NULL, NULL,
|
||||
2, 120, DEFAULT_N_SEGMENTS,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_LENGTH,
|
||||
@ -118,7 +118,7 @@ gimp_dash_editor_class_init (GimpDashEditorClass *klass)
|
||||
NULL, NULL,
|
||||
0.0, 2000.0,
|
||||
0.5 * DEFAULT_N_SEGMENTS,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user