From: Mike Gorse Date: Tue, 3 Aug 2010 12:31:13 +0000 (-0400) Subject: Change remaining g_error calls to g_warning X-Git-Tag: AT_SPI2_ATK_2_12_0~360 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git;a=commitdiff_plain;h=8ae727f8d67d55ed2a0312ff52ac3525f5e32bce;hp=221c035bca439c691d7e1b649d4b9d3382d43192 Change remaining g_error calls to g_warning --- diff --git a/atk-adaptor/bridge.c b/atk-adaptor/bridge.c index 55ac68b..571d8e1 100644 --- a/atk-adaptor/bridge.c +++ b/atk-adaptor/bridge.c @@ -119,7 +119,10 @@ spi_atk_bridge_get_bus (void) bridge_display = XOpenDisplay (spi_display_name ()); if (!bridge_display) - g_error ("AT_SPI: Could not get the display\n"); + { + g_warning ("AT_SPI: Could not get the display\n"); + return NULL; + } AT_SPI_BUS = XInternAtom (bridge_display, "AT_SPI_BUS", False); XGetWindowProperty (bridge_display, @@ -137,19 +140,26 @@ spi_atk_bridge_get_bus (void) ("AT-SPI: Accessibility bus not found - Using session bus.\n"); bus = dbus_bus_get (DBUS_BUS_SESSION, &error); if (!bus) - g_error ("AT-SPI: Couldn't connect to bus: %s\n", error.message); + { + g_warning ("AT-SPI: Couldn't connect to bus: %s\n", error.message); + return NULL; + } } else { bus = dbus_connection_open (data, &error); if (!bus) { - g_error ("AT-SPI: Couldn't connect to bus: %s\n", error.message); + g_warning ("AT-SPI: Couldn't connect to bus: %s\n", error.message); + return NULL; } else { if (!dbus_bus_register (bus, &error)) - g_error ("AT-SPI: Couldn't register with bus: %s\n", error.message); + { + g_warning ("AT-SPI: Couldn't register with bus: %s\n", error.message); + return NULL; + } } }