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:
parent
3c29bf7491
commit
787d9a5a15
@ -85,7 +85,7 @@ G_DEFINE_TYPE (ClutterAlignConstraint,
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
source_position_changed (ClutterActor *actor,
|
source_position_changed (ClutterActor *actor,
|
||||||
const ClutterActorBox *allocation,
|
GParamSpec *pspec,
|
||||||
ClutterAlignConstraint *align)
|
ClutterAlignConstraint *align)
|
||||||
{
|
{
|
||||||
if (align->actor != NULL)
|
if (align->actor != NULL)
|
||||||
@ -409,7 +409,7 @@ clutter_align_constraint_set_source (ClutterAlignConstraint *align,
|
|||||||
align->source = source;
|
align->source = source;
|
||||||
if (align->source != NULL)
|
if (align->source != NULL)
|
||||||
{
|
{
|
||||||
g_signal_connect (align->source, "allocation-changed",
|
g_signal_connect (align->source, "notify::allocation",
|
||||||
G_CALLBACK (source_position_changed),
|
G_CALLBACK (source_position_changed),
|
||||||
align);
|
align);
|
||||||
g_signal_connect (align->source, "destroy",
|
g_signal_connect (align->source, "destroy",
|
||||||
|
@ -128,9 +128,9 @@ clutter_deform_effect_deform_vertex (ClutterDeformEffect *effect,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
vbo_invalidate (ClutterActor *actor,
|
vbo_invalidate (ClutterActor *actor,
|
||||||
const ClutterActorBox *allocation,
|
GParamSpec *pspec,
|
||||||
ClutterDeformEffect *effect)
|
ClutterDeformEffect *effect)
|
||||||
{
|
{
|
||||||
effect->priv->is_dirty = TRUE;
|
effect->priv->is_dirty = TRUE;
|
||||||
}
|
}
|
||||||
@ -155,7 +155,7 @@ clutter_deform_effect_set_actor (ClutterActorMeta *meta,
|
|||||||
* changes
|
* changes
|
||||||
*/
|
*/
|
||||||
if (actor != NULL)
|
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),
|
G_CALLBACK (vbo_invalidate),
|
||||||
meta);
|
meta);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user