* AT-SPI - Assistive Technology Service Provider Interface
* (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
*
- * Copyright 2001 Sun Microsystems Inc.
+ * Copyright 2001, 2002 Sun Microsystems Inc.,
+ * Copyright 2001, 2002 Ximian, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
}
}
+static CORBA_string
+impl__get_imageLocale (PortableServer_Servant servant,
+ CORBA_Environment *ev)
+{
+ const char *rv;
+ AtkImage *image = get_image_from_servant (servant);
+
+ g_return_val_if_fail (image != NULL, CORBA_string_dup ("C"));
+
+ rv = atk_image_get_image_locale (image);
+
+ if (rv)
+ {
+ return CORBA_string_dup (rv);
+ }
+ else
+ {
+ return CORBA_string_dup ("C");
+ }
+}
+
static void
spi_image_class_init (SpiImageClass *klass)
{
epv->getImageSize = impl_getImageSize;
epv->getImageExtents = impl_getImageExtents;
epv->_get_imageDescription = impl__get_imageDescription;
+ epv->_get_imageLocale = impl__get_imageLocale;
}
static void
BONOBO_TYPE_FUNC_FULL (SpiImage,
Accessibility_Image,
SPI_TYPE_BASE,
- spi_image);
+ spi_image)