[at-spi2-atk/p2p: 2/5] code cleanup
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-atk/p2p: 2/5] code cleanup
- Date: Tue, 31 Aug 2010 01:18:59 +0000 (UTC)
commit e22f9c72c4c3e4a52d1f64e5f37afd5cf16ac610
Author: Trevor Saunders <trev saunders gmail com>
Date: Thu Aug 5 04:39:24 2010 -0400
code cleanup
- use mktemp instead of mktmp, mktmp doesn't seem to be defined very
well.
- make function declaration conform to style.
- make dbus method name start with a cap per the dbus spec.
atk-adaptor/adaptors/application-adaptor.c | 2 +-
atk-adaptor/bridge.c | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/atk-adaptor/adaptors/application-adaptor.c b/atk-adaptor/adaptors/application-adaptor.c
index bc8c431..1877b8f 100644
--- a/atk-adaptor/adaptors/application-adaptor.c
+++ b/atk-adaptor/adaptors/application-adaptor.c
@@ -107,7 +107,7 @@ static DRouteMethod methods[] = {
{impl_pause, "pause"},
{impl_resume, "resume"},
{impl_GetLocale, "GetLocale"},
- {impl_get_app_bus, "getApplicationBusAddress"},
+ {impl_get_app_bus, "GetApplicationBusAddress"},
{NULL, NULL}
};
diff --git a/atk-adaptor/bridge.c b/atk-adaptor/bridge.c
index 356b5fc..80d3f8e 100644
--- a/atk-adaptor/bridge.c
+++ b/atk-adaptor/bridge.c
@@ -333,7 +333,7 @@ register_application (SpiBridge * app)
/* could this be better, we accept some amount of race in getting the temp name*/
/* make sure the directory exists */
mkdir("/tmp/at-spi2/", 0);
-app->app_bus_addr = mktmp("/tmp/at-spi2/app-socket-xxxxxx");
+app->app_bus_addr = mktemp(file_template);
}
else
{
@@ -516,7 +516,8 @@ install_plug_hooks ()
socket_class->embed = socket_embed_hook;
}
-static void new_connection_cb(DBusServer *server, DBusConnection *con, void *data)
+static void
+new_connection_cb(DBusServer *server, DBusConnection *con, void *data)
{
dbus_connection_ref(con);
dbus_connection_setup_with_g_main(con, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]