atkdocument: Deprecate atk_document_get_locale
authorAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 18 Feb 2013 19:17:41 +0000 (20:17 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 18 Feb 2013 22:15:18 +0000 (23:15 +0100)
Deprecated in favor of atk_object_get_object_locale

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

atk/atkdocument.c
atk/atkdocument.h

index a60d32f..26d5420 100755 (executable)
@@ -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.
index 168a252..685a0f7 100755 (executable)
@@ -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);