Make getRelationType return a RelationType enum.
[platform/core/uifw/at-spi2-atk.git] / pyatspi / relation.py
index 6d1ede0..ef952c2 100644 (file)
@@ -116,8 +116,7 @@ class Relation(object):
                 """
                 @return the RelationType of this Relation.
                 """
-                # TODO Return a relation enum type
-                return self._type
+                return RelationType(self._type)
 
         def getRelationTypeName(self):
                 """