[at-spi2-atk/mgorse] Event detail fixes
- From: Mike Gorse <mgorse src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [at-spi2-atk/mgorse] Event detail fixes
- Date: Fri, 13 Nov 2009 17:57:13 +0000 (UTC)
commit e3ad2b74a58ab626d3ba75c0d1f5fa95cfad1530
Author: Mike Gorse <mgorse novell com>
Date: Fri Nov 13 12:58:48 2009 -0500
Event detail fixes
Have the generic event handler pass on detail ints when they're present
(with table:row-inserted, for instance).
atk-adaptor/event.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/atk-adaptor/event.c b/atk-adaptor/event.c
index 6e26b93..e98d4d2 100644
--- a/atk-adaptor/event.c
+++ b/atk-adaptor/event.c
@@ -679,12 +679,20 @@ generic_event_listener (GSignalInvocationHint *signal_hint,
AtkObject *accessible;
GSignalQuery signal_query;
const gchar *name;
+ int detail1 = 0, detail2 = 0;
g_signal_query (signal_hint->signal_id, &signal_query);
name = signal_query.signal_name;
accessible = ATK_OBJECT(g_value_get_object(¶m_values[0]));
- emit(accessible, ITF_EVENT_OBJECT, name, "", 0, 0, DBUS_TYPE_INT32_AS_STRING, 0);
+
+ if (n_param_values > 1 && G_VALUE_TYPE (¶m_values[1]) == G_TYPE_INT)
+ detail1 = g_value_get_int (¶m_values[1]);
+
+ if (n_param_values > 2 && G_VALUE_TYPE (¶m_values[2]) == G_TYPE_INT)
+ detail2 = g_value_get_int (¶m_values[2]);
+
+ emit(accessible, ITF_EVENT_OBJECT, name, "", detail1, detail2, DBUS_TYPE_INT32_AS_STRING, 0);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]