[atk] atkdocument: Deprecate atk_document_get_locale



commit 97880727d5147ba38de245d9c551b3c3b09c8a77
Author: Alejandro Piñeiro <apinheiro igalia com>
Date:   Mon Feb 18 20:17:41 2013 +0100

    atkdocument: Deprecate atk_document_get_locale
    
    Deprecated in favor of atk_object_get_object_locale
    
    https://bugzilla.gnome.org/show_bug.cgi?id=694117

 atk/atkdocument.c |    3 +++
 atk/atkdocument.h |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/atk/atkdocument.c b/atk/atkdocument.c
index a60d32f..26d5420 100755
--- a/atk/atkdocument.c
+++ b/atk/atkdocument.c
@@ -151,6 +151,9 @@ atk_document_get_document (AtkDocument *document)
  *          a different locale, see atk_text_get_attributes and
  *          atk_image_get_image_locale.
  *
+ * Deprecated: This method is deprecated since ATK version
+ * 2.7.90. Please use atk_object_get_object_locale instead.
+ *
  * Returns: a UTF-8 string indicating the POSIX-style LC_MESSAGES
  *          locale of the document content as a whole, or NULL if
  *          the document content does not specify a locale.
diff --git a/atk/atkdocument.h b/atk/atkdocument.h
index 168a252..685a0f7 100755
--- a/atk/atkdocument.h
+++ b/atk/atkdocument.h
@@ -70,7 +70,10 @@ GType  atk_document_get_type             (void);
 
 const gchar*          atk_document_get_document_type (AtkDocument   *document);
 gpointer atk_document_get_document (AtkDocument   *document);
+#ifndef ATK_DISABLE_DEPRECATED
+G_DEPRECATED
 const gchar*          atk_document_get_locale (AtkDocument *document);
+#endif /* ATK_DISABLE_DEPRECATED */
 AtkAttributeSet*      atk_document_get_attributes (AtkDocument *document);
 const gchar*          atk_document_get_attribute_value (AtkDocument *document,
                                                         const gchar *attribute_name);


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