get_action_from_path (const char *path, void *user_data)
{
AtkObject *obj = spi_dbus_get_object (path);
- if (!obj)
+ if (!obj || !ATK_IS_ACTION(obj))
return NULL;
return ATK_ACTION (obj);
}
get_component_from_path (const char *path, void *user_data)
{
AtkObject *obj = spi_dbus_get_object (path);
- if (!obj)
+ if (!obj || !ATK_IS_COMPONENT(obj))
return NULL;
return ATK_COMPONENT (obj);
}
get_document_from_path (const char *path, void *user_data)
{
AtkObject *obj = spi_dbus_get_object (path);
- if (!obj)
+ if (!obj || !ATK_IS_DOCUMENT(obj))
return NULL;
return ATK_DOCUMENT (obj);
}
get_editable_from_path (const char *path, void *user_data)
{
AtkObject *obj = spi_dbus_get_object (path);
- if (!obj)
+ if (!obj || !ATK_IS_EDITABLE_TEXT(obj))
return NULL;
return ATK_EDITABLE_TEXT (obj);
}
get_hyperlink_from_path (const char *path, void *user_data)
{
AtkObject *obj = spi_dbus_get_object (path);
- if (!obj)
+ if (!obj || !ATK_IS_HYPERLINK(obj))
return NULL;
return ATK_HYPERLINK (obj);
}
get_hypertext_from_path (const char *path, void *user_data)
{
AtkObject *obj = spi_dbus_get_object (path);
- if (!obj)
+ if (!obj || !ATK_IS_HYPERTEXT(obj))
return NULL;
return ATK_HYPERTEXT (obj);
}
get_image_from_path (const char *path, void *user_data)
{
AtkObject *obj = spi_dbus_get_object (path);
- if (!obj)
+ if (!obj || !ATK_IS_IMAGE(obj))
return NULL;
return ATK_IMAGE (obj);
}
get_selection_from_path (const char *path, void *user_data)
{
AtkObject *obj = spi_dbus_get_object (path);
- if (!obj)
+ if (!obj || ~ATK_IS_SELECTION(obj))
return NULL;
return ATK_SELECTION (obj);
}
get_table_from_path (const char *path, void *user_data)
{
AtkObject *obj = spi_dbus_get_object (path);
- if (!obj)
+ if (!obj || !ATK_IS_TABLE(obj))
return NULL;
return ATK_TABLE (obj);
}
get_text_from_path (const char *path, void *user_data)
{
AtkObject *obj = spi_dbus_get_object (path);
- if (!obj)
+ if (!obj || !ATK_IS_TEXT(obj))
return NULL;
return ATK_TEXT (obj);
}
get_value_from_path (const char *path, void *user_data)
{
AtkObject *obj = spi_dbus_get_object (path);
- if (!obj)
+ if (!obj || !ATK_IS_VALUE(obj))
return NULL;
return ATK_VALUE (obj);
}