[at-spi2-atk/p2p: 2/3] Fire all events until we receive a reply from GetRegisteredEvents
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-atk/p2p: 2/3] Fire all events until we receive a reply from GetRegisteredEvents
- Date: Mon, 18 Oct 2010 22:54:42 +0000 (UTC)
commit 747254496ecabd11e84615295ef629959f8ad9d6
Author: Mike Gorse <mgorse novell com>
Date: Thu Oct 7 14:41:48 2010 +0200
Fire all events until we receive a reply from GetRegisteredEvents
atk-adaptor/bridge.c | 1 +
atk-adaptor/bridge.h | 1 +
atk-adaptor/event.c | 3 +++
3 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/atk-adaptor/bridge.c b/atk-adaptor/bridge.c
index a8e0335..f476e96 100644
--- a/atk-adaptor/bridge.c
+++ b/atk-adaptor/bridge.c
@@ -227,6 +227,7 @@ get_registered_event_listeners (SpiBridge *app)
SPI_DBUS_PATH_REGISTRY,
SPI_DBUS_INTERFACE_REGISTRY,
"GetRegisteredEvents");
+ spi_global_app_data->events_initialized = TRUE;
if (!message)
return;
diff --git a/atk-adaptor/bridge.h b/atk-adaptor/bridge.h
index 05fa56a..0c8b70d 100644
--- a/atk-adaptor/bridge.h
+++ b/atk-adaptor/bridge.h
@@ -57,6 +57,7 @@ struct _SpiBridge
gchar *desktop_name;
gchar *desktop_path;
GList *events;
+ gboolean events_initialized;
};
extern SpiBridge *spi_global_app_data;
diff --git a/atk-adaptor/event.c b/atk-adaptor/event.c
index b973021..f843f4f 100644
--- a/atk-adaptor/event.c
+++ b/atk-adaptor/event.c
@@ -337,6 +337,9 @@ signal_is_needed (const gchar *klass, const gchar *major, const gchar *minor)
gboolean ret = FALSE;
GList *list;
+ if (!spi_global_app_data->events_initialized)
+ return TRUE;
+
data [0] = ensure_proper_format (klass + 21);
data [1] = ensure_proper_format (major);
data [2] = ensure_proper_format (minor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]