[mutter/wip/chergert/has-accessible: 3/3] cally: avoid creating accessible during actor removal
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/chergert/has-accessible: 3/3] cally: avoid creating accessible during actor removal
- Date: Sun, 23 Feb 2020 22:44:59 +0000 (UTC)
commit 097df7e592803dbf3e73bf4ccab47b85b62bc4fa
Author: Christian Hergert <chergert redhat com>
Date: Sun Feb 23 14:07:45 2020 -0800
cally: avoid creating accessible during actor removal
This checks for a previous accessible to allow CallyActor to
avoid creating new accessibles during destruction.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1083
clutter/clutter/cally/cally-actor.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter/cally/cally-actor.c b/clutter/clutter/cally/cally-actor.c
index c92b576e1..91f68d492 100644
--- a/clutter/clutter/cally/cally-actor.c
+++ b/clutter/clutter/cally/cally-actor.c
@@ -600,10 +600,11 @@ cally_actor_real_remove_actor (ClutterActor *container,
g_return_val_if_fail (CLUTTER_IS_ACTOR (actor), 0);
atk_parent = ATK_OBJECT (data);
- atk_child = clutter_actor_get_accessible (actor);
- if (atk_child)
+ if (clutter_actor_has_accessible (actor))
{
+ atk_child = clutter_actor_get_accessible (actor);
+
g_value_init (&values.old_value, G_TYPE_POINTER);
g_value_set_pointer (&values.old_value, atk_parent);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]