projects
/
platform
/
core
/
uifw
/
at-spi2-atk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix some missing prototypes
[platform/core/uifw/at-spi2-atk.git]
/
atk-adaptor
/
event.c
diff --git
a/atk-adaptor/event.c
b/atk-adaptor/event.c
index
81a0f34
..
2253ec0
100644
(file)
--- a/
atk-adaptor/event.c
+++ b/
atk-adaptor/event.c
@@
-23,6
+23,7
@@
*/
#include <string.h>
*/
#include <string.h>
+#include <ctype.h>
#include <atk/atk.h>
#include <droute/droute.h>
#include <atk/atk.h>
#include <droute/droute.h>
@@
-31,6
+32,9
@@
#include "accessible-register.h"
#include "common/spi-dbus.h"
#include "accessible-register.h"
#include "common/spi-dbus.h"
+#include "event.h"
+#include "object.h"
+#include "dbus/dbus-glib-lowlevel.h"
static GArray *listener_ids = NULL;
static GArray *listener_ids = NULL;
@@
-397,8
+401,7
@@
emit_event (AtkObject *obj,
void (*append_variant) (DBusMessageIter *, const char *, const void *))
{
DBusConnection *bus = spi_global_app_data->bus;
void (*append_variant) (DBusMessageIter *, const char *, const void *))
{
DBusConnection *bus = spi_global_app_data->bus;
- const char *path = spi_register_object_to_path (spi_global_register,
- G_OBJECT (obj));
+ const char *path;
gchar *cname, *t;
DBusMessage *sig;
gchar *cname, *t;
DBusMessage *sig;
@@
-412,6
+415,8
@@
emit_event (AtkObject *obj,
if (!signal_is_needed (klass, major, minor))
return;
if (!signal_is_needed (klass, major, minor))
return;
+ path = spi_register_object_to_path (spi_global_register, G_OBJECT (obj));
+
/*
* This is very annoying, but as '-' isn't a legal signal
* name in D-Bus (Why not??!?) The names need converting
/*
* This is very annoying, but as '-' isn't a legal signal
* name in D-Bus (Why not??!?) The names need converting
@@
-435,6
+440,7
@@
emit_event (AtkObject *obj,
spi_object_lease_if_needed (G_OBJECT (obj));
g_free(cname);
spi_object_lease_if_needed (G_OBJECT (obj));
g_free(cname);
+ g_free (path);
}
/*---------------------------------------------------------------------------*/
}
/*---------------------------------------------------------------------------*/