{
AtspiCache mask = _atspi_accessible_get_cache_mask (accessible);
AtspiCache result = accessible->cached_properties & mask & flag;
- return (result != 0);
+ return (result != 0 && atspi_main_loop);
}
void
static DBusConnection *bus = NULL;
static GHashTable *live_refs = NULL;
+GMainLoop *atspi_main_loop;
+
const char *atspi_path_dec = ATSPI_DBUS_PATH_DEC;
const char *atspi_path_registry = ATSPI_DBUS_PATH_REGISTRY;
const char *atspi_path_root = ATSPI_DBUS_PATH_ROOT;
return 0;
}
- static GMainLoop *mainloop;
-
/**
* atspi_event_main:
*
void
atspi_event_main (void)
{
- mainloop = g_main_loop_new (NULL, FALSE);
- g_main_loop_run (mainloop);
+ atspi_main_loop = g_main_loop_new (NULL, FALSE);
+ g_main_loop_run (atspi_main_loop);
+ atspi_main_loop = NULL;
}
/**
void
atspi_event_quit (void)
{
- g_main_loop_quit (mainloop);
+ g_main_loop_quit (atspi_main_loop);
}
/**