[mutter] clutter: Use notify::allocation instead of allocation-changed
- From: verdre <jonasd src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter: Use notify::allocation instead of allocation-changed
- Date: Wed, 20 May 2020 13:18:13 +0000 (UTC)
commit 787d9a5a150f25c659e20df4637b974b565c95e9
Author: Jonas Dreßler <verdre v0yd nl>
Date: Sat May 9 21:43:06 2020 +0200
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
clutter/clutter/clutter-align-constraint.c | 4 ++--
clutter/clutter/clutter-deform-effect.c | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/clutter/clutter/clutter-align-constraint.c b/clutter/clutter/clutter-align-constraint.c
index c7ff711b74..ed10ece2ef 100644
--- a/clutter/clutter/clutter-align-constraint.c
+++ b/clutter/clutter/clutter-align-constraint.c
@@ -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",
diff --git a/clutter/clutter/clutter-deform-effect.c b/clutter/clutter/clutter-deform-effect.c
index 5f4de5ac7a..a1b7c89bb5 100644
--- a/clutter/clutter/clutter-deform-effect.c
+++ b/clutter/clutter/clutter-deform-effect.c
@@ -128,9 +128,9 @@ clutter_deform_effect_deform_vertex (ClutterDeformEffect *effect,
}
static void
-vbo_invalidate (ClutterActor *actor,
- const ClutterActorBox *allocation,
- ClutterDeformEffect *effect)
+vbo_invalidate (ClutterActor *actor,
+ 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]