summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Piñeiro <apinheiro@igalia.com>2014-02-07 13:51:14 +0100
committerAlejandro Piñeiro <apinheiro@igalia.com>2014-02-07 13:51:14 +0100
commit406424d74360fb0b1b69bc936bc3274f46eb24be (patch)
tree21207bf8844d5dd215aea9c21a3bb7d20ea75b31
parent2b003049e7a4a41b1dc24662fdeff94691dd80c8 (diff)
downloadatk-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-xatk/atkcomponent.c4
-rwxr-xr-xatk/atkcomponent.h6
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);