[at-spi2-core] Fix build errors
- From: Mike Gorse <mgorse src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [at-spi2-core] Fix build errors
- Date: Mon, 4 Jan 2010 20:17:43 +0000 (UTC)
commit 0f40da060444d07ca8319676974ff2cbc1e0d6fc
Author: Mike Gorse <mgorse novell com>
Date: Mon Jan 4 15:17:18 2010 -0500
Fix build errors
From Stephen Shaw <sshaw decriptor com>:
Fix g_print in spi_get_bus().
have spi_set_display always return a value.
registryd/display.c | 1 +
registryd/registry-main.c | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/registryd/display.c b/registryd/display.c
index e9c9b16..730b61c 100644
--- a/registryd/display.c
+++ b/registryd/display.c
@@ -46,6 +46,7 @@ Display *spi_set_display (const char *display_name)
g_error ("AT-SPI: Cannot open default display");
return NULL;
}
+ return default_display;
}
Display *spi_get_display ()
diff --git a/registryd/registry-main.c b/registryd/registry-main.c
index 51cf7d1..14130a1 100644
--- a/registryd/registry-main.c
+++ b/registryd/registry-main.c
@@ -266,7 +266,7 @@ spi_get_bus (void)
else
{
if (!dbus_bus_register (bus, &error))
- g_error ("AT-SPI: Couldn't register with bus: %s\n");
+ g_error ("AT-SPI: Couldn't register with bus: %s\n", error.message);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]