+2001-08-13 Padraig O'Briain <padraig.obriain@sun.com>
+
+ * atk/atkcomponent.[c|h]
+ * docs/atk-sections.txt, docs/tmpl/atkcomponent.sgml
+ Change atk_component_get_accessible_at_point to
+ atk_component_ref_accessible_at_point so it will work for flyweights
+
Sun Aug 12 10:33:02 2001 Owen Taylor <otaylor@redhat.com>
* docs/Makefile.am: Set GPATH to fix srcdir != builddir problems
gint y,
AtkCoordType coord_type);
-static AtkObject* atk_component_real_get_accessible_at_point (AtkComponent *component,
+static AtkObject* atk_component_real_ref_accessible_at_point (AtkComponent *component,
gint x,
gint y,
AtkCoordType coord_type);
}
/**
- * atk_component_get_accessible_at_point:
+ * atk_component_ref_accessible_at_point:
* @component: the #AtkComponent
* @x: x coordinate
* @y: y coordinate
* @coord_type: specifies whether the coordinates are relative to the screen
* or to the components top level window
*
- * Gets the accessible child, if one exists, contained at the
+ * Gets a reference to the accessible child, if one exists, at the
* coordinate point specified by @x and @y.
*
- * Returns: the accessible child, if one exists
+ * Returns: a reference to the accessible child, if one exists
**/
AtkObject*
-atk_component_get_accessible_at_point (AtkComponent *component,
+atk_component_ref_accessible_at_point (AtkComponent *component,
gint x,
gint y,
AtkCoordType coord_type)
iface = ATK_COMPONENT_GET_IFACE (component);
- if (iface->get_accessible_at_point)
- return (iface->get_accessible_at_point) (component, x, y, coord_type);
+ if (iface->ref_accessible_at_point)
+ return (iface->ref_accessible_at_point) (component, x, y, coord_type);
else
{
/*
* if this method is not overridden use the default implementation.
*/
- return atk_component_real_get_accessible_at_point (component, x, y, coord_type);
+ return atk_component_real_ref_accessible_at_point (component, x, y, coord_type);
}
}
}
static AtkObject*
-atk_component_real_get_accessible_at_point (AtkComponent *component,
+atk_component_real_ref_accessible_at_point (AtkComponent *component,
gint x,
gint y,
AtkCoordType coord_type)
{
if (atk_component_contains (ATK_COMPONENT (obj), x, y, coord_type))
{
- g_object_unref (obj);
return obj;
}
else
gint y,
AtkCoordType coord_type);
- AtkObject* (* get_accessible_at_point) (AtkComponent *component,
+ AtkObject* (* ref_accessible_at_point) (AtkComponent *component,
gint x,
gint y,
AtkCoordType coord_type);
gint x,
gint y,
AtkCoordType coord_type);
-AtkObject* atk_component_get_accessible_at_point(AtkComponent *component,
+AtkObject* atk_component_ref_accessible_at_point(AtkComponent *component,
gint x,
gint y,
AtkCoordType coord_type);
AtkComponentIface
atk_component_add_focus_handler
atk_component_contains
-atk_component_get_accessible_at_point
atk_component_get_extents
atk_component_get_position
atk_component_get_size
atk_component_grab_focus
+atk_component_ref_accessible_at_point
atk_component_remove_focus_handler
atk_component_set_extents
atk_component_set_position