Add deprecation attributes to deprecated functions
authorJavier Jardón <jjardon@gnome.org>
Sun, 11 Mar 2012 23:24:56 +0000 (23:24 +0000)
committerJavier Jardón <jjardon@gnome.org>
Mon, 12 Mar 2012 12:56:32 +0000 (12:56 +0000)
This is using the newly introduce G_DEPRECATED macros
from GLib. Traditional deprecation guards are still in
place.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=671857

atk/atkhyperlink.h
atk/atkobject.h

index dff0c8a..c85a8b3 100755 (executable)
@@ -98,6 +98,7 @@ gboolean         atk_hyperlink_is_inline             (AtkHyperlink     *link_);
 
 gint            atk_hyperlink_get_n_anchors        (AtkHyperlink     *link_);
 #ifndef ATK_DISABLE_DEPRECATED
+G_DEPRECATED
 gboolean         atk_hyperlink_is_selected_link     (AtkHyperlink     *link_);
 #endif /* ATK_DISABLE_DEPRECATED */
 
index 264a987..bbfebbf 100755 (executable)
@@ -570,7 +570,9 @@ AtkObject*              atk_object_ref_accessible_child           (AtkObject *ac
 AtkRelationSet*         atk_object_ref_relation_set               (AtkObject *accessible);
 AtkRole                 atk_object_get_role                       (AtkObject *accessible);
 #ifndef ATK_DISABLE_DEPRECATED
+G_DEPRECATED_FOR(atk_component_get_layer)
 AtkLayer                atk_object_get_layer                      (AtkObject *accessible);
+G_DEPRECATED_FOR(atk_component_get_mdi_zorder)
 gint                    atk_object_get_mdi_zorder                 (AtkObject *accessible);
 #endif /* ATK_DISABLE_DEPRECATED */
 AtkAttributeSet*        atk_object_get_attributes                 (AtkObject *accessible);