From: Brad Taylor Date: Thu, 23 Apr 2009 10:11:21 +0000 (-0400) Subject: Properly cast more coordTypes to UInt32 X-Git-Tag: AT_SPI2_ATK_2_12_0~517 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git;a=commitdiff_plain;h=6fb632e51b569ce47c58ef09a51c502bb934ef35 Properly cast more coordTypes to UInt32 --- diff --git a/pyatspi/image.py b/pyatspi/image.py index f09f09b..b2b595a 100644 --- a/pyatspi/image.py +++ b/pyatspi/image.py @@ -18,6 +18,8 @@ from accessible import Accessible from factory import accessible_factory from accessible import BoundingBox +from dbus.types import UInt32 + __all__ = [ "Image", ] @@ -49,7 +51,7 @@ class Image(Accessible): @return a BoundingBox enclosing the image's onscreen representation. """ func = self.get_dbus_method("getImageExtents", dbus_interface=ATSPI_IMAGE) - return BoundingBox(*func(dbus.Int16(coordType))) + return BoundingBox(*func(UInt32(coordType))) def getImagePosition(self, coord_type): """ @@ -66,7 +68,7 @@ class Image(Accessible): window. """ func = self.get_dbus_method("getImagePosition", dbus_interface=ATSPI_IMAGE) - return func(coord_type) + return func(UInt32(coord_type)) def getImageSize(self): """