From 6fb632e51b569ce47c58ef09a51c502bb934ef35 Mon Sep 17 00:00:00 2001 From: Brad Taylor Date: Thu, 23 Apr 2009 06:11:21 -0400 Subject: [PATCH] Properly cast more coordTypes to UInt32 --- pyatspi/image.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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): """ -- 2.7.4