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
@ -145,14 +145,14 @@ gimp_ui_manager_class_init (GimpUIManagerClass *klass)
|
||||
g_param_spec_string ("name",
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_GIMP,
|
||||
g_param_spec_object ("gimp",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_GIMP,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
klass->managers = g_hash_table_new_full (g_str_hash, g_str_equal,
|
||||
|
Reference in New Issue
Block a user