From 960a62af8b867cbe372775a061d05882c69ea5a8 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 22 Mar 2002 15:05:57 +0000 Subject: [PATCH] 2002-03-21 Michael Meeks * 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 | 6 ++++++ libspi/application.c | 7 ++----- libspi/base.h | 4 ++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4bd5501..55d8230 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-03-21 Michael Meeks + + * libspi/application.c (spi_application_new): + use spi_accessible_construct so we use the AtkObject + cache correctly. + 2002-03-19 Michael Meeks * registryd/registry.c (desktop_remove_application), diff --git a/libspi/application.c b/libspi/application.c index 103adc0..6211171 100644 --- a/libspi/application.c +++ b/libspi/application.c @@ -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)); } diff --git a/libspi/base.h b/libspi/base.h index d96bf71..839bd92 100644 --- a/libspi/base.h +++ b/libspi/base.h @@ -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 -- 2.7.4