[atk] atkcomponent: deprecate get_position and get_size



commit 406424d74360fb0b1b69bc936bc3274f46eb24be
Author: Alejandro Piñeiro <apinheiro igalia com>
Date:   Fri Feb 7 13:51:14 2014 +0100

    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.

 atk/atkcomponent.c |    4 ++++
 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]