diff options
author | Alejandro Piñeiro <apinheiro@igalia.com> | 2014-02-07 13:51:14 +0100 |
---|---|---|
committer | Alejandro Piñeiro <apinheiro@igalia.com> | 2014-02-07 13:51:14 +0100 |
commit | 406424d74360fb0b1b69bc936bc3274f46eb24be (patch) | |
tree | 21207bf8844d5dd215aea9c21a3bb7d20ea75b31 | |
parent | 2b003049e7a4a41b1dc24662fdeff94691dd80c8 (diff) | |
download | atk-406424d74360fb0b1b69bc936bc3274f46eb24be.tar.gz |
atkcomponent: deprecate get_position and get_size
You get the same information from get_extents. In fact,
default implementation for those methods on atk were using
get_extents.
-rwxr-xr-x | atk/atkcomponent.c | 4 | ||||
-rwxr-xr-x | atk/atkcomponent.h | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/atk/atkcomponent.c b/atk/atkcomponent.c index 9a574c7..d54ac97 100755 --- a/atk/atkcomponent.c +++ b/atk/atkcomponent.c @@ -302,6 +302,8 @@ atk_component_get_extents (AtkComponent *component, * * Gets the position of @component in the form of * a point specifying @component's top-left corner. + * + * Deprecated: Since 2.12. Use atk_component_get_extents() instead. **/ void atk_component_get_position (AtkComponent *component, @@ -337,6 +339,8 @@ atk_component_get_position (AtkComponent *component, * @height: address of #gint to put height of @component * * Gets the size of the @component in terms of width and height. + * + * Deprecated: Since 2.12. Use atk_component_get_extents() instead. **/ void atk_component_get_size (AtkComponent *component, diff --git a/atk/atkcomponent.h b/atk/atkcomponent.h index c14ac22..dee64b3 100755 --- a/atk/atkcomponent.h +++ b/atk/atkcomponent.h @@ -92,6 +92,10 @@ GType atk_rectangle_get_type (void); * @add_focus_handler: This virtual function is deprecated since 2.9.4 * and it should not be overriden. See * atk_component_add_focus_handler() for more information. + * @get_position: This virtual function is deprecated since 2.12 and + * it should not be overriden. Use @get_extents instead. + * @get_size: This virtual function is deprecated since 2.12 and it + * should not be overriden. Use @get_extents instead. * @remove_focus_handler: This virtual function is deprecated since * 2.9.4 and it should not be overriden. See * atk_component_remove_focus_handler() for more information. @@ -174,10 +178,12 @@ void atk_component_get_extents (AtkComponent *com gint *width, gint *height, AtkCoordType coord_type); +G_DEPRECATED void atk_component_get_position (AtkComponent *component, gint *x, gint *y, AtkCoordType coord_type); +G_DEPRECATED void atk_component_get_size (AtkComponent *component, gint *width, gint *height); |