[mutter/gnome-3-38] tests/conform/actor-pivot-point: Show stage before allocating
- From: verdre <jonasd src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-38] tests/conform/actor-pivot-point: Show stage before allocating
- Date: Tue, 20 Oct 2020 15:54:09 +0000 (UTC)
commit 2b97850611e32bbe13e144461298f317349ab943
Author: Jonas Dreßler <verdre v0yd nl>
Date: Fri Jul 10 11:05:21 2020 +0000
tests/conform/actor-pivot-point: Show stage before allocating
We're going to enforce some invariants a bit stricter and will only
allow allocating if an actor is mapped, not only visible.
Since actors are only mapped if their parent is mapped and stages are
hidden by default, we need to show the stage to ensure the actors are
mapped before we allocate them. So do that and call clutter_actor_show()
on the stage before fake-allocating the test actors.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1366
(cherry picked from commit 650efb6445e2e76cb3cd47189b8d0d45b1da495e)
src/tests/clutter/conform/actor-pivot-point.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/tests/clutter/conform/actor-pivot-point.c b/src/tests/clutter/conform/actor-pivot-point.c
index fc196b03f5..38481bada0 100644
--- a/src/tests/clutter/conform/actor-pivot-point.c
+++ b/src/tests/clutter/conform/actor-pivot-point.c
@@ -22,6 +22,8 @@ actor_pivot (void)
clutter_actor_add_child (stage, actor_implicit);
clutter_actor_add_child (stage, actor_explicit);
+ clutter_actor_show (stage);
+
/* Fake allocation or pivot-point will not have any effect */
clutter_actor_allocate (actor_implicit, &allocation);
clutter_actor_allocate (actor_explicit, &allocation);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]