projects
/
platform
/
core
/
uifw
/
at-spi2-atk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d7d6fca
)
Properly cast more coordTypes to UInt32
author
Brad Taylor
<brad@getcoded.net>
Thu, 23 Apr 2009 10:11:21 +0000
(06:11 -0400)
committer
Brad Taylor
<brad@getcoded.net>
Thu, 23 Apr 2009 10:11:21 +0000
(06:11 -0400)
pyatspi/image.py
patch
|
blob
|
history
diff --git
a/pyatspi/image.py
b/pyatspi/image.py
index
f09f09b
..
b2b595a
100644
(file)
--- 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 factory import accessible_factory
from accessible import BoundingBox
+from dbus.types import UInt32
+
__all__ = [
"Image",
]
__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 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):
"""
def getImagePosition(self, coord_type):
"""
@@
-66,7
+68,7
@@
class Image(Accessible):
window.
"""
func = self.get_dbus_method("getImagePosition", dbus_interface=ATSPI_IMAGE)
window.
"""
func = self.get_dbus_method("getImagePosition", dbus_interface=ATSPI_IMAGE)
- return func(
coord_type
)
+ return func(
UInt32(coord_type)
)
def getImageSize(self):
"""
def getImageSize(self):
"""