summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Piñeiro <apinheiro@igalia.com>2013-02-18 20:17:41 +0100
committerAlejandro Piñeiro <apinheiro@igalia.com>2013-02-18 23:15:18 +0100
commit97880727d5147ba38de245d9c551b3c3b09c8a77 (patch)
tree6c7ed475c497f2052137693fa4eed9f7e6bb0739
parent08177bf931e23c1e40c7d848cca6bcee337178ad (diff)
downloadatk-97880727d5147ba38de245d9c551b3c3b09c8a77.tar.gz
atkdocument: Deprecate atk_document_get_locale
Deprecated in favor of atk_object_get_object_locale https://bugzilla.gnome.org/show_bug.cgi?id=694117
-rwxr-xr-xatk/atkdocument.c3
-rwxr-xr-xatk/atkdocument.h3
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);