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
Removed the extra boolean parameter added to know when to unref the
[platform/core/uifw/at-spi2-atk.git]
/
atk-adaptor
/
object.c
diff --git
a/atk-adaptor/object.c
b/atk-adaptor/object.c
index
2247467
..
3511682
100644
(file)
--- a/
atk-adaptor/object.c
+++ b/
atk-adaptor/object.c
@@
-55,8
+55,8
@@
* This function will simply look for all the accessibles that the cache object
* has not found and assume that they need to be leased.
*/
* This function will simply look for all the accessibles that the cache object
* has not found and assume that they need to be leased.
*/
-
static
void
-
maybe_lease
(GObject *obj)
+void
+
spi_object_lease_if_needed
(GObject *obj)
{
if (!spi_cache_in (spi_global_cache, obj))
{
{
if (!spi_cache_in (spi_global_cache, obj))
{
@@
-101,7
+101,7
@@
spi_object_append_reference (DBusMessageIter * iter, AtkObject * obj)
return;
}
return;
}
-
maybe_lease
(G_OBJECT (obj));
+
spi_object_lease_if_needed
(G_OBJECT (obj));
name = dbus_bus_get_unique_name (spi_global_app_data->bus);
path = spi_register_object_to_path (spi_global_register, G_OBJECT (obj));
name = dbus_bus_get_unique_name (spi_global_app_data->bus);
path = spi_register_object_to_path (spi_global_register, G_OBJECT (obj));
@@
-132,7
+132,7
@@
spi_hyperlink_append_reference (DBusMessageIter * iter, AtkHyperlink * obj)
return;
}
return;
}
-
maybe_lease
(G_OBJECT (obj));
+
spi_object_lease_if_needed
(G_OBJECT (obj));
name = dbus_bus_get_unique_name (spi_global_app_data->bus);
path = spi_register_object_to_path (spi_global_register, G_OBJECT (obj));
name = dbus_bus_get_unique_name (spi_global_app_data->bus);
path = spi_register_object_to_path (spi_global_register, G_OBJECT (obj));
@@
-186,8
+186,6
@@
spi_object_return_reference (DBusMessage * msg, AtkObject * obj)
dbus_message_iter_init_append (reply, &iter);
spi_object_append_reference (&iter, obj);
}
dbus_message_iter_init_append (reply, &iter);
spi_object_append_reference (&iter, obj);
}
- if (obj)
- g_object_unref (G_OBJECT (obj));
return reply;
}
return reply;
}