Added new API for ATK 1.11/1.12. Minor docs cleanup.
[platform/upstream/atk.git] / atk / atkimage.c
index f0ab0bd..d37332d 100755 (executable)
@@ -186,3 +186,27 @@ atk_image_get_image_position (AtkImage *image,
     *y = -1;
   }
 }
+
+/** 
+ * Returns a string corresponding to the POSIX LC_MESSAGES locale used by the image description, or NULL if the image does not specify a locale. 
+ * @Since ATK 1.12
+ */
+G_CONST_RETURN gchar* 
+atk_image_get_image_locale (AtkImage   *image)
+{
+       
+  AtkImageIface *iface;
+
+  g_return_val_if_fail (ATK_IS_IMAGE (image), NULL);
+
+  iface = ATK_IMAGE_GET_IFACE (image);
+
+  if (iface->get_image_locale)
+    {
+      return (iface->get_image_locale) (image);
+    }
+  else
+    {
+      return NULL;
+    }
+}