[clutter] cally: Avoid clone spamming state changes
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] cally: Avoid clone spamming state changes
- Date: Wed, 24 Feb 2016 12:03:51 +0000 (UTC)
commit 2b0ff2f2ba0af6f3baf094759c72615af9e5918f
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Feb 23 15:12:57 2016 +0000
cally: Avoid clone spamming state changes
Clones may generate a temporary map/unmap on their source when painting;
this, in turn, will generate unnecessary ATK state changes.
https://bugzilla.gnome.org/show_bug.cgi?id=756371
clutter/cally/cally-actor.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/clutter/cally/cally-actor.c b/clutter/cally/cally-actor.c
index 8163e79..375b7db 100644
--- a/clutter/cally/cally-actor.c
+++ b/clutter/cally/cally-actor.c
@@ -1017,6 +1017,13 @@ cally_actor_real_notify_clutter (GObject *obj,
}
else if (g_strcmp0 (pspec->name, "mapped") == 0)
{
+ /* Clones may temporarily map an actor in order to
+ * paint it; we don't want this to generate an ATK
+ * state change
+ */
+ if (clutter_actor_is_in_clone_paint (actor))
+ return;
+
state = ATK_STATE_SHOWING;
value = clutter_actor_is_mapped (actor);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]