...
 
Commits (14)
What's new in at-spi2-core 2.6.3:
* Fix a crash when receiving a malformed event.
* Fix atspi_accessible_get_index_in_parent when the parent is not cached
* Fix crash in atspi_device_listener_new_simple.
* registry: Fix a crash when removing hung processes.
* registry: Fix deregistering of applications.
* registry: Fix crash handling DeregisterKeystrokeListener
* Fix some compiler warnings.
What's new in at-spi2-core 2.6.2:
* Don't output a warning when a p2p connection isn't available.
* Don't distribute dbind-config.h (BGO#688083).
What's new in at-spi2-core 2.6.1:
* Update cache in response to role change notifications (BGO#685469).
What's new in at-spi2-core 2.5.92:
* Fix some annotations.
......
......@@ -489,8 +489,11 @@ atspi_accessible_get_index_in_parent (AtspiAccessible *obj, GError **error)
gint i = 0;
g_return_val_if_fail (obj != NULL, -1);
if (!obj->accessible_parent) return -1;
if (!_atspi_accessible_test_cache (obj->accessible_parent,
if (_atspi_accessible_test_cache (obj, ATSPI_CACHE_PARENT) &&
!obj->accessible_parent)
return -1;
if (!obj->accessible_parent ||
!_atspi_accessible_test_cache (obj->accessible_parent,
ATSPI_CACHE_CHILDREN))
{
dbus_int32_t ret = -1;
......
......@@ -115,7 +115,7 @@ id_is_free (guint id)
}
static AtspiDeviceEvent *
atspi_device_event_copy (AtspiDeviceEvent *src)
atspi_device_event_copy (const AtspiDeviceEvent *src)
{
AtspiDeviceEvent *dst = g_new0 (AtspiDeviceEvent, 1);
dst->type = src->type;
......@@ -247,7 +247,7 @@ AtspiDeviceListener *
atspi_device_listener_new_simple (AtspiDeviceListenerSimpleCB callback,
GDestroyNotify callback_destroyed)
{
return atspi_device_listener_new (device_remove_datum, callback_destroyed, callback);
return atspi_device_listener_new (device_remove_datum, callback, callback_destroyed);
}
/**
......
......@@ -777,6 +777,9 @@ detail_matches_listener (const char *event_detail, const char *listener_detail)
if (!listener_detail)
return TRUE;
if (!event_detail)
return (listener_detail ? FALSE : TRUE);
return !(listener_detail [strcspn (listener_detail, ":")] == '\0'
? strncmp (listener_detail, event_detail,
strcspn (event_detail, ":"))
......
......@@ -160,7 +160,7 @@ handle_get_bus_address (DBusPendingCall *pending, void *user_data)
if (dbus_message_get_type (reply) == DBUS_MESSAGE_TYPE_METHOD_RETURN)
{
if (dbus_message_get_args (reply, NULL, DBUS_TYPE_STRING, &address,
DBUS_TYPE_INVALID))
DBUS_TYPE_INVALID) && address [0])
{
DBusError error;
DBusConnection *bus;
......
......@@ -116,7 +116,7 @@ atspi_value_set_current_value (AtspiValue *obj, gdouble new_value, GError **erro
accessible->parent.path,
DBUS_INTERFACE_PROPERTIES, "Set");
if (!message)
return NULL;
return FALSE;
dbus_message_append_args (message, DBUS_TYPE_STRING, &atspi_interface_value,
DBUS_TYPE_STRING, &str_curval,
DBUS_TYPE_INVALID);
......
AC_INIT([at-spi2-core], [2.6.0], [accessibility-atspi@lists.linux-foundation.org])
AC_INIT([at-spi2-core], [2.6.3], [accessibility-atspi@lists.linux-foundation.org])
AC_PREREQ([2.59])
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_MACRO_DIR([m4])
......
......@@ -8,13 +8,15 @@ AM_CPPFLAGS = \
$(GLIB_CFLAGS)
libdbind_la_SOURCES = \
dbind-config.h \
dbind.h \
dbind.c \
dbind-any.h \
dbind-any.c
libdbind_la_LIBADD = $(DBUS_LIBS) $(GLIB_LIBS)
nodist_libdbind_la_sources = \
dbind-config.h
TESTS = dbtest
check_PROGRAMS = dbtest
......
......@@ -306,7 +306,7 @@ dbind_any_free_r (const char **type, void **data)
offset = 0 ;
while (**type != DBUS_DICT_ENTRY_END_CHAR) {
char *subt = *type;
const char *subt = *type;
offset = ALIGN_VALUE (offset, dbind_find_c_alignment (*type));
*data = PTR_PLUS (data0, offset);
dbind_any_free_r (type, data);
......@@ -424,7 +424,7 @@ dbind_any_marshal (DBusMessageIter *iter,
offset = 0 ;
while (**type != DBUS_DICT_ENTRY_END_CHAR) {
char *subt = *type;
const char *subt = *type;
offset = ALIGN_VALUE (offset, dbind_find_c_alignment (*type));
*data = PTR_PLUS (data0, offset);
dbind_any_marshal (&sub, type, data);
......@@ -626,7 +626,7 @@ dbind_any_demarshal (DBusMessageIter *iter,
dbus_message_iter_recurse (iter, &child);
while (**type != DBUS_DICT_ENTRY_END_CHAR) {
char *subt = *type;
const char *subt = *type;
offset = ALIGN_VALUE (offset, dbind_find_c_alignment (*type));
*data = PTR_PLUS (data0, offset);
dbind_any_demarshal (&child, type, data);
......
......@@ -37,6 +37,7 @@ mr
ms
nb
nl
oc
or
pa
pl
......@@ -45,6 +46,7 @@ pt_BR
ro
ru
sl
sk
sq
sr
sr@latin
......
# Occitan translation for at-spi2-core.
# Copyright (C) 2011 Listed translators
# This file is distributed under the same license as the at-spi2-core package.
# Claude Paroz <claude@2xlibre.net>, 2011.
# Cédric Valmary (Tot en òc) <cvalmary@yahoo.fr>, 2015.
msgid ""
msgstr ""
"Project-Id-Version: at-spi2-core master\n"
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=at-"
"spi&keywords=I18N+L10N&component=general\n"
"POT-Creation-Date: 2015-05-24 02:51+0000\n"
"PO-Revision-Date: 2015-05-24 10:44+0200\n"
"Last-Translator: Cédric Valmary (Tot en òc) <cvalmary@yahoo.fr>\n"
"Language-Team: Tot en òc (totenoc.eu)\n"
"Language: oc\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Virtaal 0.7.1\n"
"X-Project-Style: gnome\n"
#: ../atspi/atspi-component.c:326 ../atspi/atspi-misc.c:1037
#: ../atspi/atspi-value.c:111
msgid "The application no longer exists"
msgstr "L'aplicacion existís pas mai"
#: ../atspi/atspi-misc.c:1795
msgid "Attempted synchronous call where prohibited"
msgstr "La temptativa d'apèl sincròn es interdicha"
# Slovak translation for at-spi2-core.
# Copyright (C) 2012 Free Software Foundation, Inc
# This file is distributed under the same license as the at-spi2-core package.
# Peter Mráz <etkinator@gmail.com>, 2012.
#
msgid ""
msgstr ""
"Project-Id-Version: at-spi2-core\n"
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=at-"
"spi&keywords=I18N+L10N&component=general\n"
"POT-Creation-Date: 2012-10-20 15:35+0000\n"
"PO-Revision-Date: 2012-10-20 16:34+0100\n"
"Last-Translator: Peter Mráz <etkinator@gmail.com>\n"
"Language-Team: Slovak <gnome-sk-list@gnome.org>\n"
"Language: sk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 1 : (n>=2 && n<=4) ? 2 : 0;\n"
#: ../atspi/atspi-component.c:313 ../atspi/atspi-misc.c:997
#: ../atspi/atspi-value.c:111
msgid "The application no longer exists"
msgstr "Aplikácia už neexistuje"
......@@ -1041,12 +1041,25 @@ append_keystroke_listener (DBusMessageIter *iter, DEControllerKeyListener *liste
if (dbus_message_iter_open_container (&iter_struct, DBUS_TYPE_STRUCT,
NULL, &iter_substruct))
{
dbus_message_iter_append_basic (&iter_substruct, DBUS_TYPE_BOOLEAN,
&listener->mode->synchronous);
dbus_message_iter_append_basic (&iter_substruct, DBUS_TYPE_BOOLEAN,
&listener->mode->preemptive);
dbus_message_iter_append_basic (&iter_substruct, DBUS_TYPE_BOOLEAN,
&listener->mode->global);
if (listener->mode)
{
dbus_message_iter_append_basic (&iter_substruct, DBUS_TYPE_BOOLEAN,
&listener->mode->synchronous);
dbus_message_iter_append_basic (&iter_substruct, DBUS_TYPE_BOOLEAN,
&listener->mode->preemptive);
dbus_message_iter_append_basic (&iter_substruct, DBUS_TYPE_BOOLEAN,
&listener->mode->global);
}
else
{
dbus_bool_t dummy_val = FALSE;
dbus_message_iter_append_basic (&iter_substruct, DBUS_TYPE_BOOLEAN,
&dummy_val);
dbus_message_iter_append_basic (&iter_substruct, DBUS_TYPE_BOOLEAN,
&dummy_val);
dbus_message_iter_append_basic (&iter_substruct, DBUS_TYPE_BOOLEAN,
&dummy_val);
}
dbus_message_iter_close_container (&iter_struct, &iter_substruct);
}
dbus_message_iter_close_container (iter, &iter_struct);
......@@ -1179,7 +1192,7 @@ reset_hung_process (DBusPendingCall *pending, void *data)
if (!strcmp (l->data, dest))
{
g_free (l->data);
hung_processes = g_slist_remove (hung_processes, data);
hung_processes = g_slist_remove (hung_processes, l->data);
break;
}
}
......@@ -1205,7 +1218,7 @@ reset_hung_process_from_ping (DBusPendingCall *pending, void *data)
if (!strcmp (l->data, data))
{
g_free (l->data);
hung_processes = g_slist_remove (hung_processes, data);
hung_processes = g_slist_remove (hung_processes, l->data);
break;
}
}
......@@ -2353,6 +2366,11 @@ impl_deregister_keystroke_listener (DBusConnection *bus,
dbus_message_iter_init(message, &iter);
if (strcmp (dbus_message_get_signature (message), "oa(iisi)uu") != 0)
{
g_warning ("Received DeregisterKeystrokeListener with strange signature '%s'", dbus_message_get_signature (message));
return invalid_arguments_error (message);
}
dbus_message_iter_get_basic(&iter, &path);
dbus_message_iter_next(&iter);
dbus_message_iter_recurse(&iter, &iter_array);
......
......@@ -290,9 +290,10 @@ handle_disconnection (DBusConnection *bus, DBusMessage *message, void *user_data
for (i = 0; i < reg->apps->len; i++)
{
SpiReference *ref = g_ptr_array_index (reg->apps, i);
while (!g_strcmp0 (old, ref->name))
if (!g_strcmp0 (old, ref->name))
{
remove_application (reg, bus, i);
i--;
}
}
......