mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 21:02:14 +00:00
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:
parent
6c17aa66c6
commit
6c8e8fbba4
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user