From: billh Date: Tue, 12 Feb 2002 17:41:07 +0000 (+0000) Subject: Changed to use non-deprecated API for layer and mdi-zorder. X-Git-Tag: AT_SPI2_CORE_0_1_3~957 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27d1757bbb15d0644bbfc5ad3aa703f6bf491b8f;p=platform%2Fupstream%2Fat-spi2-core.git Changed to use non-deprecated API for layer and mdi-zorder. (no impact on at-spi's public API). git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@239 e2bd861d-eb25-0410-b326-f6ed22b6b98c --- diff --git a/ChangeLog b/ChangeLog index bdadf3a..a194bbd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,10 @@ * configure.in: 0.8 Incremented revision (but no change in public API outside of 'utils', which are not installed public yet.) + + * libspi/component.c: + Changed to use atk_component API for layers and + mdi_zorder, instead of deprecated atk_object API. Magnification Utility Enhancements: diff --git a/libspi/component.c b/libspi/component.c index 645dea0..e26af05 100644 --- a/libspi/component.c +++ b/libspi/component.c @@ -155,7 +155,7 @@ impl_accessibility_component_get_layer (PortableServer_Servant servant, g_return_val_if_fail (component != NULL, Accessibility_LAYER_INVALID); - atklayer = atk_object_get_layer (ATK_OBJECT (component)); + atklayer = atk_component_get_layer (component); switch (atklayer) { case ATK_LAYER_BACKGROUND: @@ -184,7 +184,7 @@ impl_accessibility_component_get_mdi_z_order (PortableServer_Servant servant, g_return_val_if_fail (component != NULL, -1); - return (CORBA_short) atk_object_get_mdi_zorder (ATK_OBJECT (component)); + return (CORBA_short) atk_component_get_mdi_zorder (component); } static void diff --git a/util/magnifier.c b/util/magnifier.c index bb04cc3..201d75b 100644 --- a/util/magnifier.c +++ b/util/magnifier.c @@ -458,6 +458,7 @@ impl_magnifier_create_zoom_region (PortableServer_Servant servant, magnifier->mag_data->mag_width = (x2 - x1); magnifier->mag_data->mag_height = (y2 - y1); magnifier_pack_regions (magnifier); + return 0; } else {