clutter: Use notify::allocation instead of allocation-changed

We're going to remove the "allocation-changed" signal from ClutterActor
since it's no longer needed now that ClutterAllocationFlags are gone.

So listen to "notify-allocation" instead, which has been the recommended
thing to do for some time now anyway.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1245
This commit is contained in:
Jonas Dreßler 2020-05-09 21:43:06 +02:00 committed by verdre
parent 3c29bf7491
commit 787d9a5a15
2 changed files with 6 additions and 6 deletions

View File

@ -85,7 +85,7 @@ G_DEFINE_TYPE (ClutterAlignConstraint,
static void
source_position_changed (ClutterActor *actor,
const ClutterActorBox *allocation,
GParamSpec *pspec,
ClutterAlignConstraint *align)
{
if (align->actor != NULL)
@ -409,7 +409,7 @@ clutter_align_constraint_set_source (ClutterAlignConstraint *align,
align->source = source;
if (align->source != NULL)
{
g_signal_connect (align->source, "allocation-changed",
g_signal_connect (align->source, "notify::allocation",
G_CALLBACK (source_position_changed),
align);
g_signal_connect (align->source, "destroy",

View File

@ -129,7 +129,7 @@ clutter_deform_effect_deform_vertex (ClutterDeformEffect *effect,
static void
vbo_invalidate (ClutterActor *actor,
const ClutterActorBox *allocation,
GParamSpec *pspec,
ClutterDeformEffect *effect)
{
effect->priv->is_dirty = TRUE;
@ -155,7 +155,7 @@ clutter_deform_effect_set_actor (ClutterActorMeta *meta,
* changes
*/
if (actor != NULL)
priv->allocation_id = g_signal_connect (actor, "allocation-changed",
priv->allocation_id = g_signal_connect (actor, "notify::allocation",
G_CALLBACK (vbo_invalidate),
meta);