Changed to use non-deprecated API for layer and mdi-zorder.
authorbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Tue, 12 Feb 2002 17:41:07 +0000 (17:41 +0000)
committerbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Tue, 12 Feb 2002 17:41:07 +0000 (17:41 +0000)
(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

ChangeLog
libspi/component.c
util/magnifier.c

index bdadf3a..a194bbd 100644 (file)
--- 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:
        
index 645dea0..e26af05 100644 (file)
@@ -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
index bb04cc3..201d75b 100644 (file)
@@ -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
     {