[at-spi2-atk] Don't try to set up the server with a main loop if there's no server



commit 8e03fc29c9dc15f90cbb6433e05b55ab535658a1
Author: Mike Gorse <mgorse suse com>
Date:   Fri Jul 6 14:37:29 2012 -0500

    Don't try to set up the server with a main loop if there's no server

 atk-adaptor/event.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/atk-adaptor/event.c b/atk-adaptor/event.c
index 1cbda23..859d399 100644
--- a/atk-adaptor/event.c
+++ b/atk-adaptor/event.c
@@ -64,9 +64,8 @@ switch_main_context (GMainContext *cnx)
 {
   GList *list;
 
-#ifndef DISABLE_P2P
-  atspi_dbus_server_setup_with_g_main (spi_global_app_data->server, cnx);
-#endif
+  if (spi_global_app_data->server)
+    atspi_dbus_server_setup_with_g_main (spi_global_app_data->server, cnx);
   atspi_dbus_connection_setup_with_g_main (spi_global_app_data->bus, cnx);
   for (list = spi_global_app_data->direct_connections; list; list = list->next)
     atspi_dbus_connection_setup_with_g_main (list->data, cnx);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]