[at-spi2-atk] Remove methods to set an atk object's name and description
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-atk] Remove methods to set an atk object's name and description
- Date: Thu, 19 Jan 2012 16:42:22 +0000 (UTC)
commit 631f89c9561d319f5f7b488ddbd8cbb1d1f4d684
Author: Mike Gorse <mgorse linux-l2tz site>
Date: Thu Jan 19 10:41:11 2012 -0600
Remove methods to set an atk object's name and description
It doesn't make sense to expose atk_object_set_name and
atk_object_set_description over D-Bus. Removing the ability to set those
properties.
atk-adaptor/adaptors/accessible-adaptor.c | 28 ++--------------------------
1 files changed, 2 insertions(+), 26 deletions(-)
---
diff --git a/atk-adaptor/adaptors/accessible-adaptor.c b/atk-adaptor/adaptors/accessible-adaptor.c
index 7572e49..12ad6af 100644
--- a/atk-adaptor/adaptors/accessible-adaptor.c
+++ b/atk-adaptor/adaptors/accessible-adaptor.c
@@ -42,18 +42,6 @@ impl_get_Name (DBusMessageIter * iter, void *user_data)
}
static dbus_bool_t
-impl_set_Name (DBusMessageIter * iter, void *user_data)
-{
- AtkObject *object = (AtkObject *) user_data;
- const char *name = droute_get_v_string (iter);
-
- g_return_val_if_fail (ATK_IS_OBJECT (user_data), FALSE);
-
- atk_object_set_name (object, name);
- return TRUE;
-}
-
-static dbus_bool_t
impl_get_Description (DBusMessageIter * iter, void *user_data)
{
AtkObject *object = (AtkObject *) user_data;
@@ -64,18 +52,6 @@ impl_get_Description (DBusMessageIter * iter, void *user_data)
}
static dbus_bool_t
-impl_set_Description (DBusMessageIter * iter, void *user_data)
-{
- AtkObject *object = (AtkObject *) user_data;
- const char *description = droute_get_v_string (iter);
-
- g_return_val_if_fail (ATK_IS_OBJECT (user_data), FALSE);
-
- atk_object_set_description (object, description);
- return TRUE;
-}
-
-static dbus_bool_t
impl_get_Parent (DBusMessageIter * iter, void *user_data)
{
AtkObject *obj = (AtkObject *) user_data;
@@ -541,8 +517,8 @@ static DRouteMethod methods[] = {
};
static DRouteProperty properties[] = {
- {impl_get_Name, impl_set_Name, "Name"},
- {impl_get_Description, impl_set_Description, "Description"},
+ {impl_get_Name, NULL, "Name"},
+ {impl_get_Description, NULL, "Description"},
{impl_get_Parent, NULL, "Parent"},
{impl_get_ChildCount, NULL, "ChildCount"},
{NULL, NULL, NULL}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]