1
0
Fork 0

clutter/actor-meta: Notify actor property on changes

Seems like this was forgotten when writing the class. While at it, add
EXPLICIT_NOTIFY to the property flags.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2377>
This commit is contained in:
Jonas Dreßler 2022-04-10 22:46:12 +02:00 committed by Marge Bot
parent 6c17aa66c6
commit 6c8e8fbba4

View file

@ -109,6 +109,8 @@ clutter_actor_meta_real_set_actor (ClutterActorMeta *meta,
priv->destroy_id = g_signal_connect (priv->actor, "destroy", priv->destroy_id = g_signal_connect (priv->actor, "destroy",
G_CALLBACK (on_actor_destroy), G_CALLBACK (on_actor_destroy),
meta); meta);
g_object_notify_by_pspec (G_OBJECT (meta), obj_props[PROP_ACTOR]);
} }
static void static void
@ -213,7 +215,8 @@ clutter_actor_meta_class_init (ClutterActorMetaClass *klass)
P_("Actor"), P_("Actor"),
P_("The actor attached to the meta"), P_("The actor attached to the meta"),
CLUTTER_TYPE_ACTOR, CLUTTER_TYPE_ACTOR,
CLUTTER_PARAM_READABLE); CLUTTER_PARAM_READABLE |
G_PARAM_EXPLICIT_NOTIFY);
/** /**
* ClutterActorMeta:name: * ClutterActorMeta:name: