mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
action: Warn if set_name() is called multiple times
This commit is contained in:
parent
4fd74e71e6
commit
c007b7489b
@ -197,6 +197,15 @@ clutter_actor_meta_set_name (ClutterActorMeta *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)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user