2002-03-21 Michael Meeks <michael@ximian.com>
authormichael <michael@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Fri, 22 Mar 2002 15:05:57 +0000 (15:05 +0000)
committermichael <michael@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Fri, 22 Mar 2002 15:05:57 +0000 (15:05 +0000)
* libspi/application.c (spi_application_new):
use spi_accessible_construct so we use the AtkObject
cache correctly.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@261 e2bd861d-eb25-0410-b326-f6ed22b6b98c

ChangeLog
libspi/application.c
libspi/base.h

index 4bd5501..55d8230 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-03-21  Michael Meeks  <michael@ximian.com>
+
+       * libspi/application.c (spi_application_new):
+       use spi_accessible_construct so we use the AtkObject
+       cache correctly.
+
 2002-03-19  Michael Meeks  <michael@ximian.com>
 
        * registryd/registry.c (desktop_remove_application),
index 103adc0..6211171 100644 (file)
@@ -362,9 +362,6 @@ BONOBO_TYPE_FUNC_FULL (SpiApplication,
 SpiApplication *
 spi_application_new (AtkObject *app_root)
 {
-  SpiApplication *retval = g_object_new (SPI_APPLICATION_TYPE, NULL);
-
-  spi_base_construct (SPI_BASE (retval), G_OBJECT(app_root));
-
-  return retval;
+  return SPI_APPLICATION (spi_accessible_construct (
+       SPI_APPLICATION_TYPE, app_root));
 }
index d96bf71..839bd92 100644 (file)
@@ -44,9 +44,9 @@ typedef struct {
 
 GType      spi_base_get_type          (void);
 void       spi_base_construct         (SpiBase   *base,
-                                      GObject *gobject);
+                                      GObject   *gobject);
 void       spi_base_construct_default (SpiBase   *base);
-GObject *spi_base_get_gobject       (SpiBase   *base);
+GObject   *spi_base_get_gobject       (SpiBase   *base);
 
 G_END_DECLS