Bug 669253 [ATK]Do not send create/destroy for GTK+ native a11y window. r=fherrera

This commit is contained in:
Ginn Chen 2011-07-14 09:57:09 +08:00
parent aca22ce4ee
commit e0e25fd93c

View File

@ -223,7 +223,10 @@ window_added (AtkObject *atk_obj,
guint index,
AtkObject *child)
{
guint id = g_signal_lookup ("create", MAI_TYPE_ATK_OBJECT);
if (!IS_MAI_OBJECT(child))
return;
static guint id = g_signal_lookup ("create", MAI_TYPE_ATK_OBJECT);
g_signal_emit (child, id, 0);
}
@ -232,7 +235,10 @@ window_removed (AtkObject *atk_obj,
guint index,
AtkObject *child)
{
guint id = g_signal_lookup ("destroy", MAI_TYPE_ATK_OBJECT);
if (!IS_MAI_OBJECT(child))
return;
static guint id = g_signal_lookup ("destroy", MAI_TYPE_ATK_OBJECT);
g_signal_emit (child, id, 0);
}