[at-spi2-atk] events: Only deregister objects when they are defunct
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-atk] events: Only deregister objects when they are defunct
- Date: Mon, 19 Dec 2011 19:07:44 +0000 (UTC)
commit 67e04e3bf4e8c71638d0ba05801e9f4029c270a9
Author: Benjamin Otte <otte redhat com>
Date: Mon Dec 19 08:51:55 2011 +0100
events: Only deregister objects when they are defunct
We don't want to deregister them when they are changing from defunct to
functioning. And GTK 3.4 emits that change after setting up the
accessible.
atk-adaptor/event.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/atk-adaptor/event.c b/atk-adaptor/event.c
index 61387b0..ef6b964 100644
--- a/atk-adaptor/event.c
+++ b/atk-adaptor/event.c
@@ -650,7 +650,7 @@ state_event_listener (GSignalInvocationHint * signal_hint,
emit_event (accessible, ITF_EVENT_OBJECT, STATE_CHANGED, pname, detail1, 0,
DBUS_TYPE_INT32_AS_STRING, 0, append_basic);
- if (!g_strcmp0 (pname, "defunct"))
+ if (!g_strcmp0 (pname, "defunct") && detail1)
spi_register_deregister_object (spi_global_register, G_OBJECT (accessible),
TRUE);
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]