Remove the construct-only flag from ActorMeta:name
The ClutterActorMeta:name property should be read-write, and be writeable at any time.
This commit is contained in:
parent
c75a6b1a1d
commit
1b0be8e3b9
@ -151,8 +151,7 @@ clutter_actor_meta_class_init (ClutterActorMetaClass *klass)
|
|||||||
"Name",
|
"Name",
|
||||||
"The name of the meta",
|
"The name of the meta",
|
||||||
NULL,
|
NULL,
|
||||||
CLUTTER_PARAM_READWRITE |
|
CLUTTER_PARAM_READWRITE);
|
||||||
G_PARAM_CONSTRUCT_ONLY);
|
|
||||||
g_object_class_install_property (gobject_class, PROP_NAME, pspec);
|
g_object_class_install_property (gobject_class, PROP_NAME, pspec);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -197,15 +196,6 @@ clutter_actor_meta_set_name (ClutterActorMeta *meta,
|
|||||||
{
|
{
|
||||||
g_return_if_fail (CLUTTER_IS_ACTOR_META (meta));
|
g_return_if_fail (CLUTTER_IS_ACTOR_META (meta));
|
||||||
|
|
||||||
if (meta->priv->name != NULL)
|
|
||||||
{
|
|
||||||
g_warning ("The ClutterActorMeta of type '%s' has already "
|
|
||||||
"been named '%s'",
|
|
||||||
G_OBJECT_TYPE_NAME (meta),
|
|
||||||
meta->priv->name);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (g_strcmp0 (meta->priv->name, name) == 0)
|
if (g_strcmp0 (meta->priv->name, name) == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user