From 97880727d5147ba38de245d9c551b3c3b09c8a77 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alejandro=20Pi=C3=B1eiro?= Date: Mon, 18 Feb 2013 20:17:41 +0100 Subject: [PATCH] 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(+) 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); -- 2.7.4